[SOLVED] Rotating a pdf file with convert loses resolution
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You didn't say you'd tried mogrify, and convert actually is designed to "convert" from one format to another. If you can find an option to preserve the resolution for convert then good luck. Maybe you would be better off converting the file to images then rotating each image, before making a pdf out of them.
Actually mogrify is the same as convert. From mogrify's man page:
Quote:
Mogrify overwrites the original
image file, whereas, convert(1) writes to a different image file.
Maybe converting to images would be fine... If convert can indeed mantain the resolution... I still have to figure out if there's such an option (it should!).
I think you are right. I emailed the author of pdftk about this compile error a couple days ago, and didn't get an answer... That, and the gcc he recommends is version 3.5.2.
Anyway, I got convert to work properly... The correct option to use in convert/mogrify is '-density XXX'. The default is 72 (dpi), so all pdfs look like crap. I used:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.