Hide text in PDF when printing
Is it possible to write some text in a PDF (more specifically a link), that will not be printed when sent to a printer, but only be shown in a screen reader?
If it's possible the开发者_Python百科n any pointers to PDF writing .NET libraries that might have this as a feature is very welcome.
There are at least two ways to achieve such an effect with PDF:
- put the link or any element you do not want to print on a separate layer (in PDF spec lingo: "optional content") and set this layer as non-printable;
- put the link into the PDF as an "annotation" and set this annotation as non-printable.
精彩评论