PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Create Hyperlink which opens in a new document.
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2611
Page 1 of 1

Author:  kukiz [ Mon Oct 14, 2013 6:59 pm ]
Post subject:  Create Hyperlink which opens in a new document.

Hello,

I'm creating hyperlinks and I want that each hyperlink would open in a new document (not on web, just with regular acrobat reader).

Is it possible to do this using PDFsharp/MigraDoc? :)

Thanks

Author:  Thomas Hoevel [ Wed Oct 16, 2013 9:18 am ]
Post subject:  Re: Create Hyperlink which opens in a new document.

Hi!
kukiz wrote:
Is it possible to do this using PDFsharp/MigraDoc?
If Adobe Reader can do this, then it should be possible to do it with PDFsharp/MigraDoc.

I'm afraid I don't fully understand what you try to achieve. Do you want Adobe Reader to open multiple instances of a single PDF file? Or do you want to create links from one PDF file to another?
I'm not sure if the former can be done with Adobe Reader at all.

Author:  kukiz [ Wed Oct 16, 2013 12:04 pm ]
Post subject:  Re: Create Hyperlink which opens in a new document.

I want to create links from one PDF to another. (like Adobe Acrobat (not reader!)).
You can create it with MidraDoc like this:
Code:
Hyperlink hyperlink = cell.AddParagraph().AddHyperlink(item, HyperlinkType.File);
hyperlink..AddFormattedText("test", "TOC");


It creates a hyperlink to another file, but when i open it and press the link, it opens document in a same window (so previous one is gone).
When creating hyperlinks in AdobetAcrobat, you can choose if you wan to open them in the same window, or in a new one. :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/