Hi.
Is there an easy way to retrieve the part of the page content stream which
indicate the reference to a given ocg(layer)
The stream of a give page is included below:
<Start Stream>
/OC /MC0 BDC
q
0 841.89 595.276 -841.89 re
W n
q
1 0 0 -1 283.7324219 393.2568359 cm
/Fm0 Do
Q
EMC
/OC /MC1 BDC
Q
q
0 841.89 595.276 -841.89 re
W n
q
1 0 0 -1 340.2216797 245.1650391 cm
/Fm0 Do
Q
EMC
/OC /MC2 BDC
Q
q
0 841.89 595.276 -841.89 re
W n
q
1 0 0 -1 274.1455078 581.9658203 cm
/Fm1 Do
Q
<End Stream>


As I have understood there is no dictionary that indicates which layer (ocg)
an element is associated with, therefore i have to look at the stream.
My goal is to be able to navigate to the property which has the key /MC0 and
retrieve the name of this layer.
If this layer is set to be edited i will replace the XObject with a new one.
(basically) having this work as a template(not a pdftemplate)

Can this be done. If there is another way of doing this please feel free to
help me out!

Lars
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to