I have a pdf that has hyperlinks in it. on it's own the hyperlinks work, but when I merge that doc with another document, the hyperlinks no longer work in the new document. they are underlined and are a different color but do not go to the sites set. Here is my code
Dim MyPdfA As PdfDocument = New PdfDocument(strInFileName)
Dim MyPdfB As PdfDocument = New PdfDocument(strOutFileName)
Dim MyDoc As MergeDocument = MergeDocument.Merge(MyPdfA, MyPdfB)
MyDoc.Draw("c:/temp/test.pdf")
Hyperlink not working on merged Doc
Re: Hyperlink not working on merged Doc
Support · Oct 21, 2009Hello,
The hyperlinks in the PDF document should be preserved when merging them together. Can you please send over the two PDF documents to our [^a|mailto:support@cete.com|opennewwindow|Support Team^] so that they can do some further testing?
Thanks,
ceTe Software Support Team
Re: Hyperlink not working on merged Doc
Forum member · Oct 23, 2009emailed pdf we are working with. found that we are not realy merging two documents. but we are creating a document then merging the pages from the second document into it. emailed the code to support.
Re: Hyperlink not working on merged Doc
Support · Oct 23, 2009Hello,
After looking at the code you sent over, the reason you are losing the hyperlinks is becasue when using ImportedPageArea to import a PDF page, it only brings the original PDF document without any annotations like hyperlinks or form fields. ImportedPageArea will only bring the snapshot of the PDF which can be added to the new PDF page. You may want to use the MergeDocument objects Append method instead and that will preserve page annotations.
Thanks,
ceTe Software Support Team