Opening PDF to a specific page using default PDF viewer
0
I am generating a file URL like /file?guid=<GUID>#page=5 in Mendix and opening it using the default PDF viewer. The PDF loads correctly, but it does not navigate to the specified page. How can I make it open on a specific page?
asked
nithya Santhoshini
1 answers
1
Hi Nithya,
You can’t reliably open a PDF to a specific page using the Mendix /file?guid=… URL with the default PDF viewer.
The ?page=5 query parameter is ignored
Page navigation only works via a URL fragment,
e.g.:/file?guid=XXX#page=5
Even then, it depends on the browser/PDF viewer and is not guaranteed
Reliable option: Use a custom PDF viewer (PDF.js / widget / iFrame) that supports page navigation.