[iText-questions] leaving list

2011-09-16 Thread Me Myself and I
Can I please have an email link so that I can unsubscribe from the iText users list? -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-c

Re: [iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
Glad to hear I'm not the first. Could the file have been corrupted in such a way that Adobe Reader/Nitro/iText can open it still? Or does an older version of Adobe Reader exist that could be responsible? Andy On 16/09/2011 21:06, Paulo Soares wrote: I've seen this before. You have a file wit

Re: [iText-questions] Form Flattening

2011-09-16 Thread Paulo Soares
I've seen this before. You have a file with fields in the pages but nothing in the acroform dictionary. Acrobat is always helpful and instead of refusing to open a broken file it will reconstruct the acroform dictionary and make everything look good (when it isn't). Paulo - Original Messa

Re: [iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
I certainly do have a form that I can fill in both with Adobe Reader and iText, and it's not of the XFA variety. The "answer I've yet to find" that I'm referring to here is what the clients are doing to it in filling it in and returning it in a condition such that I can't flatten it. Thanks An

Re: [iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
This returns null: pdfReader().getCatalog().getAsDict(PdfName.ACROFORM) Yet the PDF contains form fields when I open it in Adobe Reader or Nitro. Notably though, in Adobe Reader it doesn't have the usual message at the top indicating that it's a form to be filled out - "Please fill out th

Re: [iText-questions] PdfCopy and PdfStamper

2011-09-16 Thread mingqiang yu
Never mind. My bad. I fixed the bugs. Many thanks! Document document = new Document(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(document, baos); document.open(); Image image = Ima

Re: [iText-questions] PdfCopy and PdfStamper

2011-09-16 Thread mingqiang yu
Thanks for the help. I will read the chapter you mentioned and will get the book to read the chapter about collection as well. I'm quite new to itext and I'm sure it will help me understand more about itext. In the mean time, I'm trying to see if I can follow the 1st solution you mentioned with si

Re: [iText-questions] Khmer Unicode support in iText

2011-09-16 Thread 1T3XT BVBA
On 16/09/2011 9:12, leejava wrote: > ok, so could you explain me how to develop it in iText? > I will try to pay my time to do it, because I want Khmer Unicode display > correctly in iText. > Please advise. Read the iText library developer guide: http://www.redlab.be/blog/2011/developer-guide/ Look

Re: [iText-questions] Form Flattening

2011-09-16 Thread 1T3XT BVBA
On 16/09/2011 18:06, Andy Wu wrote: > That's an answer I've yet to find You can find out as is explained in chapter 8 of "iText in Action - Second Edition": PdfReader reader = new PdfReader(src); AcroFields form = reader.getAcroFields(); XfaForm xfa = form.getXfa(); if (xfa.isXfaPresent()) Syst

Re: [iText-questions] Form Flattening

2011-09-16 Thread Mark Storer
> The PDF returned from the client as > PdfStamper.getAcroFields().getFields() returns 0 fields so I > can't readily loop over the fields to do that. It sounds like the form is already flattened. To be sure, you can check for an /AcroFields dictionary within the root/catalog: pdfReader.getCat

Re: [iText-questions] Khmer Unicode support in iText

2011-09-16 Thread leejava
ok, so could you explain me how to develop it in iText? I will try to pay my time to do it, because I want Khmer Unicode display correctly in iText. Please advise. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Khmer-Unicode-support-in-iText-tp3815030p3817522.html S

Re: [iText-questions] PdfCopy and PdfStamper

2011-09-16 Thread 1T3XT BVBA
On 16/09/2011 17:53, mingqiang yu wrote: > Hi, > > Here is the problem I need to solve: > > I have a list of byte arrays which represents list of files. I need to > combine them into one pdf. They can be pdf, images, or information I > need to put into the new pdf. Aha, go to http://affiliate.mann

Re: [iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
That's an answer I've yet to find out and unfortunately it's not a question I can easily get answered directly. I was hoping this list would be the easier solution in comparison :). What I do know though is that the majority of my clients are schools based so it wouldn't surprise me if they wer

Re: [iText-questions] Form Flattening

2011-09-16 Thread Leonard Rosenthol
What software is your client using to fill out the form!??!?! On 9/16/11 5:43 PM, "Andy Wu" wrote: >Does the fact that when I've filled in the form myself and saved it with >Adobe Reader, it flattens without issue rule out that possibility? > >Andy > >On 16/09/2011 16:40, Paulo Soares wrote: >>

[iText-questions] PdfCopy and PdfStamper

2011-09-16 Thread mingqiang yu
Hi, Here is the problem I need to solve: I have a list of byte arrays which represents list of files. I need to combine them into one pdf. They can be pdf, images, or information I need to put into the new pdf. I cannot use PdfWriter because some pdfs contain not just content but annotations acc

Re: [iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
Does the fact that when I've filled in the form myself and saved it with Adobe Reader, it flattens without issue rule out that possibility? Andy On 16/09/2011 16:40, Paulo Soares wrote: > It may be a dynamic LiveCycle form and iText can't flatten those. You'll have > to show us the PDF. > > Pau

Re: [iText-questions] Form Flattening

2011-09-16 Thread Paulo Soares
It may be a dynamic LiveCycle form and iText can't flatten those. You'll have to show us the PDF. Paulo -Original Message- From: Andy Wu [mailto:a...@aw20.co.uk] Sent: Friday, September 16, 2011 4:34 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Form Fla

Re: [iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
Hi Paulo, Thanks for the prompt reply, The PDF returned from the client as PdfStamper.getAcroFields().getFields() returns 0 fields so I can't readily loop over the fields to do that. I can certainly call it with the field names having prior knowledge of what should be there but I guess that's

Re: [iText-questions] Form Flattening

2011-09-16 Thread Paulo Soares
Look like they are not generating the appearances. Call AcroFields.regenerateField() for each field to regenerate the appearances and make flattening working. Paulo -Original Message- From: Andy Wu [mailto:a...@aw20.co.uk] Sent: Friday, September 16, 2011 3:58 PM To: itext-questions@li

Re: [iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
PS. One thing I've noted is that when I fill it in and save it, I can still get at the fields in the AcroForm but with the client submitted PDFs, there are no fields present even though in Adobe Reader, it looks like there are. Perhaps that's a clue to what's happening. On 16/09/2011 15:58, And

[iText-questions] Form Flattening

2011-09-16 Thread Andy Wu
Hi All, I have an issue with attempting to flatten forms where the data is disappearing. If I open the original form in Adobe Reader, fill it in and save it, I have no problem flattening it. However when our end clients are filling them in and return them to us, flattening them with iText resu

Re: [iText-questions] Fill comb-field

2011-09-16 Thread 1T3XT BVBA
On 13/09/2011 18:51, Johannes Becker wrote: > Hi, > > today I tried to fill in a COMB-field: > form.setField("combFieldXXX", value); > > My problem is, that the characters don't show up in separate boxes. Instead > it appears as one single string. > > What am I doing wrong here? Any hints? Take a

Re: [iText-questions] Fwd: Submitting patch for bug found in com.itextpdf.text.pdf.DocumentFont

2011-09-16 Thread 1T3XT BVBA
On 13/09/2011 5:41, Todd Chandler wrote: > > the array newWidths is larger than 256, which is the array size that > widths is initialized with. My patch for it follows: I've just uploaded the patch (slightly altered) to SourceForge: http://itext.svn.sourceforge.net/itext/?rev=4963&view=rev Could

Re: [iText-questions] How can I set the width only for the first column in a pdfpcell in iTextSharp version 4.0.4

2011-09-16 Thread 1T3XT BVBA
On 16/09/2011 14:07, sudhaofficial wrote: > Hi Friends, > Am also facing the same problem. Datatable may contain any number of > columns. Now i dont want to wrap the content of column (atleast for column > headers). I tried with NoWrap also. But it is overlapping with the adjacent > cells. Please h

Re: [iText-questions] How can I set the width only for the first column in a pdfpcell in iTextSharp version 4.0.4

2011-09-16 Thread sudhaofficial
Hi Friends, Am also facing the same problem. Datatable may contain any number of columns. Now i dont want to wrap the content of column (atleast for column headers). I tried with NoWrap also. But it is overlapping with the adjacent cells. Please help me in this. Thanks in advance. -- View this me