Skip to content

Commit 4d0432f

Browse files
committed
986214-ug: Added hyperlink clickable issue in the html to pdf trouble shooting section
1 parent bb3bccf commit 4d0432f

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

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

Lines changed: 28 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,33 @@ 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="">HTML-to-PDF-Hyperlink</a>
677+
</td>
678+
</tr>
679+
</table>
680+
655681

656682
## ERROR:The specified module could not be found in windows server 2012 R2
657683

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

13861412
1: <b>Grant File Access Permissions</b><br>
13871413

0 commit comments

Comments
 (0)