-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psnup does not respect output paper size #31
Comments
What version of psutils is this? Your example works fine for me with the most recent version, 2.04 (and it should work in any 2.xx version). There's a (passing) test for setting a non-default output paper size in the current version. I also checked outputting Letter size paper, since A4 is the default on my system. |
I am using psutils 2.03 running on Arch linux 5.9.9. My default paper size is also A4 |
There is an error reported from pstops: $ psbook printfile.ps psbook.ps |
Could not attach the postscript file so: |
Nice choice of file! That particular error is fixed by 2.04, and I confirm that using your attached I also tried running the test with 2.03. I get the same error as you do (I believe it's harmless by the way), and I again get A4 output. |
I tried changing my default paper size to Letter, and ran the test, and again I get A4 output. I'm sorry, I'm running out of ideas here. |
You can attach your original PostScript file by adding the suffix |
Something is strange here. I attached the file "printfile.pdf". It is a text file from the psnup man page, printed in pdf format. Here are all the files used, having converted printfile.pdf to printfile.ps, in .zip format: |
Thanks. fpbooklet.ps in your Zip file is A4 format. |
I really do appreciate your time on this! |
If I open fpbooklet.ps in gs (I was using evince before), it displays normally. (I'm using GhostScript 9.50 as supplied with Ubuntu 20.04.) Anyway, the DocumentMedia and BoundingBox lines say:
which are A4 (divide by 72 and multiply by 2.54!). The obvious thing that comes to mind is the default paper size configured for your installation of GhostScript; in any case, the output of psutils is clearly correct, so I'm closing the bug. I suggest you add "-sPAPERSIZE=a4" to your invocation of ps2pdf. |
Thank you for your help and I apologize for my ignorance. :) |
No problem! It turns out that Debian's ghostscript (and hence Ubuntu's) uses libpaper, so it respects the default system paper size. I guess Arch doesn't do that. You can however set ghostscript's default paper size in |
Alternatively, you've not configured libpaper's default paper size? |
Thanks - may be not quite so stupid :) |
Absolutely right. "paper" is set correctly. May be paper should also let libpaper? |
Thereby hangs a tale! Paper is designed as a replacement for libpaper, and I'm trying to work out how to get there… |
I suppose you would not consider a rewrite of ghostscript while you are at it? :) :) :) |
The idea is to have ghostscript use the new libpaper, indeed. |
Converting a postscript file using psnup always outputs in letter size.
To reproduce take a four A4 page postscript file and convert it to booklet page order
psbook printfile.ps psbook.ps
Convert the pages to two up
psnup -p A4 -2 psbook.ps fpbooklet.ps
The result is a booklet file on Letter format.
The text was updated successfully, but these errors were encountered: