[iText-questions] Replace XFA in a Acrobat form.

2009-05-28 Thread Marian Aldenhövel
Hi, I am extracting the XML from an XFA form, processing it in a different application and now would like to stuff it back into the PDF. Unfortunately nothing I do to the data sticks. Here is my code: public static void main(String[] args) { try { if (args.length==0) {

[iText-questions] BUG in CMapParser

2009-05-28 Thread Gregor Kofler
Hi, i think there is a bug in CMapParser.java see at the following Code: private void readUntilEndOfLine( InputStream is, StringBuffer buf ) throws IOException 379 { 380 int nextByte = is.read(); 381 while( nextByte != -1 && nextByte != 0x0D && nextByte != 0x0D ) 382

Re: [iText-questions] bug in 2.1.5? empty Chunks added to a Phrase/Anchor/Paragraph/ListItem no longer 'empty'

2009-05-28 Thread Jeff Kelm
Hi Bruno, Thanks very much for that fix and the background on hyphenation and empty Chunks. Jeff Bruno Lowagie wrote: > Jeff Kelm wrote: > >> That fix solves the problem as described for sure. I've just noticed >> though that com.lowagie.text.Phrase#add(int, Object) would have to be >> upd

Re: [iText-questions] DottedLineSeparator and paragraph alignment

2009-05-28 Thread 1T3XT info
Mathias Nilsson wrote: > Hi, > > When using the DottedLineSeparator I can get it to work if the Paragraph is > aligned left. > > I have a columnText and a pdftable with one cell. The paragraph is added to > the cell. > If I have 3 chunks and the middle is a DottedLineSeparator then it will only

Re: [iText-questions] bug in 2.1.5? empty Chunks added to a Phrase/Anchor/Paragraph/ListItem no longer 'empty'

2009-05-28 Thread Bruno Lowagie
Jeff Kelm wrote: > That fix solves the problem as described for sure. I've just noticed > though that com.lowagie.text.Phrase#add(int, Object) would have to be > updated with a similar fix. OK. > The only potential issue I can see is that a Phrase (or subclass) no > longer guarantees that all

Re: [iText-questions] conversion of JPanel to PDF and tooltips

2009-05-28 Thread 1T3XT info
XML4Pharma wrote: > I am new to iText and do not know much about PDF structure (yet). > > I have a Swing application that creates and shows a complex JPanel. > > I have been able to transform the JPanel to PDF. It works great, but (of > course) I am loosing the panel's components tooltips. AF

Re: [iText-questions] bug in 2.1.5? empty Chunks added to a Phrase/Anchor/Paragraph/ListItem no longer 'empty'

2009-05-28 Thread Jeff Kelm
Hi Bruno, First off, thanks for the lightning quick response! That fix solves the problem as described for sure. I've just noticed though that com.lowagie.text.Phrase#add(int, Object) would have to be updated with a similar fix. The only potential issue I can see is that a Phrase (or subclass)

Re: [iText-questions] Overlay text content on PDF/A-1b

2009-05-28 Thread Bruno Lowagie
ek1975 wrote: > - The Last modification date field in the document's info dictionary does > not match the last modification date entry in the document's XMP Metadata You're not using the most recent iText version. This was fixed a while ago. > - Producer entry in Document information matches XMP

[iText-questions] DottedLineSeparator and paragraph alignment

2009-05-28 Thread Mathias Nilsson
Hi, When using the DottedLineSeparator I can get it to work if the Paragraph is aligned left. I have a columnText and a pdftable with one cell. The paragraph is added to the cell. If I have 3 chunks and the middle is a DottedLineSeparator then it will only work if the paragraph is aligned left.

Re: [iText-questions] bug in 2.1.5? empty Chunks added to a Phrase/Anchor/Paragraph/ListItem no longer 'empty'

2009-05-28 Thread Bruno Lowagie
Jeff Kelm wrote: > Hi, > > com.lowagie.text.Phrase#add(Object) invokes > com.lowagie.text.Phrase#addChunk(Chunk) when adding a Chunk. addChunk() > sets a com.lowagie.text.Chunk.HYPHENATION attribute to the Chunk being > added if the Chunk was missing this attribute. As one of its conditions >

[iText-questions] Overlay text content on PDF/A-1b

2009-05-28 Thread ek1975
Hello, I have a PDF/A-1b document that Adobe Pro 9 certifies to be a PDF/A-1b. When I use iText to overlay some text on it, the output document is not a PDF/A-1b anymore. The Java application displays this message "[Fatal Error] :27:2: The markup in the document following the root element must

Re: [iText-questions] how to insert .eps image

2009-05-28 Thread udaykumar
Hi Thanks for the promt reply. So in order to deal with eps files in iText, we need to convert this using other tools. Paulo Soares-3 wrote: > > eps is not a format supported by iText. You'll have to convert it first to > pdf with some other tool, like ghostscript. > > Paulo > >> -Origi

[iText-questions] conversion of JPanel to PDF and tooltips

2009-05-28 Thread XML4Pharma
I am new to iText and do not know much about PDF structure (yet). I have a Swing application that creates and shows a complex JPanel. I have been able to transform the JPanel to PDF. It works great, but (of course) I am loosing the panel's components tooltips. Is there a way to add them again a

[iText-questions] bug in 2.1.5? empty Chunks added to a Phrase/Anchor/Paragraph/ListItem no longer 'empty'

2009-05-28 Thread Jeff Kelm
Hi, com.lowagie.text.Phrase#add(Object) invokes com.lowagie.text.Phrase#addChunk(Chunk) when adding a Chunk. addChunk() sets a com.lowagie.text.Chunk.HYPHENATION attribute to the Chunk being added if the Chunk was missing this attribute. As one of its conditions for returning 'true', com.lowag

Re: [iText-questions] how to insert .eps image

2009-05-28 Thread Paulo Soares
eps is not a format supported by iText. You'll have to convert it first to pdf with some other tool, like ghostscript. Paulo > -Original Message- > From: udaykumar [mailto:talktoudayku...@gmail.com] > Sent: Thursday, May 28, 2009 10:46 AM > To: itext-questions@lists.sourceforge.net > S

Re: [iText-questions] Re ad Separations

2009-05-28 Thread Paulo Soares
There's nothing ready made to do it but if you care to program it it's not too difficult. Paulo > -Original Message- > From: zomeo [mailto:zo...@interfree.it] > Sent: Thursday, May 28, 2009 10:31 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Re ad Separati

[iText-questions] how to insert .eps image

2009-05-28 Thread udaykumar
Hi I'm new to this iText. I want to create a pdf with an .eps image in that. i'm able to create a pdf with other formats of image(like .gif,jpeg,bmp etc). But unable to create with the format of .eps. will you please any one tell me how to do it. I'm using iTest 2.1.5. Her is my code. Buffe

Re: [iText-questions] TIFF to PDF Merging Issue.

2009-05-28 Thread Paulo Soares
Some files work and some don't and it has nothing to do with the size. You can read the files with System.Drawing.Image.FromFile(). Paulo > -Original Message- > From: Khare, Mayank [mailto:mayank.kh...@capgemini.com] > Sent: Thursday, May 28, 2009 7:42 AM > To: itext-questions@lists.so

[iText-questions] Re ad Separations

2009-05-28 Thread zomeo
Hi all, I'd need to read all the separations in a PDF page. So, if I have a page with 5 colors inside (Cyan, Magenta, Yellow, Black and Spot) I need to read the names and the colorants of every separation inside the page. Is it possible to do with iText? Thank you and regards -- View this mess

Re: [iText-questions] Remove page breaks when combining documents

2009-05-28 Thread Bruno Lowagie
Ewen Orme wrote: > a request has come in that during the combining > process, the elements from one document carry directly on from the > elements of the last, on the same page in necessary. In other words: you have existing PDF files and you want to "reflow" content. That's not possible: http:

Re: [iText-questions] How to write Arabic Text in PDF

2009-05-28 Thread Bruno Lowagie
Ravi Shankar D.K wrote: > In the above code I am pointing to the Arial unicode font file(TTF) > which should be in file system and this is the only one which works with > IDENTITY_H to support Arabic. That's correct. > Is there anyway we can avoid putting the TTF file in File system ? we > are

[iText-questions] Remove page breaks when combining documents

2009-05-28 Thread Ewen Orme
Hello. I have been using iText (with help from the excellent book) for generating PDF as one of several output formats our app provides. The layout of these docs is driven by the user via our layout manager. After having generated several documents the user may wish to stitch these together.

Re: [iText-questions] How to write Arabic Text in PDF

2009-05-28 Thread Ravi Shankar D.K
Thanks Bruno, It is working fine for me now. I am using following code to set the Font for arabic support     AcroFields form = stamper.getAcroFields();     BaseFont bf = BaseFont.createFont("/home/oracle/ARIALUNI.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)