If this is a PDF you're building with iText, there's some small hope. If
not, then... not so much.
I can think of a couple ways to create non-selectable text... though
creating them in iText will take some work.
1) Create a font with no/invalid character mapping. For example: a font
subset using Identity-H encoding, and strip out the glyph-character tables
from the embedded font data. That'd be tough and would require modifying
iText's font-handling code.
2) Draw the text as line art or a raster image. The line-art version is
semi-doable in iText now using the PdfGraphic2D object... but inserting the
resulting PdfContent into a Document you're building will be a bit of a
chore.
If it's an existing PDF, you're pretty much screwed. It's theoretically
possible, but Non-Trivial.
On 10/4/07, mlindeboom <[EMAIL PROTECTED]> wrote:
>
>
> Is there a way to disable selection of specific text? I have a pdf report
> that will contain super scripts. I want the text in the report to be
> selectable and the super scripts to be visible but not selectable.
>
> thanks
>
> Michael
> --
> View this message in context:
> http://www.nabble.com/Text-Selection-question-tf4569782.html#a13043179
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
--
--Mark Storer
Professional Geek
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/