The Target button fails to offer pages, except under Slides ( despite that there are no Slides in the PDF ) and picking one there has zero effect on the landing.
Try target like page=5.
But no, we don’t export that as a hyperlink. You may want to file an enhancement request.
Does that work for you?
Not for me:
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 4; OS: Windows 7 Service Pack 1 X86_64 (6.1 build 7601); UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: threaded
But it will work in browser: put that file:///...#page=2 URL to address bar. In general, you need to realize, that URL fragment is processed in the target application; so you may be out of luck, if the fragment is stripped (what often happens when you call OS functions), or ignored by the target app.
Speaking about Acrobat Reader.
- Let’s try to call it using OS means. Open command prompt
cmd.exe, and there, execute this command:
start file:///D:/ChrisJJ/....pdf#page=2
Acrobat Reader will start; but indeed, it will start on page 1. Now open task manager, and on its Details page, add “Command line” to shown columns - and then check, which command was used to launch Acrobat.exe. You will find out, that the URL was actually converted to D:\ChrisJJ\...pdf by system - so system path (not URL), without any fragment.
- Now close Acrobat, return to command line, and pass the URL directly to the Acrobat executable:
"C:\Program Files\Adobe\Acrobat DC\Acrobat\Acrobat.exe" file:///D:/ChrisJJ/...pdf#page=2
and you will see, that Acrobat does not support URLs at all (even if you drop the fragment from it) - so you would be out of luck trying to find a hyperlink that would work with this application. You can find a way to launch the specific application with command line arguments, doing what you want; but that is not about hyperlink, but rather about a macro executing a program.
