this post was submitted on 28 Mar 2025
571 points (96.0% liked)
Memes
49349 readers
1836 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Is there a ghostscript way to rotate pdf?
Yes. (not sure if you wanted it actually posted the GS way is kinda long) there are a good 10+ different tools to do it on command line though. Even imagemagick's "convert" command that does virtually every image format can also rotate a pdf. qpdf, pdftk are very popular too.
I actually found a thread that lists all the tools I did and even the "gs" command lol https://unix.stackexchange.com/questions/394065/command-line-how-do-you-rotate-a-pdf-file-90-degrees
Can confirm, imagemagick is bad with PDF quality.
You have to set the quality to 100 and density to something high (150 or 300) because it'll set it to 72ppi and it also has to become before the input file name. It's like GS and wants virtually every parameter set by you and the defaults are like bare minimum it doesn't take them from the actual file.
That being said just use qpdf or pdftk lmao