Field Hyperlink Text behavior is inconsistent in DWG or plotted PDF based on formatting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Community,
I'm working on a project to programmatically add hyperlinks to specific text for end-user facing PDFs, primarily working in AutoLisp/VLA. I've already figured out how to get my specified text, which is a portion of text located in a table cell, to include field-based hyperlinked text that appears clickable in a PDF, as difficult and convoluted as that process turned out to be.
After achieving making the hyperlink persistent in the PDF, I then ventured towards formatting the text such that the end-user would visually understand as a hyperlink (i.e. Blue, Bold, and Underlined). This is where the issue and inconsistencies became clear:
- When the hyperlinked text is unformatted or any combination of Blue and Bold, the hyperlink is clickable in the exported PDF file, but is not clickable in the DWG.
- "Some text leading into a clickable link - %<\AcVar \href http://www.google.com/##exampleText#1">% - followed by some more text."
- "Some text leading into a clickable link - {\fArial Narrow|b1|i1|c0|p34;\C5%<\AcVar \href http://www.google.com/##exampleText#1">%} - followed by some more text."
- When an underline is added to the hyperlinked text, the hyperlink is clickable in the DWG, but is not clickable in the exported PDF.
- "Some text leading into a clickable link - {\fArial Narrow|b1|i1|c0|p34;\C5\L%<\AcVar \href http://www.google.com/##exampleText#1">%} - followed by some more text."
(I removed some extra "\" slashes from my AutoLisp version of the formatting for these examples.)
(Also, ignore the clickable hyperlinks in these examples, I was ironically unable to remove them from this post...)
So not only does the hyperlink not perform consistently between DWG and PDF in normal circumstances when created this way, the behavior flips whenever an underline is added to the text.
Does anybody have a workaround or solution for this?