https://bugs.kde.org/show_bug.cgi?id=339176
Florian Dollinger <dollinger.flor...@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dollinger.flor...@gmx.de --- Comment #5 from Florian Dollinger <dollinger.flor...@gmx.de> --- The problem is, that okular at first creates a PostScript File in /tmp/ named "okular_XXXXXX.ps". This File is then sent to the Printer using the lpr command. That .ps file starts with something like that: %!PS-Adobe-3.0 %Produced by poppler pdftops version: 0.50.0 (http://poppler.freedesktop.org) %%Creator: org.apache.jsp._005fsize.margin_002dtest_005fpdf_jsp %%Title: margin-test.pdf %%LanguageLevel: 2 %%DocumentSuppliedResources: (atend) %%DocumentMedia: A4 595 842 0 () () %%BoundingBox: 0 0 595 842 %%Pages: 1 %%EndComments %%BeginDefaults %%PageMedia: A4 %%EndDefaults %%BeginProlog %%BeginResource: procset xpdf 3.00 0 %%Copyright: Copyright 1996-2011 Glyph & Cog, LLC therefore, when the .ps file is sent to the printer - it is now recognized as A4 (e.g.) - even if it was a user-defined format before... using the exact same lpr command (which includes the -o fit-to-page argument by default), and replacing the temporary .ps file with the original .pdf results in the desired print... therefore the problem is that the page-layout for the print (e.g. A4) is already defined in the .ps file... if you take a look at the sourcecode, you can find the /generators/poppler there, i guess if the option "-origpagesizes" for poppler would maybe fix that - at least for pdf's --- voted +10 - that's really an important feature since many documents are non-standard-format -- You are receiving this mail because: You are watching all bug changes.