[Poppler-bugs] [Bug 47144] New: Poppler's pdftops filter does not respect the margin values of some of the Envelope PageSize's on landscape, reverse landscape printing

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 9 03:33:12 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=47144

             Bug #: 47144
           Summary: Poppler's pdftops filter does not respect the margin
                    values of some of the Envelope PageSize's on
                    landscape,reverse landscape printing
    Classification: Unclassified
           Product: poppler
           Version: unspecified
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: critical
          Priority: medium
         Component: utils
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: goutamkk at gmail.com


Created attachment 58229
  --> https://bugs.freedesktop.org/attachment.cgi?id=58229
Attaching the Officejet_XXXX.ppd PPD file, geditoutput.pdf, pdftopsoutput.ps ,
Expectedoutputformpdftops.ps, neww.txt files.ps.

Printing the text document on Envelope paper size as
landscape/reverse-landscape from gedit application in OpenSUSE 12.1 & Fedora 16
gives the clipped output on the Printer.

Gedit app generates the pdf and then it is passed through cupsfilter chain
pdftops and pstoraster filters to generate the raster data.

The output generated by the pdftops does not contain the Hardware(HW)margin
values contained in the PPD file for landscape orientation and hence its giving
the clipped output.

This bug is not seen in Ubuntu 11.10 as they have a separate cpdftocps filter
script at /usr/lib/cups/filter location  which takes care of adding the
HWmargin values from PPD file into the pdftops output.

OpenSUSE 12.1 and Fedora 16 does not contain the cpdftocps filter script and
there is no way for adding the HWmargin units from PPD file for envelope paper
size to the pdftops output.

Pdftops filter need to take care of the HWmargin values provided in the PPD
file and embed it into the ps output generated by the pdftops filter.

How to reproduce the bug ?

1. Create a print queue by some name XYZ and selecting the ppd (which is
attached) Officejet-XXXX.ppd.

2.Pause the print queue.

3.Generate the pdf document from the gedit application. This you can do by
opening the text file in gedit and select the printer in the print dialog box
showing as paused and in the Page Setup tab set the page size as "DL Envelope"
and orientation as "landscape" and then check the print button. Go to the
location /var/spool/cups and you will find the file name starting with d00XXX.
Copy that file to the desktop with some name as abcd.pdf.

4. Run the cupsfilter command:
   cupsfilter -m application/vnd.cups-postscript -p
/etc/cups/ppd/Officejet-XXXX.ppd -o "PageSize=EnvDL landscape fitplot
MediaType=Plain OutputMode=Normal ColorModel=RGB" ~/Desktop/abcd.pdf >
~/Desktop/abcd.ps

Open the file abcd.ps with vim editor and you see there are no HWmargin values
povided in the PPD file is embeded in the landscape oriented ps output of the
pdftops filter.

Where as this doesn't affect the Portrait orientation.

Printing the raster file generated form the pstoraster filter produces the
clipped out at the printer  as the Hardware margin values are not respected in
the raster data.

Please embed the HW margin values provided for the Envelope paper sizes in the
PPD file  into  pdftops filter output as per the orientation specified
(Landscape/Reverse landscape).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list