a link to a page in a pdf

Started by sinus, March 25, 2019, 09:54:50 AM

Previous topic - Next topic

sinus

Hi
This is - I guess - not directly linked to IMatch.
But maybe someone knows something.

I creates pdfs with Design & Prints.
Now I search a way to let open a pdf with a specific page.

I tried to do so with a attributes-field (also with hyperlink-type), but it works also with metadata-field.

The text - link
file://D:\timeline\test.pdf#page=7

works, it opens a pdf, but with page 1, not 7


The text - link
<a href="/D:\timeline\test.pdf#page=7">

works not, means I cannot click on it in a D&P-pdf, also not, if I put it in an attribute-hyperlink-field.

Does someone know, how I could create a text-link, what would open a pdf on a specific page

If it is easier, go to a page in the same pdf would also help.
Best wishes from Switzerland! :-)
Markus

Mario

1. Determine which program you use to open the PDF
2. Read the documentation of that program to see if it supports any command line parameters to open a specific page.

For Acrobat reader, a 5 second search in Google reveals this:

https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

Check it out. The page= parameter looks promising...
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Thanks Mario!

I found out:

file://D:/timeline/test.pdf#page=7
opens the pdf, but not page 7 (works not)

http://www.xxx.ch/timeline/test.pdf#page=7
opens the pdf and goes to page 7 (works! :) )

This means again: I must first upload a pdf to the internet, and cannot use pdfs on my own computer.  :-\
I guess, this is again such a security-stuff - what is stupid, but seems to be necessary.
Best wishes from Switzerland! :-)
Markus

Mario

This is a totally different thing. You are trying to launch a PDF file in your web browser, not in Acrobat Reader!
There are many extra security mechanisms in place, and links to local files via file:// are always processed special, because they are more risky. And hash links don't work on them, and the #page=7 is interpreted by your web browser and may work, or not, in other browsers.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Quote from: Mario on March 25, 2019, 01:35:03 PM
This is a totally different thing. You are trying to launch a PDF file in your web browser, not in Acrobat Reader!
There are many extra security mechanisms in place, and links to local files via file:// are always processed special, because they are more risky. And hash links don't work on them, and the #page=7 is interpreted by your web browser and may work, or not, in other browsers.

Thanks for your answer.
Maybe this is my mistake.

Of course I would like to open the pdf with Acrobat Reader, not with a browser.
The idea is, I create a pdf with D&P and send it to someone.

This person opens the pdf, I think, this is done mostly with Acrobat Reader!?

Inside this pdf there would be some links, what would open a specific page in this pdf.
If it is easier to do this with a second pdf instead of one, then I could also create two pdfs.

As I understand it for now, this is not easy to do and sometimes it works, sometimes not.


I think, I have to google more than I have until now.
But a usually, your inputs are very helpful!


Best wishes from Switzerland! :-)
Markus

Mario

Creating links within a PDF requires a special syntax. See Adobe specs.
I don't know how this works, if you can produce such links with D&P and how your PDF exporter (whatever you use for "Print to PDF") does handle that.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook