Layers (optional content) would be PERFECT for this job.

When you author the PDF, as you are laying out the text, lay out an equivalent 
version with the background color of the chuck in yellow (or something).   

Then just swap them as necessary using scripts in your buttons, bookmarks, etc.

Leonard

-----Original Message-----
From: marlborino [mailto:[email protected]] 
Sent: Wednesday, February 15, 2012 11:52 AM
To: [email protected]
Subject: [iText-questions] highlighting text parts

Hi all,
I work with iText and I need to create a pdf which highlights some text parts 
dynamically.
In detail, I've got a text which contains some interesting parts. I would 
highlight this parts after any event triggered, like a click over a button or a 
selection of a checkbox or anything else.
In order to reach this goal I have thought to layers or bookmarks but I don't 
figure out how use these objects.
I cannot use the layers because I cannot set the position of text manually as I 
cannot manage the layout of each text part (i.e. the new line).
On the other hand, using bookmark I don't understand how make the highlight for 
the text aimed from the bookmark.
Is it possible to make the highlight operation as I would?
I was clear I hope.
Thanks a lot.

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/highlighting-text-parts-tp4391121p4391121.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning Cloud computing makes 
use of virtualization - but cloud computing also focuses on allowing computing 
to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/ Please check the keywords list 
before you ask for examples: http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to