[poppler] Printing of certain PDF files does not work with "fit-to-page" because of wrong BoundingBox values in the PostScript

William Bader williambader at hotmail.com
Wed Oct 28 17:27:06 PDT 2015


I think that the issue got side-tracked a bit because the people reporting it initially mentioned okular and CUPS instead of pdftops. The original problem is that in some cases pdftops writes PageBoundingBox comments that are completely wrong and point to empty space at the lower left of the page instead of to the image. The bad comments confuse applications that process the postscript.

I added Adrian Johnson's patch and a PDF test file to the bug report at https://bugs.freedesktop.org/show_bug.cgi?id=87161 so that they don't get lost.

Is there anything blocking Adrian's patch from being accepted? Does the "switch (rotate)" need to be revised?

Regards, William
No entenc com tot això pot ser tan complicat...

> From: aacid at kde.org
> To: poppler at lists.freedesktop.org
> Date: Wed, 28 Oct 2015 21:57:29 +0100
> Subject: Re: [poppler] Printing of certain PDF files does not work with	"fit-to-page" because of wrong BoundingBox values in the PostScript
> 
> El Wednesday 28 October 2015, a les 10:23:11, Martin Pahl va escriure:
> > The main problem with setting the option fit-to-page in okular
> > unconditionally is that it's impossible to print true to scale anymore.
> > That renders okular nearly useless for printing. 
> 
> You mean "for your printing needs", some other people would argue that most 
> users want the thing they print to fit in the paper they're using, and to be 
> honest "fit to paper" is evinces default print mode too.
> 
> Anyhow any talk about okular is off topic here, if you want to help with the 
> development join okular-devel 
>   https://mail.kde.org/mailman/listinfo/okular-devel
> 
> If you want to file a bug, that's also welcome but less likely to yield 
> results.
> 
> Cheers,
>   Albert
> 
> > A quick patch is to open
> > /usr/lib64/libokularcore.so.6.0.0 with an binary editor e.g. okteta, find
> > the string fit-to-page and replace the leading 'f' with 0. It's an ugly
> > patch but after that okular is useable again ;).
> > 
> > Did you report this bug already? I wasn't sure where to report it, because I
> > think it's a problem of a missing feature in the print-dialog as well. To
> > my understanding the print-dialog is part of Qt.
> > 
> > Regards,
> > 
> > Martin Pahl
> > 
> > Am Dienstag, 27. Oktober 2015, 18:36:35 schrieb Stefan Brandner:
> > > I checked the okular source file which is responsible for printing ->
> > > fileprinter.cpp
> > > http://quickgit.kde.org/?p=okular.git&a=blob&h=55977a1bad711f9f1dcc38671a2
> > > 5a
> > > ea5c10ec4c2&hb=c743eceb3d7eee02e6d0726b6e90acb6112ea6bf&f=core%2Ffileprin
> > > ter .cpp The fit-to-page was added by Albert Astals Cid on Wed, 10 Oct
> > > 2012 with the fix name:
> > > Fix printing contiguous selected pages with bookmarks
> > > 
> > > The printing direct to a printer is done with the lpr command plus
> > > arguments.
> > > But this works from the command line so I compared the cups debug
> > > messages.
...
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20151028/0507ed8c/attachment-0001.html>


More information about the poppler mailing list