It is also setup as an Automator workflow. This solution, as offered (and coded), assumes that Preview is the default application for PDF documents and uses it to rotate all the pages in the PDF document. ![]() So, I'll offer an AppleScript solution that uses UI Scripting the default Preview application, that can be used in the event there isn't another way with AppleScriptObjC or without third-party utilities, etc. Using third-party command line utilities is probably the easiest, but you said it has to be done only using what's a default part of macOS. Also, not sure if there is a way with just plain AppleScript, other then via UI Scripting the default Preview application, without going to AppleScriptObjC ( Cocoa-AppleScript) and or Python, etc. ![]() sip can rotate a single page PDF however the resulting PDF is an encapsulated image, not text if it was text base to begin with. ![]() To my knowledge macOS does not have any one native command line Unix executable that can rotate all pages in a PDF (while keeping text based ones text based).
0 Comments
Leave a Reply. |