Page Rotation - Javascript
Copy link to clipboard
Copied
I know rotation has been discussed many times before so I apologize if i have not found the answer elsewhere.
Normally I run a batch process-execute javascript to stamp/addAnnot thousands of pdfs. I usually get a handful of instances where if there is a page rotation issue I manually stamp and save.
I have come across a bunch of docs and probably will encouter more in the future and like to code to fix and adjust. I have potrait , letter size, images in default user space and getPageRotation = 270 when normally it = 0. If i setPageRotaion to 0 it ends up rotating the potrait page landscape in Rotated user space..
Is there a way to reset the getPAgeRotation to 0 with out rotating page or space?
I know if I OCR the images it resets page rotation to 0 and stays default user space so they i can addAnnot in the correct spot. I do not and can not have the pdf searchable though so this option is out of discussion.
UPDATE i discovered a process through https://www.coherentpdf.com/ command line using (-upright) is this option avaiable anywhere though Pro or with Javascript
Have something to add?

