linuxunil,

linuxunil wrote
> 1 - I get the template from the server
> 2 - I open, fill some fields 
*
> AND SIGN.
*
> 3 - I 
*
> REOPEN
*
>  the file (2) and execute the code:
> pdfStamper.extractRevision("signatureFieldNameHere")

The iText class PdfStamper does not have a method extractRevision. Unless
your pdfStamper is an instance of something entirely else, your code
execution stops no later than here.

Furthermore, if you re-open the file, I would expect you to use a PdfReader.

Thus, your description somehow does not make sense. It might help,
therefore, if you provided a  SSCCE <http://sscce.org/>   illustrating your
issue.

This all being said,

> 4 - The inputStream return an empty inputStream (avaible() = 0).

No, the InputStream is not empty, your interpretation of the available()
method is wrong.

available() "Returns an estimate of the number of bytes that can be read (or
skipped over) from this input stream without blocking" (cf the InputStream
JavaDocs). So it is a) only an estimate of b) bytes readable without
blocking, not bytes overall. Thus, it doesn't say anything about the bytes
that can actually be read.

In the case at hand, the InputStream returned is a
com.itextpdf.text.io.RASInputStream which does not override the default
implementation of that method which always returns 0.

You can simply read the revision from that stream.

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Pdf-Incremental-Updates-tp4659069p4659086.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
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