Testing setpagedevice on my printer it seems that if setpagedevice is
called after printing one side in duplex mode, the next page will not be
on the second side but instead start on a new sheet of paper.
If you want to call setpagedevice on each page to allow pages to be
reordered you could emit PS code that checks if the required page size
is already selected before calling setpagedevice.
Something like:
currentpagedevice /PageSize get aload pop
842 ne exch 595 ne and
{
<</PageSize [595 842]>> setpagedevice
} if
I don't think save/restore is required because poppler reinitializes the
gstate parameters used at the start of each page.
I would also be interested to know why pdftops when used as a CUPS
filter needs tp emit setpagedevice directly instead of using the
"%%IncludeFeature" style comments as described at
http://www.cups.org/documentation.php/doc-1.4/spec-postscript.html and
letting CUPS insert the page select PS code based on the PPD file.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/382379
Title:
pdftops CUPS filter has several problems
To manage notifications about this bug go to:
https://bugs.launchpad.net/poppler/+bug/382379/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs