When you print with scale, it produces postscript with something like: %%Page: 1 1 %%BeginPageSetup %%PageOrientation: Portrait pdfStartPage -2.77556e-17 0.261905 translate -0.0026 -0.0026 scale 0 0 378 576 re W %%EndPageSetup The reason lies somewhere in PSOutputDev in HEAD, somehow imgWidth became -1.
Is there a way to reproduce this?
Print document with evince or pass real pageWidth and pageHeight to PSOutputDev constructor instead of -1,-1
Created attachment 4716 [details] [review] Proposed patch There are multiple ways to fix this bug, but I think the proposed one is most consistent. Really PSOutputDev constructor API is not clear in view of passing defaults like -1, -1 or 0,0,0,0. The patch makes defaults processing better. Otherwise we can try to pass real values not defauls to PSOutputDev constructor, but I think it would be worse
Btw, there is another problem described in 5749 and this patch also solve it
Thanks, fixed in cvs.
*** Bug 5749 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.