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

Python - Mac: open pdf file to specific page and section

New Here ,
Nov 19, 2021 Nov 19, 2021

Is it possible to open a pdf file with acrobat on a Mac from Python or terminal and have it navigate to a specific page or section? Something akin to this bash command in Windows:

 

AcroRd32.exe /A "page=3" "file.pdf"

 

According to this documentation, it appears to be possible on Mac if we know the location of the Adobe Acrobat executable: pdfobject.com/pdf/pdf_open_parameters_acro8.pdf#page=5 If that is the case, then where is the executable? ("Adobe Acrobat.app" or "open -a 'Adobe Acrobat.app' " did not work).

TOPICS
Edit and convert PDFs , How to , Standards and accessibility
1.0K
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
Community Expert ,
Nov 20, 2021 Nov 20, 2021
LATEST

My understanding of this is that what we know as .exe on Windows is 'compiled' in the app file.

When a user launches an software on a Mac, the app is 'expanded' and the equivalent of a .exe is then started. 

This makes it impossible to reference from a source code point of view. 

 

I am opened to be corrected buy experts on this thread. thanks

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