Re: [iText-questions] page number determination

2010-01-22 Thread newoutlook
You are right I am parsing StructTree of PDF document. First, I get indirect reference to a page object I am looking from a tag or structure element(table, link, and list etc...) . Then I compare page original reference object's number for each page with number of indirect reference of the pa

Re: [iText-questions] Concatenating forms

2010-01-22 Thread 1T3XT info
pc53 wrote: > Hello, > > I'm trying to concatenate multiple forms, each with a few fields, that have > been created with Adobe LiveCycle Designer. The form is probably hybrid: it contains an AcroForm as well as (an) XFA stream(s). > One of the fields is a Date > type, which has a formatting m

[iText-questions] Concatenating forms

2010-01-22 Thread pc53
Hello, I'm trying to concatenate multiple forms, each with a few fields, that have been created with Adobe LiveCycle Designer. One of the fields is a Date type, which has a formatting mask and a pop up calendar for input. Each form has a Submit button to upload the field values to a web server.

Re: [iText-questions] adding an image as bytearray

2010-01-22 Thread vlad2005
Oh, my mistake. I don't see that getInstance accept and byte[] as argument. Thanks. Work as expected. 1T3XT info wrote: > > vlad2005 wrote: >> Working on an application in Flex. The image is sent as bytearray. I want >> to >> add this image to a pdf without saving the image on HDD at server si

Re: [iText-questions] Paragraphs in Stamper

2010-01-22 Thread 1T3XT info
Escamilla, Angel wrote: > I’m trying to add a paragraph (meaning a multiline text) as watermark to > a file, is there a way of doing this using the Stamper or a different > method to achieve this? Yes, you can do this with the ColumnText object. -- This answer is provided by 1T3XT BVBA http://w

Re: [iText-questions] Knowing the Correct Font Encoding for FontFactory.getFont()

2010-01-22 Thread Paulo Soares
It should work with BaseFont.IDENTITY-H in all cases unless it's a symbolic font and you're trying to use chars above \u00ff or it's not an Unicode font. Looking at the font would help. Paulo > -Original Message- > From: mister bean [mailto:abinst...@pacificdataworks.com] > Sent: Frid

[iText-questions] Paragraphs in Stamper

2010-01-22 Thread Escamilla, Angel
I'm trying to add a paragraph (meaning a multiline text) as watermark to a file, is there a way of doing this using the Stamper or a different method to achieve this? So far I've seen the ShowText method but that will only print one line and I need multiple. Appreciate the help. Angel

Re: [iText-questions] adding an image as bytearray

2010-01-22 Thread 1T3XT info
vlad2005 wrote: > Working on an application in Flex. The image is sent as bytearray. I want to > add this image to a pdf without saving the image on HDD at server side. It > can do this using itext? The Image object in iText accepts a byte[] containing image data. There are different methods thoug

[iText-questions] adding an image as bytearray

2010-01-22 Thread vlad2005
Working on an application in Flex. The image is sent as bytearray. I want to add this image to a pdf without saving the image on HDD at server side. It can do this using itext? -- View this message in context: http://old.nabble.com/adding-an-image-as-bytearray-tp27275906p27275906.html Sent from

Re: [iText-questions] Merge Xml data using XDP.

2010-01-22 Thread Leonard Rosenthol
Details on XDP can be found in the XFA specification on the Adobe website. It is an XML serialization of an XFA-based PDF with the associated PDF either embedded or referenced. That's why I don't really understand what you are being asked to do Leonard -Original Message- From: SRI

Re: [iText-questions] Reg : pdf to jpeg conversion

2010-01-22 Thread Mike Marchywka
> Date: Fri, 22 Jan 2010 14:33:24 +0100 > From: i...@1t3xt.info > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] Reg : pdf to jpeg conversion > > Murali Jillella wrote: >> Is it possible to get the contents of the image into a byte array? > > No, when you create an Im

Re: [iText-questions] Reg : pdf to jpeg conversion

2010-01-22 Thread 1T3XT info
Murali Jillella wrote: > Is it possible to get the contents of the image into a byte array? No, when you create an Image this way, you're creating a Form XObject, not an Image XObject. Big difference! > I > have noticed that jpeg.getOriginalData() returns null. Why? Because there is no origi

Re: [iText-questions] java.lang.OutOfMemoryError

2010-01-22 Thread Mike Marchywka
> Date: Fri, 22 Jan 2010 12:14:20 +0100 > From: > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] java.lang.OutOfMemoryError > > Hi > > i hve a problem with a programm using the itext library. > he throws me an OutOfMemoryError when h

[iText-questions] java.lang.OutOfMemoryError

2010-01-22 Thread Faraz Fallahi
Hi i hve a problem with a programm using the itext library. he throws me an OutOfMemoryError when he calls upon stamper.close(); (marked by the comment \\erorr). The step before the stamper.close() in the error propagation is the streams.add(stampPageNumbers(getMainReportStream(pageEvents)));(mark

[iText-questions] Reg : pdf to jpeg conversion

2010-01-22 Thread Murali Jillella
Dear All, I am trying the following code: PdfReader pdfReader = new PdfReader(fileName); FileOutputStream output = new FileOutputStream(outputFile); PdfStamper pdfStamper = new PdfStamper(pdfReader, output); Image jpeg = Jpeg.getInstance(pdfStamper.getImportedPage(pdfReader, 1)); Is it possi

Re: [iText-questions] iText in Action, Second Edition

2010-01-22 Thread Glen Hamel
Ya!! I got mine.. And the Book too when it's released!! I like having the book at my side for faster reference when in a rush. But at least now I can play with 5.0 and get ahead of the game with my reading of it in pdf form for now. Glen Hamel Auric Networks Canada, Inc. 570 Orwell Street, Un

Re: [iText-questions] Merge Xml data using XDP.

2010-01-22 Thread SRI!0!
Hi Leonard, Iam a newbie to this new xml standard in itext. I apologize if i had misused the terms. Can you please refer me where I can start off with the XDP,Xml etc stuff. Thanks, Sri... Leonard Rosenthol-3 wrote: > > Do you understand the relationship between .xdp and .pdf? I

[iText-questions] java.lang.OutOfMemoryError

2010-01-22 Thread Faraz Fallahi
Hi i hve a problem with a programm using the itext library. he throws me an OutOfMemoryError when he calls upon stamper.close(); (marked by the comment \\erorr). The step before the stamper.close() in the error propagation is the streams.add(stampPageNumbers( getMainReportStream(pageEvents)));(mar

Re: [iText-questions] Merge Xml data using XDP.

2010-01-22 Thread Leonard Rosenthol
Do you understand the relationship between .xdp and .pdf? I think you may have misunderstood the requirements basd on what you have been provided. Please read up on what XDP is and how it relates to PDF, review the specific materials you've been provided with, and then see if you still have que

Re: [iText-questions] Populate hidden fields in XFA document

2010-01-22 Thread Leonard Rosenthol
You will have to write all the XFA handling yourself - but it's just XML... Leonard -Original Message- From: SRI!0! [mailto:srikan...@live.in] Sent: Friday, January 22, 2010 10:58 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Populate hidden fields in XFA docume

[iText-questions] Merge Xml data using XDP.

2010-01-22 Thread SRI!0!
Hi, I have a .xdp, .xml and .pdf file. I have a requirement to use the xdp file and merge the data in .xml file into the pdf. Please let me know how to do this. Example would be appreciated. Regards, Srikanth. -- View this message in context: http://old.nabble.com/Merge-Xml-data-using-XDP.

Re: [iText-questions] PDFPTableEvents and Canvasing

2010-01-22 Thread Rodney Williams
I had forgotten to add a descriptive subject for my response. This question is still not answer but there was a second questions that got dropped in our email exchanges. 2) I can't find examples anywhere of continuous horizontal scroll as you would do in Excel. > > > LOL. The CreatePDF proc

[iText-questions] Populate hidden fields in XFA document

2010-01-22 Thread SRI!0!
Hi, I have a requirement where I have a dynamic XFA documents that have hidden subsections which dynamically appear if there is data provided for those sections. This means we could create a 10 page document and show anywhere from 1 - 10 pages based upon the data we provide to the document.

[iText-questions] Knowing the Correct Font Encoding for FontFactory.getFont()

2010-01-22 Thread mister bean
I have several .otf fonts that have this property: If I use FontFacotry.getFont() with encoding BaseFont.IDENTITY-H to use them, I get no exception, but nothing prints in the PDF (it's blank). However, if I change the encoding to BaseFont.WINANSI, the text prints fine (and uses the font). How

[iText-questions] iText in Action, Second Edition

2010-01-22 Thread Keith O
Just a bit of info - if you sign up for Manning's newsletter, they run some nice promotions. Using a promotion code for signing up, ordered the MEAP + Print book (includes Ebook when published) for about $35 US. For those wondering what MEAP is, it's having access (now) to everything Bruno is

Re: [iText-questions] Unable to edit or read exisiting PDF file

2010-01-22 Thread Alexis Pigeon
Hi Raja, 2010/1/21 raja sekar > > I am facing problem to edit PDF file. when i try to do then the program > getting terminated and i am unable to read field name or edit field name > from non IText created pdf file. > Please post to this list: - the PDF file you are trying to edit - a simple

Re: [iText-questions] Unable to edit or read exisiting PDF file

2010-01-22 Thread Leonard Rosenthol
Perhaps the file doesn't have any fields... Leonard From: raja sekar [mailto:rajaseka...@yahoo.com] Sent: Thursday, January 21, 2010 10:29 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Unable to edit or read exisiting PDF file I am facing problem to edit PDF file. whe