How to Ensure Links in PDF open in new window

7 replies
I apologize in advance if this has already been covered, searched for the topic....nothing found (or my searching skills need improvement)

Same thing with Google, OpenOffice.org, etc.....

Can't find a simple fix for this.

Is it a setting in my browser or what? (my OS is Win.7)

I have an Open Office document that I have all of links set to open in a new window.

target="_blank"

I then export as PDF and upload.

While viewing the PDF on FF browser, and click on link in footer, it REPLACES my PDF, instead of opening it in a new window or tab.

Have spent way too much time on this, but want a fix for it.

Also tried going to Control Panel, Internet Options, Advanced.....and can't find anything appropriate to change...

Any help is appreciated!

Thanks in advance.

- Carol
#ensure #links #open #pdf #window
  • Profile picture of the author SteveSRS
    tried target="_new" ?

    Also it might depend on your settings inside your pdf reader. FF / IE etc do not come with built-in pdf reader. This is a plugin by the software you have installed on your computer.

    Does holding shift+click link work for you?
    {{ DiscussionBoard.errors[6442278].message }}
  • Profile picture of the author Carol_A
    First of all, thanks for responding.

    Holding down shift+click link does not work...

    target="_new" is not an option

    In Open Office, I right click on link, choose edit Hyperlink, the choices under frame are: self, top, blank and parent

    None of these open the link in a new window once converted to a PDF...

    I've tried using FF and Chrome also.

    I've checkd a dozen forums for help.....there is a lot of buzz about java script, but it never actually perfectly lined up with my problem, so didn't move forward with that.

    In OO, I did try:

    highlighting the anchor text, choosing Format, Styles and Formatting, Character Styles, Internet Link.......modify....

    I feel like I'm close, but no cigar....

    lol

    Thank for trying.

    Signature
    {{ DiscussionBoard.errors[6442313].message }}
  • Profile picture of the author djdclarke
    Hmm I suspect some browser operations are going to get in your way stopping it from being as simple as a a _new target. You could try some JS routes but once again these seem to have some draw backs on the likes of Chrome. What I would actually suggest isn't the simplest in the world; but would work.

    First save a file called PDF.php or something on your root - as such

    <?php
    // Get the Var from the URL
    $PDF = $_GET['Pdf'];
    // Strip the tags from the GET var incase of XSS attempt
    $PDF = strip_tags($PDF);
    // Redirect The User
    header("Location: $PDF");
    ?>

    Then do _new target to the PDF.php with a var - so PDF.php?Pdf=File.pdf

    This should open the PDF in a new window.
    {{ DiscussionBoard.errors[6442443].message }}
    • Profile picture of the author Carol_A
      Well, I saved the code you posted in a new open office document and saved it to my C drive, named it PDF.php

      Highlighted the one hyperlink in that document, edit hyperlink and for path (after choosing Document, not web, right?) put C://PDF.php then in target, put PDF.php?Pdf=File.pdf

      saved, exported as pdf, uploaded, no dice

      I am definitely doing something wrong.

      I saw on another forum someone that sells software to do this, over $150! lol

      Oh well, I'll find the solution sooner or later.

      Thanks for trying to help me!

      Signature
      {{ DiscussionBoard.errors[6442485].message }}
  • Profile picture of the author Carol_A
    Seems as soon as I disabled Adobe Acrobat plug in from my FF plug in settings, the PDF opened in the Reader specified, and hyperlink opened a new tab in FF!!!

    YEAH!

    Just wanted you all to know the fix!

    Have a great weekend.
    Signature
    {{ DiscussionBoard.errors[6442507].message }}
    • Profile picture of the author Marani
      Originally Posted by Carol_A View Post

      Seems as soon as I disabled Adobe Acrobat plug in from my FF plug in settings, the PDF opened in the Reader specified, and hyperlink opened a new tab in FF!!!

      YEAH!

      Just wanted you all to know the fix!

      Have a great weekend.
      Useful, thanks for sharing
      {{ DiscussionBoard.errors[6444718].message }}
  • Glad to hear you have resolved it.
    Signature
    {{ DiscussionBoard.errors[6444433].message }}

Trending Topics