Seems than the snippet have been filtered because (Maybe because the
message was sent from Nabble), sending again:

How can the appearances be regenerated or the file marked as needing
appearances regeneration? Can this be done without
"com.itextpdf.text.pdf.AcroFields#regenerateField"? Because as far as I can
see, you need a "PdfStamper" to load an "AcroFields" instance, so this
would create a new PDF incremental update if I'm not wrong.

Is there anyway to get appearances regenerated for fields inmediately after
something like this:

Document document = new Document();
PdfWriter pdfWriter = PdfWriter.getInstance(document, os);
document.open();
...
TextField textField = new TextField(pdfWriter , new
Rectangle(0,0),"field_name");
textField .setText("Default value not shown if appearances are not
regenerated");
someCell.setCellEvent(new FieldPositioningEvents(pdfWriter,
text.getTextField()));

Failing to regenerate appearances for the previous snippet would not
display the "Default value not shown if appearances are not regenerated",
because this widget appearance is bound to "new Rectangle(0,0)" inmediately
after the "text.getTextField()" call.

PS: Currently working with itext 5.0.6


On Sat, Aug 16, 2014 at 7:02 AM, hablutzel1 <hablutz...@gmail.com> wrote:

> How can the appearances be regenerated or the file marked as needing
> appearances regeneration? Can this be done without
> "com.itextpdf.text.pdf.AcroFields#regenerateField"? Because as far as I can
> see, you need a "PdfStamper" to load an "AcroFields" instance, so this
> would
> create a new PDF incremental update if I'm not wrong.
>
> Is there anyway to get appearances regenerated for fields inmediately after
> something like this:
>
>
>
> Failing to regenerate appearances for the previous snippet would not
> display
> the "Default value not shown if appearances are not regenerated", because
> this widget appearance is bound to "new Rectangle(0,0)" inmediately after
> the "text.getTextField()" call.
>
> PS: Currently working with itext 5.0.6
>
>
>
> --
> View this message in context:
> http://itext-general.2136553.n4.nabble.com/corrupt-PDF-generated-tp2172523p4660247.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
>



-- 
Jaime Hablutzel -  RPC 994690880
*Tildes omitidas intencionalmente*
------------------------------------------------------------------------------
_______________________________________________
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