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

Adding Hyperlink in PDF document to goto rest pages
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3015
Page 1 of 1

Author:  Rajeshri [ Thu Dec 18, 2014 8:11 am ]
Post subject:  Adding Hyperlink in PDF document to goto rest pages

hi All

I have used below code to add hyperlink in 1st page to goto 3rd page.
but not working.

Dim Hyperlink As Hyperlink = prg.AddHyperlink("file:\\D:\text.pdf#page=3",HyperlinkType.File)
Hyperlink.AddFormattedText("Page3")

seems some thing is wrong hyperlink type.
if HyperlinkType.Local is used docRenderer.RenderObject methos throw an exception.

If any one could help.
Thanks in advance.

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