Sorry, I found it.
--- Costa Basil <[EMAIL PROTECTED]> wrote: > Excuse my ignorance regarding the pdf format, but > what > is what you call "appearance"? I searched the pdf > reference document for the word "appearance" and I > couldn't find it. Where should I look? > > Thank you. > > --- Paulo Soares <[EMAIL PROTECTED]> wrote: > > > That's to be expected. Your app that created the > PDF > > was lazy and didn't > > create the checkbox appearances, expecting Acrobat > > to do the job. You > > can recreate the appearances but it's not an > > automatic job and requires > > knowledge of the PDF format. > > > > > -----Original Message----- > > > From: > [EMAIL PROTECTED] > > > > > > [mailto:[EMAIL PROTECTED] > > On > > > Behalf Of Costa Basil > > > Sent: Wednesday, June 29, 2005 1:47 AM > > > To: [email protected] > > > Subject: [iText-questions] flattening checkboxes > > > > > > Hi: > > > > > > I came back with my question but this time with > a > > pdf > > > file and java sample code: > > > > > > Save the java code in > > TestCheckboxesFlattening.java > > > and save the pdf attachment in the same folder > > with > > > the java file, then compile and run the sample. > > The > > > ouput pdf file (test_checkbox_output.pdf) > doesn't > > > contain anything. Is this to be expected? > > > > > > import java.io.*; > > > import com.lowagie.text.pdf.*; > > > > > > public class TestCheckboxesFlattening { > > > > > > public TestCheckboxesFlattening() { > > > super(); > > > } > > > > > > public static void main(String[] args) > > > { > > > PdfReader pdfReader = null; > > > FileOutputStream fos = null; > > > File pdfTmpFile = null; > > > PdfStamper pdfStamper = null; > > > try > > > { > > > pdfTmpFile = new > > > File("test_checkbox_output.pdf"); > > > pdfReader = new > > PdfReader("test_checkbox.pdf"); > > > fos = new FileOutputStream(pdfTmpFile); > > > pdfStamper = new PdfStamper(pdfReader, > fos); > > > AcroFields form = > > pdfStamper.getAcroFields(); > > > form.setField("Check1", "Yes"); > > > > > > pdfStamper.setFormFlattening(true); > > > pdfStamper.close(); > > > } > > > catch (Exception ex) > > > { > > > ex.printStackTrace(); > > > } > > > > > > } > > > } > > > > > > Thanks > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > > http://mail.yahoo.com > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux > > Migration Strategies > > from IBM. Find simple to follow Roadmaps, > > straightforward articles, > > informative Webcasts and more! Get everything you > > need to get up to > > speed, fast. > > > http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > _______________________________________________ > > iText-questions mailing list > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
