Bug 73452 - pdftocairo doesn't seem to set page size
Summary: pdftocairo doesn't seem to set page size
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: postscript backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Adrian Johnson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-09 21:17 UTC by Alex Korobkin
Modified: 2014-01-13 22:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
tabloid1.pdf (17.05 KB, application/pdf)
2014-01-09 21:17 UTC, Alex Korobkin
Details
tabloid1-pdftocairo.ps (36.19 KB, application/postscript)
2014-01-09 21:19 UTC, Alex Korobkin
Details
tabloid1-pdftops.ps (52.10 KB, application/postscript)
2014-01-09 21:19 UTC, Alex Korobkin
Details

Description Alex Korobkin 2014-01-09 21:17:54 UTC
Created attachment 91778 [details]
tabloid1.pdf

In brief, if I print a 11x17 size PDF to a printer, it prints to 11x17 when the
renderers are pdftops or gs. It prints a cropped image on a Letter size when
pdftocairo is specified. 

cups-filters 1.0.43, 
CUPS 1.6.4, 
Ubuntu 12.04, 
poppler 0.24.5, 
libcairo 1.12.16. 

Printer Ricoh MP C3300 with PostScript PPD.

How to reproduce: 
1. Send attached file with this command line:
lp pdftops-renderer=pdftops ./tabloid1.pdf
2. Send attached file with this command line:
lp pdftops-renderer=pdftocairo ./tabloid1.pdf

First job will be printed on 11x17 page. 
Second job will be printed on default page size, Letter, with only part of the
original page being visible (and no scaling was done).

Here is the pdf setup section from pdftops and pdftocairo outputs:

pdftops:
%%BeginPageSetup
%%PageOrientation: Portrait
792 1224 pdfSetupPaper
pdfStartPage
0 0 792 1224 re W
%%EndPageSetup

pdftocairo (looks like there are comments only, no actual setup):
%%BeginPageSetup
%%PageOrientation: Portrait
%%PageMedia: Tabloid
%%PageBoundingBox: 63 56 737 1163
%%EndPageSetup
Comment 1 Alex Korobkin 2014-01-09 21:19:23 UTC
Created attachment 91779 [details]
tabloid1-pdftocairo.ps

Attachment: output from pdftocairo
Comment 2 Alex Korobkin 2014-01-09 21:19:52 UTC
Created attachment 91780 [details]
tabloid1-pdftops.ps

Attachment: output of pdftops.
Comment 4 Alex Korobkin 2014-01-13 22:54:40 UTC
I applied this patch along with other most recent patches to cairo master and can confirm that it works, thank you.


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.