Re: [iText-questions] PDF saving is not possible

2008-08-20 Thread Paulo Soares
Are you using the latest iText? Paulo - Original Message - From: "ninan jackson" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, August 20, 2008 11:59 PM Subject: Re: [iText-questions] PDF saving is not possible > Hi Paulo, > > Thanks for your help

Re: [iText-questions] PDF saving is not possible

2008-08-20 Thread ninan jackson
Hi Paulo, Thanks for your help!!! I was able to edit and save the PDF file (that got generated from iText) only once. When I tried to open it and save it again, I got  a warning like that as of before - ""This document contained certain rights to enable special features in Adobe Reader.  The doc

Re: [iText-questions] How do I make ColumnText.showTextAligned work forPdfWriter.RUN_DIRECTION_RTL?

2008-08-20 Thread a5sk4s
I was really blind. Thanks. Paulo Soares wrote: > > new Phrase(ar1,f2) > > Paulo > -- View this message in context: http://www.nabble.com/How-do-I-make-ColumnText.showTextAligned-work-for-PdfWriter.RUN_DIRECTION_RTL--tp19058818p19078751.html Sent from the iText - General mailing list arch

Re: [iText-questions] An error exists on this page ...

2008-08-20 Thread Leonard Rosenthol
There are no free validation tools. The only tools that I know of are commercial - the most obvious being Adobe Acrobat Professional. Leonard On Aug 20, 2008, at 3:51 PM, a5sk4s wrote: > > Are there any 3rd party free validation tools for PDF that help me > track down > the issue? > > I sus

Re: [iText-questions] Extremely large PDFs

2008-08-20 Thread Leonard Rosenthol
Check out the products from Appligent (http://www.appligent.com). Leonard On Aug 20, 2008, at 3:50 PM, Edward W. Rouse wrote: > At this point I am considering commercial solutions. So far I > haven't found > any with Java API's or that can be run on a Unix (Solaris) command > line. At > leas

[iText-questions] PdfGraphics2D Patch

2008-08-20 Thread Bill Ensley
I just downloaded the latest version of iText and a patch has been added to PdfGraphics2D since my last version. It is in the drawString method, line 431 and attempts to simulate a bold font. This new patch does not check to see if the current color has transparency and so renders in full color

Re: [iText-questions] unwanted wrapping / false width in ColumnText

2008-08-20 Thread oh4v69g02
Thank you Paulo, increasing the right border of the columnText is a good idea, since the widest paragraph shouldn't go over that line anyway. But I don't know what else might be going on, I believe my code is correct. Increasing the right border by 0.01 points is the first value that worked (tha

Re: [iText-questions] PDF saving is not possible

2008-08-20 Thread Paulo Soares
See http://1t3xt.info/examples/browse/?page=example&id=348. Paulo - Original Message - From: "ninan jackson" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 20, 2008 9:52 PM Subject: [iText-questions] PDF saving is not possible > Hi, > > I used iText for populating the PDF which was a

[iText-questions] PDF saving is not possible

2008-08-20 Thread ninan jackson
Hi,   I used iText for populating the PDF which was an editable/savable version, which was created by Adobe Pro 8. After populating the PDF using iText, I lost the ability to edit the populated PDF using Adobe Reader. What I believe is happening is that when the PDF is populated by iText, the me

Re: [iText-questions] unwanted wrapping / false width in ColumnText

2008-08-20 Thread Paulo Soares
0.0001 points should be enough, there's something else going on. In any case you may increase the right border to avoid wrapping. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, August 20, 2008 8:57 PM Subject: Re: [iText-questions] unwanted wrapping / false w

Re: [iText-questions] How do I make ColumnText.showTextAligned work forPdfWriter.RUN_DIRECTION_RTL?

2008-08-20 Thread Paulo Soares
new Phrase(ar1,f2) Paulo - Original Message - From: "a5sk4s" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 20, 2008 8:45 PM Subject: Re: [iText-questions] How do I make ColumnText.showTextAligned work forPdfWriter.RUN_DIRECTION_RTL? I'm using the exact same code as in http://itext

Re: [iText-questions] unwanted wrapping / false width in ColumnText

2008-08-20 Thread oh4v69g02
Hello Paulo, thanks for your quick answer! I already tried that, as you can see in the part "getPointsFromMM(210)-marginRight-max_par_width-0.025f". The problem is that for a normal email address 0.025 points was enough (0.0001 not). But than I put in a wider String, e.g. an internet-address, a

[iText-questions] An error exists on this page ...

2008-08-20 Thread a5sk4s
Are there any 3rd party free validation tools for PDF that help me track down the issue? I suspect that the reason for this is somewhere hidden in the use of PdfContentByte and ColumnText, namely cb.beginText()/cb.endText() and ct.go(), but I'm not sure. -- View this message in context: http:/

Re: [iText-questions] Extremely large PDFs

2008-08-20 Thread Edward W. Rouse
At this point I am considering commercial solutions. So far I haven't found any with Java API's or that can be run on a Unix (Solaris) command line. At least not any that have all of the features I need. Edward W. Rouse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [iText-questions] How do I make ColumnText.showTextAligned work forPdfWriter.RUN_DIRECTION_RTL?

2008-08-20 Thread a5sk4s
I'm using the exact same code as in http://itext.ugent.be/library/com/lowagie/examples/fonts/styles/RightToLeft.java except for the added call to ColumnText.showTextAligned and the font change to arialuni.ttf. ar1 is as in that example: public static String ar1 = "\u0623\u0648\u0631\u0648\u0628\

Re: [iText-questions] Extremely large PDFs

2008-08-20 Thread Leonard Rosenthol
I am not aware of any open source/free utilities that can handle files that large - even to split them. I can think of a few commercial solutions... Leonard On Aug 20, 2008, at 3:00 PM, Edward W. Rouse wrote: > Ah, gloom. This is not going to go away and I am being forced into > supporting

Re: [iText-questions] unwanted wrapping / false width in ColumnText

2008-08-20 Thread Paulo Soares
You have to make the ColumnText wider than what you measured in the Paragraph or the floating point rounding errors may cause the Paragraph to wrap. An increase of 0.0001 points should be enough. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, August 20, 2008

Re: [iText-questions] How do I make ColumnText.showTextAligned work forPdfWriter.RUN_DIRECTION_RTL?

2008-08-20 Thread Paulo Soares
Works for me. What exactly is ar1 and how are you defining the Arabic in the source file. Paulo - Original Message - From: "a5sk4s" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 20, 2008 7:37 PM Subject: Re: [iText-questions] How do I make ColumnText.showTextAligned work forPdfWrite

[iText-questions] unwanted wrapping / false width in ColumnText

2008-08-20 Thread oh4v69g02
Hello, I am experiencing a problem I haven't found so far: I'm adding a SimpleColumn (ColumnText) to the right side of the page at absolute position. The right border is easy, just the full length of 210mm (A4) minus the right margin. But I'm having trouble with the left border-position (the Al

Re: [iText-questions] Extremely large PDFs

2008-08-20 Thread Edward W. Rouse
Ah, gloom. This is not going to go away and I am being forced into supporting files that exceed the iText limit. I am hoping that there is a tool that can split such a large file in twain so I can run the pieces using my current iText based code. Does anyone know of a utility, java or otherwise tha

Re: [iText-questions] How do I make ColumnText.showTextAligned work forPdfWriter.RUN_DIRECTION_RTL?

2008-08-20 Thread a5sk4s
Yes I'm using arialuni.ttf, at least this is what I believe. Here are the relevant lines from the modified RightToLeft.java: BaseFont bf = BaseFont.createFont("c:\\windows\\fonts\\arialuni.ttf", BaseFont.IDENTITY_H, true); Font f2 = new Font(bf, 24, Font.NORMAL, Color.BLUE); Paulo Soares wrot

Re: [iText-questions] Extremely large PDFs

2008-08-20 Thread Edward W. Rouse
Thanks for the info. I will pass it on. Edward W. Rouse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Wednesday, August 20, 2008 1:16 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Extremely large PDFs

Re: [iText-questions] Setting different headers dynamically in pdf

2008-08-20 Thread Paulo Soares
Use writeSelectedRows(). There are lots of examples about it. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Nipun Aggarwal > Sent: Wednesday, August 20, 2008 6:52 PM > To: Post all your questions about iText here > Subject: Re: [iText-ques

Re: [iText-questions] Setting different headers dynamically in pdf

2008-08-20 Thread Nipun Aggarwal
Is there an example somewhere that I can refer to for this behavior? I was looking at the code samples at 1t3xt.info but could not get anything out of there. Nipun -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Tuesday, August 19, 2

Re: [iText-questions] Extremely large PDFs

2008-08-20 Thread Paulo Soares
iText doesn't support files over 2G and I suspect that it never will. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Edward W. Rouse > Sent: Wednesday, August 20, 2008 5:44 PM > To: 'Post all your questions about iText here' > Subject: [iTe

Re: [iText-questions] Question About iText and Word

2008-08-20 Thread Paulo Soares
iText doesn't convert Word to PDF. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Abounader, Joe (IT) > Sent: Wednesday, August 20, 2008 5:34 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Question About iText a

Re: [iText-questions] PdfStamper not working on some PDF's

2008-08-20 Thread Paulo Soares
If no exception is thrown my guess is that your PDF has a crop box and you are writing the footer outside the visible area. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Peter Delahunty > Sent: Wednesday, August 20, 2008 3:32 PM > To: ite

Re: [iText-questions] need help adding headers to an existing pdf

2008-08-20 Thread Paulo Soares
Look for examples using PdfStamper. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Anna riechart > Sent: Wednesday, August 20, 2008 5:04 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] need help adding headers to

[iText-questions] Extremely large PDFs

2008-08-20 Thread Edward W. Rouse
We are currently processing PDFs that we receive from a 3rd party process for a customer. These files are extremely large. We recently hit a file size limit when trying to process a pdf that exceeded 2.2Gb in size. The error was Exception in thread "main" java.lang.IllegalArgumentException: Si

[iText-questions] Question About iText and Word

2008-08-20 Thread Abounader, Joe (IT)
Hi, I'm a software developer using iText to develop a text-to-PDF conversion utility in Java. I was wondering whether it's also possible to convert documents from MS Word to PDF by using iText. I went over the FAQ and couldn't find any answer to this; but my apologies if I missed it. Many than

[iText-questions] PdfStamper not working on some PDF's

2008-08-20 Thread Peter Delahunty
Hi All Have written some code using itext framework to write a footer to each page in a PDF. String origninalPdf = "test.pdf"; String outputPdf = "test-stamped.pdf"; String text "hello from me"; PdfReader reader = new PdfReader(originalPdf); PdfStamper stamper = new PdfStamper(re

Re: [iText-questions] Padding Methods

2008-08-20 Thread Mike
DUH! There is a difference between the class PdfPTable and PdfTable. Mike - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win g

[iText-questions] need help adding headers to an existing pdf

2008-08-20 Thread Anna riechart
I'm a iText newbie. I figured out how to add headers to a pdf while creating the pdf on the fly. But how can I read in an existing pdf and add a header to every page? Thanks in advance for any help. - This SF.Net email is spons

Re: [iText-questions] Problem with PdfPTable [RTF]

2008-08-20 Thread Howard Shank
I have not updated SVN lately with any of my changes. I have not had time to test new code under development. At this time, you are not able to insert elements inside other elements. This is a known limitation being worked on at this time for a client of mine. Howard Shank - Original Mes

Re: [iText-questions] Problem with PdfPTable [RTF]

2008-08-20 Thread Le Doyen, Loic
Thank you. Are the functionalities more developed in SVN ? (an other bug : for an image put in the first cell of the table, the image is placed before the table and the cell is empty) Best regards, Loïc Le Doyen -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Be

Re: [iText-questions] Problem with PdfPTable [RTF]

2008-08-20 Thread Howard Shank
RTF Support for PdfPTable is brand new and as such, only supports bare functionality. Howard Shank - Original Message From: Paulo Soares <[EMAIL PROTECTED]> To: Post all your questions about iText here Sent: Wednesday, August 20, 2008 10:28:33 AM Subject: Re: [iText-questions] Probl

Re: [iText-questions] Problem with PdfPTable [RTF]

2008-08-20 Thread Paulo Soares
Changed the subject. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Le Doyen, Loic > Sent: Wednesday, August 20, 2008 3:13 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] Problem with PdfPTable > > Actuall

Re: [iText-questions] Problem with PdfPTable

2008-08-20 Thread Le Doyen, Loic
Actually, I have tried all possible arrangements, but the only way to display an image in a Cell is to use setPicture and to not put any object with addElement. Else, if I use addElement with a Paragraph, it is displayed, but not the image. In an other hand, if I try to put an Image, Chunk or Ph

Re: [iText-questions] modify existing rtf

2008-08-20 Thread Howard Shank
No. It is not possible to modify an RTF file at this time using iText RTF. Howard Shank - Original Message From: mzk741009 <[EMAIL PROTECTED]> To: itext-questions@lists.sourceforge.net Sent: Wednesday, August 20, 2008 12:01:50 AM Subject: [iText-questions] modify existing rtf hello

Re: [iText-questions] Problem with PdfPTable

2008-08-20 Thread Le Doyen, Loic
Actually, I have found a solution, that is to use the setPhrase method instead of the addElement which doesn't work with Phrase or Chunk as parameter. However, I have an other problem with the PdfPTable : I use setTotalWidth to configure widths of the table and its colums, with parameters in pixe

Re: [iText-questions] Problem with PdfPTable

2008-08-20 Thread Paulo Soares
Make sure you fill the row or call PdfPTable.completeRow(). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Le Doyen, Loic > Sent: Wednesday, August 20, 2008 11:06 AM > To: Post all your questions about iText here > Subject: [iText-questions

[iText-questions] Problem with PdfPTable

2008-08-20 Thread Le Doyen, Loic
Hi, Howard Shank wrote that the Table class is obsolete, so I try to use the PdfPTable one. However, the only thing I created when I add it to my document is an empty table with one empty row. The code (javascript) I use is the following : var finalTable = new Packages.com.lowagie.text.pdf.Pdf

Re: [iText-questions] Padding Methods

2008-08-20 Thread Paulo Soares
PdfPCell still has the padding methods. What useful methods should PdfPTable and PdfPCell expose? Paulo - Original Message - From: "Mike Duffy" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 20, 2008 4:51 AM Subject: [iText-questions] Padding Methods I just downloaded the latest and