[Okular-devel] [Bug 179804] printing PDF files with page border does not seem to work properly

John Layt john at layt.net
Tue Jan 6 23:36:01 CET 2009


http://bugs.kde.org/show_bug.cgi?id=179804


John Layt john layt net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john at layt.net




--- Comment #1 from John Layt <john layt net>  2009-01-06 23:35:59 ---
I guess this is using the 'Page Border' option in the Pages tab of the print
dialog?  This border is actually added by the CUPS print system as a result of
the setting in the common print dialog, rather than being added by Okular.

In printing PDF's from Okular there is actually a 2 step process in the
background.  The first step is we take the requested options from the print
dialog and ask the Poppler library to create a print file directly from the
original PDF file, i.e. choosing which pages to print, etc.  We then send this
print file to CUPS to actually print, where the border then gets added and any
other CUPS options applied.

What I think is happening is that we are asking Poppler to create the print ps
file with with the page size requested in the print dialog, i.e. a page size of
8½x11 with the original 6"x9" document centred in it.  When the ps print file
gets passed to CUPS it then draws the border around the outside of the 8½x11
page rather than the original 6"x9" page, and as most of this border lies
outside the printable area it only shows up as a line at the top.

What should probably be happening is that we ask Poppler to generate a print
file with the original file's page size, then ask CUPS to print on the page
size requested in the print dialog.  This should ensure that any CUPS options
are properly applied to the print job.  The 'Print to File' option would still
need to generate the requested page size.


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


More information about the Okular-devel mailing list