NET PDF Control Capabilities

Hello-

I need to find out if your control is capable of creating links to subordinate PDF Files (in a directory structure that will later be moved to a cdrom and distributed) without manually going in and highlighting the link area and selecting a file to link to. Distiller often does not pick up the file links, or assigns a specific drive letter that cannot be guaranteed would be the CDROM drive letter when distributed.

Thanks-

John


Hi, John,

Thanks for your consideration.

What you need is a relative path included in a pdf file which is linked to another pdf file. Right?

You’re encouraged to post here further.

That is correct, a relative path. On most of the tests I’ve done with MS Excel and Distiller it either ignores the hyperlink altogether or comes up with an error unless you directly link it one by one.

Dear jfitzgerald,

Thanks for your consideration.

The following is a example about local pdf link.
Please download hot fix here first.


[XML]
<?xml version="1.0" encoding="utf-8" ?>



link






[C#]
Pdf pdf = new Pdf();

Section section = new Section(pdf);
pdf.Sections.Add(section);

Text text1 = new Text(section);
section.Paragraphs.Add(text1);

Segment segment1 = new Segment(text1);
text1.Segments.Add(segment1);
segment1.Content = “link”;
segment1.Hyperlink.LinkFile = “./Test1.pdf”;
segment1.Hyperlink.LinkType = HyperlinkType.Pdf;
segment1.Hyperlink.LinkPageNumber = 1;

pdf.Save(“d:/temp/test.pdf”);





[VisualBasic]
Dim pdf As Pdf = New Pdf()

Dim section As Section = New Section(pdf)
pdf.Sections.Add(section)

Dim text1 As Text = New Text(section)
section.Paragraphs.Add(text1)

Dim segment1 As Segment = New Segment(text1)
text1.Segments.Add(segment1)
segment1.Content = “link”
segment1.Hyperlink.LinkFile = “./Test1.pdf”
segment1.Hyperlink.LinkType = HyperlinkType.Pdf
segment1.Hyperlink.LinkPageNumber = 1

pdf.Save(“d:/temp/test.pdf”)