Bug 690109 - Distorted Stamp
Summary: Distorted Stamp
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.62
Hardware: HP HP-UX
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-06 06:34 UTC by Carol B
Modified: 2009-03-13 09:30 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Screen Prints of Distorted Stamps (74.50 KB, application/word )
2008-10-06 09:59 UTC, Carol B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carol B 2008-10-06 06:34:58 UTC
We are running a web application that allows our customers to view invoices on-
line.  In Europe the last page of each invoice now contains a "stamp" image 
that verifies the invoice is authentic.  When using the application, the 
customer enters selection criteria.  The program lists the invoice numbers.  
If the customer clicks on an invoice number they can view the individual 
invoice pdf and stamp with no problem.  If they click check boxes next to 
multiple invoice numbers and click on "View", the application uses ghostscript 
to merge the pdf's into one document that the customer can view with Adobe.  
When they do this, the stamp is distorted.  (Will send attachments.)  The unix 
command we are executing is:

SHLIB_PATH=/usr/local/lib /usr/local/bin/gs -dBATCH -dNOPAUSE -q 
sDEVICE=pdfwrite 
sOutputFile=./merged_root.pdf /home/E0038788/data/invoice/*.M306644.pdf /home/E
0038788/data/invoice/*.M306640.pdf

What can we do to fix this?  We have been testing with Version 8.62.  We are 
currently using Version 6.0 in Production which also distorts the image, but 
in a different way.
Comment 1 Carol B 2008-10-06 09:54:45 UTC
Created attachment 4470 [details]
Test File 1 of 2
Comment 2 Carol B 2008-10-06 09:56:09 UTC
Created attachment 4471 [details]
Test File 2 of 2
Comment 3 Carol B 2008-10-06 09:59:16 UTC
Created attachment 4472 [details]
Screen Prints of Distorted Stamps
Comment 4 Alex Cherepanov 2008-10-06 21:45:50 UTC
This is an error in the annotation rendering logic in the PDF interpreter.
By some reason Ghostscript always scales annotations uniformly but
this annotation clearly needs non-uniform scaling.

This problem is confirmed in the current revision (9126).
Comment 5 Alex Cherepanov 2008-10-09 12:55:21 UTC
Scale widget annotation in x and y directions to fit the BBox of the
appearance stream into the annotation rectangle. Old code considered
y direction only.

The following patch is committed as a rev. 9139.
http://ghostscript.com/pipermail/gs-cvs/2008-October/008713.html
Regression testing shows no differences, i.e. we don't have a file in the
regression suite that depends on the non-uniform scaling.
Comment 6 Carol B 2009-03-13 09:00:04 UTC
3/13/09  Fix does not work in our Version 8.62.  Need additional assistance.  
Sent email to Alex on Feb. 24, 2009 with explanation of what we've tried but 
have not received a response.
Comment 7 Ray Johnston 2009-03-13 09:30:35 UTC
Please upgrade to the 8.64 releaese. We don't provide patches (at least to
unsupported users) for older versions.

If you wish to sign up as a customer, please let us know.

Do not re-open this issue unless the issue is seen with 8.64.