Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Free Guide: Linux from Scratch
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
This 318 page eBook provides readers with the background and instruction to design and build custom Linux systems. The resulting system will be compiled completely from the source code, and the user will be able to specify where, why, and how programs are installed. This eBook allows readers to fully customize Linux systems to their own needs and allows users more control over their system.
Click Here to receive the Linux from Scratch Guide absolutely free.
I'm trying to scan some documents so I can throw away my paper copies. I've sucessfully scanned the documents to PostScript format, and the files have a bounding box. If I open the files in evince, the page size is correct - it shows just the scanned image.
However, when I run ps2pdf to convert it to pdf (because it's *much* smaller as a pdf, I think due to image compression), when I open the resulting pdf in evince, it's put it on what looks like an A4 page.
Two questions:
1. Why isn't ps2pdf paying any attention to the BoundingBox directives?
2. How can I fix it?
Yup, that does work but it's not what I'm after. Because the PS document is coming from a scan, it's not always a regular paper size, as sometimes I only need to scan part of a document. What I'm after is an option that will read the bounding box from the PS file and convert it into the PDF page size.
From all the info I have seen ps2pdf is SUPPOSED to default to letter size paper, so the first thing I have to say is I have no idea why yours wasn't... I did not find anything that mentioned a way for ps2pdf to automatically select the size of paper based on the document size. Interesting thought though..
maybe you can parse the ps file for the page size using a script then insert that size into the -sPAPERSIZE= field....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.