- Posts: 8
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
Not showing hyperlinks in PDF files
10 years 9 months ago #8812
by jrosseel
Not showing hyperlinks in PDF files was created by jrosseel
Hello,
We have PDF files with lots of hyperlinks in them. The library seems to show those in light blue. See attachment.
How can we avoid that these get shown as we don;t allow someone to click/tap on them anyway.
We have PDF files with lots of hyperlinks in them. The library seems to show those in light blue. See attachment.
How can we avoid that these get shown as we don;t allow someone to click/tap on them anyway.
10 years 9 months ago #8814
by Davide
Replied by Davide on topic Not showing hyperlinks in PDF files
Hi,
you can use annotation.RemoveFromPage() to remove annotation.
You should re-render page to display modified data.
This method is valid in professional or premium version.
you can use annotation.RemoveFromPage() to remove annotation.
You should re-render page to display modified data.
This method is valid in professional or premium version.
10 years 9 months ago #8817
by jrosseel
Replied by jrosseel on topic Not showing hyperlinks in PDF files
So you mean that before displaying we would have to walk through the document, and remove all hyperlink "annotations". That's annoying.
I'd rather have a global option to not display these (or even all) annotations (we handle annotations in a different layer anyway, not inside the PDF).
I'd rather have a global option to not display these (or even all) annotations (we handle annotations in a different layer anyway, not inside the PDF).
10 years 9 months ago #8818
by Davide
Replied by Davide on topic Not showing hyperlinks in PDF files
Hi,
if you don't want to remove them, you can set transparent background color to the links.
You have to:
in default_config() method of Global class.
if you don't want to remove them, you can set transparent background color to the links.
You have to:
Code:
setAnnotTransparency(0x00000000);
Time to create page: 0.404 seconds