[Bug 774961] New: While printing a .doc file from libreoffice 3.4.5 writer , poppler's pdftops filter does not respect the hardware bottom margin of Envelope paper sizes (i.e Envelope DL, Envelope Monarch etc.. )
https://bugzilla.novell.com/show_bug.cgi?id=774961 https://bugzilla.novell.com/show_bug.cgi?id=774961#c0 Summary: While printing a .doc file from libreoffice 3.4.5 writer , poppler's pdftops filter does not respect the hardware bottom margin of Envelope paper sizes (i.e Envelope DL, Envelope Monarch etc.. ) Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Printing AssignedTo: jsmeix@suse.com ReportedBy: goutamkk@gmail.com QAContact: jsmeix@suse.com Found By: --- Blocker: --- Created an attachment (id=501544) --> (http://bugzilla.novell.com/attachment.cgi?id=501544) PPD file of an OfficeJet printer User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1 Printing the .doc file from libreoffice 3.4.5 on Envelope Paper sizes is resulting in the clipping of some portion of the bottom side of the page. This is due to pdftops filter not respecting the hardware bottom margin of the Envelope paper sizes (i.e Envelope DL, Envelope Monarch etc..). Reproducible: Always Steps to Reproduce: 1.Open any Envelope Paper size .doc file ( ie, Envelope Monarch) in libreoffice and give a print to file option to generate the pdf file of the .doc file. 2.Run command: cupsfilter -m application/vnd.cups-raster -p <Path_to_ppd_file_location> -o "PageSize=EnvMonarch fitplot" Env_Monarch.pdf > Env_Monarch.ras 3.Open Env_Monarch.ras using rasterview application and compare it with original Env_Monarch.pdf file and you will see thet bottom portion is clipped. Actual Results: The bottom portion is clipping Expected Results: The bottom portion should not clip and it should respect the hardware bottom margin provided for Envelope paper size in the PPD file -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774961 https://bugzilla.novell.com/show_bug.cgi?id=774961#c1 --- Comment #1 from goutam kodu <goutamkk@gmail.com> 2012-08-08 07:10:17 UTC --- Created an attachment (id=501545) --> (http://bugzilla.novell.com/attachment.cgi?id=501545) Envelop Monarch pdf file generated from LibreOffice -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774961 https://bugzilla.novell.com/show_bug.cgi?id=774961#c2 --- Comment #2 from goutam kodu <goutamkk@gmail.com> 2012-08-08 07:11:00 UTC --- Created an attachment (id=501546) --> (http://bugzilla.novell.com/attachment.cgi?id=501546) Envelop Monarch doc file -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774961 https://bugzilla.novell.com/show_bug.cgi?id=774961#c3 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|--- |Community User AssignedTo|jsmeix@suse.com |vuntz@suse.com --- Comment #3 from Johannes Meixner <jsmeix@suse.com> 2012-08-28 08:54:15 UTC --- I re-assingn it to someone who might be a poppler maintainer. Because "osc maintainer X11:common:Factory poppler" does not result a single maintainer or bugowner, I inspect poppler.changes and I assume vuntz could be one who actually maintains poppler. Vincent, comment#0 talks about "pdftops filter". cupsd calls /usr/lib/cups/filter/pdftops but this is only a wrapper that calls the actual /usr/bin/pdftops program. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774961 https://bugzilla.novell.com/show_bug.cgi?id=774961#c4 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jsmeix@suse.com --- Comment #4 from Vincent Untz <vuntz@suse.com> 2012-08-28 10:25:10 UTC --- (In reply to comment #0)
The bottom portion should not clip and it should respect the hardware bottom margin provided for Envelope paper size in the PPD file
Johannes: does /usr/lib/cups/filter/pdftops tell /usr/bin/pdftops about this margin from the ppd file? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774961 https://bugzilla.novell.com/show_bug.cgi?id=774961#c5 Johannes Meixner <jsmeix@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|jsmeix@suse.com |goutamkk@gmail.com --- Comment #5 from Johannes Meixner <jsmeix@suse.com> 2012-09-06 08:58:09 UTC --- Currently I am not in the office to work on it. As far as I know Goutam Kodu is member of the HPLIP developer team and therefore he could perhaps also do the debugging to answer the question how exactly /usr/lib/cups/filter/pdftops calls /usr/bin/pdftops to answer the question in comment#4. For now is change needinfo to Goutam Kodu... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=774961 https://bugzilla.novell.com/show_bug.cgi?id=774961#c6 --- Comment #6 from Johannes Meixner <jsmeix@suse.com> 2012-10-19 11:00:20 CEST --- Background information: When CUPS gets PDF it runs /usr/bin/pdftops to convert it into generic PostScript because CUPS needs generic PostScript so that it can add the PostScript snippets from the PPD file to enable this or that option in a PostScript printer. I assumed that CUPS runs /usr/bin/pdftops in a generic way to get generic PostScript (without any printer specific options set by pdftops via "setpagedevice" stuff) because the printer specific options are set by CUPS via the PostScript snippets from the PPD which are inserted into the generic PostScript which makes it printer specific PostScript. It cannot work well when there is more than one tool which makes the PostScript printer specific because this result conflicts when several tools set the same kind of option (e.g. the paper size) several times. E.g. when LibreOffice sets the paper size to be A4 but it should be printed on a printer with Legal paper so that CUPS sets the paper size to be Legal, see https://bugzilla.novell.com/show_bug.cgi?id=117730#c8 How CUPS calls pdftops: To verify how CUPS calls /usr/bin/pdftops, I did # mv /usr/bin/pdftops /usr/bin/pdftops.away and installed this as -rwxr-xr-x /usr/bin/pdftops ------------------------------------------------------------- #! /bin/bash echo $@ >/tmp/pdftops.args set >/tmp/pdftops.env sleep 60 exit 0 ------------------------------------------------------------- I set up a test print queue: # lpadmin -p testq -v file:///tmp/testq.out \ -P /usr/share/cups/model/Postscript.ppd.gz -E Then I sent a print job: ----------------------------------------------------------------- # echo "Hello" | a2ps -1 -M a4 -o- | ps2pdf - - | lp -d testq [stdin (plain): 1 page on 1 sheet] [Total: 1 page on 1 sheet] sent to the standard output request id is testq-93 (0 file(s)) ----------------------------------------------------------------- This is what ps shows while /usr/bin/pdftops runs: ------------------------------------------------------------------------- lp ... /bin/bash /usr/bin/pdftops -level3 /var/spool/cups/d00093-001 - ------------------------------------------------------------------------- and accordingly /tmp/pdftops.args contains ------------------------------------------------------------- -level3 /var/spool/cups/d00093-001 - ------------------------------------------------------------- As expected CUPS calls /usr/bin/pdftops in a generic way. I still leave it as needinfo from Goutam Kodu for further analysis because I do not have his environment with a printer that can print on special media like Envelope Monarch. How CUPS may have to call pdftops: All what matters is that pdftops produces PostScript with the same bounding box (i.e. the actually used printed area) as it was in the PDF. If the actually printed area in the PDF exceeds the printable area of the printer device, it is correct - from the printing system's point of view - that then some portion of what should actually be printed is clipped at some edge(s) of the paper. Goutam Kodu, please verify that the bounding box of the printing output in LibreOffice is the same as the bounding box of the PostScript that is produced by pdftops and that the bounding box fits within the printable area of your particular printer device. If the bounding box of the PostScript differs from the bounding box of the PDF, please try out if pdftops needs explicit parameters set (see "man pstopdf") to keep the bounding box unchanged. "man pstopdf" tells much about options that might influence the bounding box (i.e. size and position of the content on the paper). I don't know what the right settings are in particular regarding -origpagesizes which seems to produce printer specific PostScript with setpagedevide stuff which can conflict with what CUPS will latee add as PostScript snippets versus -paper match that (hopefully) produces generic PostScript and -nocrop -noshrink -nocenter which seem to be needed to switch off the pdftops defaults to crop, shrink, and center the content if needed. Vincent Untz, do you perhaps know if there is a recommeded way how to call pdftops to generate generic PostScript that truly matches what there is in the PDF? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com