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.
Created attachment 4470 [details] Test File 1 of 2
Created attachment 4471 [details] Test File 2 of 2
Created attachment 4472 [details] Screen Prints of Distorted Stamps
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).
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.
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.
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.