Skip to content

Commit 365d18c

Browse files
Merge pull request #1539 from syncfusion-content/986214-ug
986214-ug: Added hyperlink clickable issue in the html to pdf trouble shooting section
2 parents b26ff3d + 8be6f71 commit 365d18c

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

Document-Processing/PDF/Conversions/HTML-To-PDF/NET/troubleshooting.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
628628
</tr>
629629
</table>
630630

631-
632631
## Converting the HTML to PDF fails in x32 bit windows system environment
633632

634633
<table>
@@ -652,6 +651,32 @@ blinkConverterSettings.CommandLineArguments.Add("--disable-setuid-sandbox");
652651
</tr>
653652
</table>
654653

654+
## Hyperlinks appearances do not navigate to their referenced URLs when using `CreateTemplate` and `DrawPdfTemplate` methods
655+
656+
<table>
657+
<th style="font-size:14px" width="100px">Issue
658+
</th>
659+
<th style="font-size:14px">Hyperlinks appearances do not navigate to their referenced URLs when using `CreateTemplate` and `DrawPdfTemplate` methods
660+
</th>
661+
662+
<tr>
663+
<th style="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+
<th style="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: <a href="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>
655680

656681
## ERROR:The specified module could not be found in windows server 2012 R2
657682

@@ -1381,7 +1406,7 @@ This issue may occur due to one of the following reasons:<br>
13811406
<tr>
13821407
<th style="font-size:14px" width="100px">Solution</th>
13831408
<td>
1384-
To resolve the issue and ensure successful HTML to PDF conversion in Azure App Service (Linux), follow these steps:
1409+
To resolve the issue and ensure successful HTML to PDF conversion in Azure App Service (Linux), follow these steps:<br>
13851410

13861411
1: <b>Grant File Access Permissions</b><br>
13871412

0 commit comments

Comments
 (0)