Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Page Rotation - Javascript

Community Beginner ,
Oct 09, 2019 Oct 09, 2019

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

641
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation