Copy link to clipboard
Copied
I try to open a PDF with the commandline. Everything works fine when I use the given parameter out of the document https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf
But my pagenumbers look like "1.10" on page 15 or "R3" on page 107 (e.g.)
Do I have a possibility to open the document with acrobat reader by this special 'page name'?
I even tried to open a bookmark by this value, but had no luck.
Copy link to clipboard
Copied
No, none of the things you identify are a page number. You can use a named destination however. This is NOT the same as any of those things either.
Copy link to clipboard
Copied
'nameddest' didn't work either.
But I found out, that the value, mentioned above, is called 'logical page number'.
When I open the document with AcrobatReader, I have the possibility to type this logical page number into the editable page field to jump to the right page.
....but not with command line.
Copy link to clipboard
Copied
Did you make a named destination in the file?
Copy link to clipboard
Copied
The question here is "how to open a page at a logical page number". I've had the same issue but haven't been able to solve it yet.
What masa_slm means by a logical page number is the following (highlighted):
I've tried using the following calls but none of them work:
Does anyone have any idea how a logical page number can be used to open a PDF at its relative page number?
Copy link to clipboard
Copied
This can probably be achieved with a script, but only if the file is opened inside the browser and using the Adobe plugin.
For example, I've created a tool that allows you to open the file to a specific bookmark name, even though it's not a part of the Open Parameters spec: Custom-made Adobe Scripts: Acrobat -- Link to a Specific Bookmark in a PDF
Copy link to clipboard
Copied
Thanks try67,
from what i understand regarding scripting in PDF you can only execute the script within the PDF itself and not externally over a browser window, is this correct?
Copy link to clipboard
Copied
Not exactly, but more or less. However, the script I've developed resides within the PDF itself and is triggered when it is opened.
Copy link to clipboard
Copied
There is nothing in the documentation suggesting you can open at a logical page number. But there IS something saying named destinations worked. This seems a better path to follow, rather than searching for a way to make it perform outside its original design.