Conversion ToolsLink from a html page into the interiour of a pdf

Information and discussion about output converters related to LaTeX (e.g. dvips, ps2pdf, ...)
Post Reply
Lamp73
Posts: 9
Joined: Fri Feb 04, 2011 9:50 pm

Link from a html page into the interiour of a pdf

Post by Lamp73 »

Hi,
I would like to code a hyperlink in a html web page targeting a hyperlink in a pdf, created by the hyperlink package. The pdf should open at the right page. The pdf is on the same domain as the html.

Is there a way?

Kind regards
Lamp73
Last edited by Lamp73 on Sun Feb 06, 2011 3:20 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Re: Link from a html page into the interiour of a pdf

Post by localghost »

Where is the relation to LaTeX?


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Link from a html page into the interiour of a pdf

Post by frabjous »

I guess the relation to LaTeX is that the links is supposed to open a target/anchor in the PDF which was created by LaTeX.

There is no package called hyperlink. I assume you mean hyperref.

Someone here reports being able to link to a certain page of a PDF. I tested this and it does not work with my PDF viewing software. Maybe it works with a certain combination of software. But if it does, you got lucky. There is no way to make this happen in a robust way. I can't understand what the possible motivation could be, either.
Lamp73
Posts: 9
Joined: Fri Feb 04, 2011 9:50 pm

Link from a html page into the interiour of a pdf

Post by Lamp73 »

localghost wrote:Where is the relation to LaTeX?
Thorsten
The pdf is generated by the LaTeX package hyperref.
Lamp73
Posts: 9
Joined: Fri Feb 04, 2011 9:50 pm

Re: Link from a html page into the interiour of a pdf

Post by Lamp73 »

Thanks for your fast rsponse. Sorry for the false package name. I meant hyperref as you assumed.

My motivation is the same as the one explained in your friendly link. I will try the approach and report the result.
Lamp73
Posts: 9
Joined: Fri Feb 04, 2011 9:50 pm

Re: Link from a html page into the interiour of a pdf

Post by Lamp73 »

Approach successful!
Example
The html link
<br><a href="http://.../paper.pdf#page.12" target="_blank">Page 12</a>
opens the pdf document at page 12.

Probably this does not even require that the pdf contains links generated by the LaTeX hyperref package. So I really may be in the wrong forum. Sorry, but happy.

Many thanks again
Lamp73
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Link from a html page into the interiour of a pdf

Post by frabjous »

Lamp73 wrote:Approach successful!
Example
The html link
<br><a href="http://.../paper.pdf#page.12" target="_blank">Page 12</a>
opens the pdf document at page 12.

Probably this does not even require that the pdf contains links generated by the LaTeX hyperref package. So I really may be in the wrong forum. Sorry, but happy.

Many thanks again
Lamp73
This does not work for me. Again, this is probably very specific to the software you are using (browser and PDF viewer). It would be nice to tell us what that is.
Lamp73
Posts: 9
Joined: Fri Feb 04, 2011 9:50 pm

Link from a html page into the interiour of a pdf

Post by Lamp73 »

frabjous wrote: It would be nice to tell us what that is.
Firefox V. 3.6.13
Adobe Reader V. 9.0.0
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Link from a html page into the interiour of a pdf

Post by frabjous »

Thanks. I don't use Adobe Reader (painfully slow and bloated, with few features, compared to other PDF software), so that's probably the difference. I use either evince or mupdf with mozplugger.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Link from a html page into the interiour of a pdf

Post by localghost »

Lamp73 wrote:Approach successful!
Example
The html link
<br><a href="http://.../paper.pdf#page.12" target="_blank">Page 12</a>
opens the pdf document at page 12.
Then please mark the topic (not the last post) accordingly as written in the Board Rules (to be read before posting).
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply