You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Hyperlinks appearances do not navigate to their referenced URLs when using `CreateTemplate` and `DrawPdfTemplate` methods
655
+
656
+
<table>
657
+
<thstyle="font-size:14px"width="100px">Issue
658
+
</th>
659
+
<thstyle="font-size:14px">Hyperlinks appearances do not navigate to their referenced URLs when using `CreateTemplate` and `DrawPdfTemplate` methods
660
+
</th>
661
+
662
+
<tr>
663
+
<thstyle="font-size:14px"width="100px">Reason
664
+
</th>
665
+
<td>The <b>CreateTemplate</b> and <b>DrawPdfTemplate</b> methods generally do not import annotation details, including hyperlink information, from the original PDF document. This means that while the visual appearance of a hyperlink (blue, underlined text) might be preserved, the underlying functionality of navigating to the URL is not transferred.
666
+
</td>
667
+
</tr>
668
+
669
+
<tr>
670
+
<thstyle="font-size:14px"width="100px">Solution
671
+
</th>
672
+
<td>A workaround involves manually extracting and re-applying hyperlink annotations. This can be achieved by following these steps:<br>
673
+
1.<b>Extract Annotations</b>: Before creating and drawing the PDF template, extract all annotations, specifically hyperlink annotations, from the original PDF document.<br>
674
+
2.<b>Draw PDF Template</b>: Use the CreateTemplate and DrawPdfTemplate methods to draw the PDF content into a new document.<br>
675
+
3.<b>Incorporate Annotations</b>: After the template has been drawn, programmatically add the extracted hyperlink annotations to the corresponding positions in the new document. This will restore the interactive functionality of the hyperlinks.<br>
676
+
Please refer to the sample project: <ahref="https://github.com/SyncfusionExamples/PDF-Examples/tree/master/HTML%20to%20PDF/Blink/HTMLtoPDF_Hyperlink/.NET">HTML-to-PDF-Hyperlink</a>
677
+
</td>
678
+
</tr>
679
+
</table>
655
680
656
681
## ERROR:The specified module could not be found in windows server 2012 R2
657
682
@@ -1381,7 +1406,7 @@ This issue may occur due to one of the following reasons:<br>
0 commit comments