Re: [iText-questions] Adding borders to MultiColumnText

2007-07-06 Thread mister bean
If you're looking for a specific method/API, there isn't one that I know of in MCT (I've just been looking at the code). You will have to draw the lines manually (that is, using lower level methods). Bruno has an example that points you in the right direction on p. 208 of the book. ---Mister

[iText-questions] How to setup a 'Newspaper' column layout for an RTF document

2007-07-06 Thread Stefan
Can someone please provide a few hints on how I can achieve this I need my RTF doc to look like something like the following -- | Column 1 || Column 2 | |||

[iText-questions] How can I extract text( with suffix)

2007-07-06 Thread uncle99
Hello I want to extract text from pdf file. extractly I want to pdf convert to html. My pdf file include suffix(in html, I use sup, sub tag) How can I extract text with suffix effect? thank you -- This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com

[iText-questions] [RTF] which is the better rtf viewer for itext

2007-07-06 Thread Manuel EspaƱol
Hi, I have the following problem with the code below Table t=new Table(2); Cell c=new Cell(hola 00); c.setRowspan(2); t.addCell(c,0,0); c=new Cell(hola 01); t.addCell(c,0,1); c=new Cell(hola 12); t.addCell(c,1,1); c=new Cell(hola 21);

Re: [iText-questions] How can I extract text( with suffix)

2007-07-06 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: Hello I want to extract text from pdf file. extractly I want to pdf convert to html. My pdf file include suffix(in html, I use sup, sub tag) How can I extract text with suffix effect? iText doesn't do this. You'll need another product (before you ask: I don't know

Re: [iText-questions] iText: Font embedding DefaultFontMapper, application: jarnal

2007-07-06 Thread Bruno Lowagie (iText)
Weimar, Prof. Dr. Joerg R. wrote: Using jarnal, which uses iText for PDF creation, I have the problem that my custom font is not embedded. There's a public member variable in DefaultFontMapper that can be used to set the embedding variable. br, Bruno

[iText-questions] Speeding up page copy for BIG pdf's

2007-07-06 Thread Jim Cornmell
Hi All, I've developed an application to process large PDF files (1800 pages/700Mb for the largest, although most are around 1000 pages/300Mb). The process is all running on a Unix box as follows: STEP 1) SOME STUFF. STEP 2) Glue all of the individual pages together using pdftk (which

Re: [iText-questions] Farsi text on unix ?

2007-07-06 Thread Paul Hastings
Marko Nedanoski wrote: the farsi characters are shoen as squares. Any suggestions how could this be fixed (to show farsi squares/boxes usually means the char can't be rendered using the current font. got the right font? or can your unix box find it?

Re: [iText-questions] Speeding up page copy for BIG pdf's

2007-07-06 Thread Bruno Lowagie (iText)
Hello, I've read your workflow, and the first thing that comes to mind, is a counter-question: why are you using PdfCopy in STEP 4? Doesn't PdfStamper meet your requirements? As far as I understand it, you are manipulating only 1 file in STEP 4. br, Bruno

Re: [iText-questions] Speeding up page copy for BIG pdf's

2007-07-06 Thread Jim Cornmell
Hi, There is another process in step 3 which only works with output from pdftk (not written by me I hasten to add, legacy code which relies on the PDF structure produced by pdftk, i.e. it contains a rudimentary parser). So your suggestion is viable if this produces the same PDF structure, I

Re: [iText-questions] Farsi text on unix ?

2007-07-06 Thread Bruno Lowagie (iText)
Marko Nedanoski wrote: Hi I'm using the createGraphicsShapes method in order to get the Graphics2D object so it can be drawn to the pdf directly, bacause i need to print farsi text. It works fine with this method for acquiring the Graphics2D object, unlike with the createGraphics object.

[iText-questions] Farsi text on unix ?

2007-07-06 Thread Marko Nedanoski
Hi I'm using the createGraphicsShapes method in order to get the Graphics2D object so it can be drawn to the pdf directly, bacause i need to print farsi text. It works fine with this method for acquiring the Graphics2D object, unlike with the createGraphics object. However, it solves the problem

Re: [iText-questions] Adding borders to MultiColumnText

2007-07-06 Thread iTEXT USER
Hi Mister Bean, Thanks for the reply.I had refered the example, it just adds a line between columns. But the requirement here is to add border for all the columns. I added the borders to PdfPtables , as a workaround, only on the sides of the table. But I have a new problem now. Even

Re: [iText-questions] Speeding up page copy for BIG pdf's

2007-07-06 Thread Bruno Lowagie (iText)
Jim Cornmell wrote: There is another process in step 3 which only works with output from pdftk (not written by me I hasten to add, legacy code which relies on the PDF structure produced by pdftk, i.e. it contains a rudimentary parser). So your suggestion is viable if this produces the same

Re: [iText-questions] Speeding up page copy for BIG pdf's

2007-07-06 Thread Jim Cornmell
Hi, That's enough for me to Have a go I'll let you know how I get on. Thanks for the help its really appreciated. Jim Bruno Lowagie (iText) [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/07/2007 11:45 Please respond to Post all your questions about iText here

Re: [iText-questions] Adding borders to MultiColumnText

2007-07-06 Thread Bruno Lowagie (iText)
iTEXT USER wrote: it just adds a line between columns. But the requirement here is to add border for all the columns. I don't see the problem. Adapting the example to draw a rectangle instead of a line shouldn't be that hard. I added the borders to PdfPtables , as a workaround, only on the

Re: [iText-questions] Speeding up page copy for BIG pdf's

2007-07-06 Thread Jim Cornmell
Hi, It looks to be quicker using PdfStamper, than using PdfCopy (i.e. 1h20m instead of 2). It was much easier to migrate the code than I thought, however I have one question: How do I set page labels using PdfStamper, I cannot see a way to do it in the documentation, but hope I'm just

[iText-questions] concatenating pdf documents

2007-07-06 Thread Peter Gershkovich
What is the best way to concatenate several pdf files into one document considering that I am getting pdf documents from a database: Blob report = resultSet2.getBlob( PdfDocument ); Then I get binary stream and read it to an output. Below are the details. I read in the book how one could

Re: [iText-questions] Designer RadioButton work-around?

2007-07-06 Thread sseif
OK, I have made some progress but still not quite where I would like. I have discovered you need to do the following: Document xfaDoc = acroFields.getXfa().getDomDocument(); /* Add entry node below to appropriate forms */

[iText-questions] How to use bookmark xml and new PDF documents

2007-07-06 Thread dayvidpow
Currently I am using the following to add some bookmarks to an existing PDF: PdfStamper.setOutlines(SimpleBookmark.importFromXML(new ByteArrayInputStream(bookmarks.buildXml().getBytes(; The above is working just fine, however I need to add the same bookmarks to a new PDF I am creating from

Re: [iText-questions] concatenating pdf documents

2007-07-06 Thread Peter Gershkovich
Solved this problem - here is the key code. byte[] byteBuffer = output.toByteArray(); PdfReader reader = new PdfReader( byteBuffer ); //add all pages to one document for ( int page = 1; page = reader.getNumberOfPages(); page++ ) {

Re: [iText-questions] How to use bookmark xml and new PDF documents

2007-07-06 Thread Paulo Soares
Here's an example in C# but you'll get the idea. ArrayList newBookmarks = new ArrayList(); GenerateOutline(newBookmarks, a); PdfDictionary top = new PdfDictionary(); PdfIndirectReference topRef = writer.PdfIndirectReference; Object[] kids = SimpleBookmark.IterateOutlines(writer, topRef,

Re: [iText-questions] Designer RadioButton work-around?

2007-07-06 Thread Paulo Soares
You won't have any new XFA functionality in the near future. Unless you have a xml workflow and really need to use Designer, use standard acroforms. Paulo - Original Message - From: [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Friday, July 06, 2007 4:27 PM Subject:

Re: [iText-questions] Speeding up page copy for BIG pdf's

2007-07-06 Thread Paulo Soares
- Original Message - From: Jim Cornmell [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Sent: Friday, July 06, 2007 2:17 PM Subject: Re: [iText-questions] Speeding up page copy for BIG pdf's Hi, It looks to be quicker using

Re: [iText-questions] [RTF] which is the better rtf viewer for itext

2007-07-06 Thread Mark Hall
in MS Word setBackgroundColor doesn't work and setRowspan works fine; but in OpenOffice setBackgroundColor works and setRowspan doesn`t. How can I solve this problem? Which rtf viewer must i use for itext? I tested this example with itext releases 1.3 and 2.0, MS Word 97 and 2000 and