![]() ![]() * -c "> setpagedevice" - sets seascape orientation. * -c "> setpagedevice" - sets upside down orientation * -c "> setpagedevice" - sets portrait orientation * -c "> setpagedevice" - sets landscape orientation You can pass such setpagedevice parameters on the Ghostscript commandline using the -c switch like this: ![]() If there is no text on a page (or if there is an automatic page rotation set to /None), then Ghostscript uses the setpagedevice settings. * -dAutoRotatePages=/PageByPage - auto-rotates pages individually.Īdd one of these to the Ghostscript commandline you're using. * -dAutoRotatePages=/All - rotates all pages (or none) depending on a kind of "majority decision" ![]() * -dAutoRotatePages=/None - retains orientation of each page It relies on an internal Ghostscript algorithm that tries to rotate pages automatically, depending on the flow of text inside the PDFs: However, this may not work for your intentions, because you cannot force a certain orientation for an individual page only. Why do you require usage of Ghostscript? Would it be acceptable to use another Free, Open Source Software tool running on the commandline, such as pdftk?Īnyway, here is how to rotate pages with Ghostscript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |