Hi,

I have a feeling that this is not going to be easy but is there any way I
can get the indirect reference of undercontent or overcontent from a
pdfstamper?

The reason that I ask is that I have written an application to add
undercontent to a pdf page's content with pdfstamper. However, it is
possible that in the future I may want to undo my modification (and hence
remove the specific undercontent object from the page's content array).

The easiest way I can think of to achieve this is to record in a page's
PieceInfo dictionary the indirect reference to the undercontent. Then all I
would need to do to undo the modification is get the reference in PieceInfo
and remove the object from the content array and from the pdf itself.

So, can anyone think of a way to get the indirect reference out of itext? Or
do I have to make a custom version that returns the indirect reference when
I close the pdfstamper? Alternatively if you can suggest a simpler solution
I'd be greatly appreciative.

As an aside, does anyone know if a conforming pdf writer is obligated to
update indirect references within a PieceInfo data dictionary?

Cheers,

billy



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Determining-the-indirect-reference-of-undercontent-or-overcontent-tp4656408.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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