Re: [iText-questions] please clarify

2009-08-07 Thread Bruno Lowagie
Sangram Keshari Panda, HCL-Industry Solutions wrote: > Hi , > > > > I have gone thru the url > http://www.java2s.com/Code/Java/PDF-RTF/PrintJTabletoPdfdirectly.htm and > found that > > it converts a JTable to PDF file and then prints the files.Please > suggest me where I will paste the it

Re: [iText-questions] please clarify

2009-08-07 Thread Sven Boden
There are some "Funny Indians" ... Don't add attachments if they don't add value (and particularly not if they're huge). Secondly, haul your a** over to a "Java 101" class. If this is where you get stuck you lack something: education, common sense, or worse. A hint: the iText jar file (the th

Re: [iText-questions] please clarify

2009-08-07 Thread Bruno Lowagie
Sven Boden wrote: > Thirdly urgency is in the eye of the beholder. HCL Axon is rated #1 for customer satisfaction. EVERYTHING is urgent. > If your problem is "life > or death", pay for support (yes you can via Bruno's company). HCL Axon isn't on the list of customers. I'll send them a mail. bes

[iText-questions] which itext toolbox

2009-08-07 Thread Axel Rose
Hello, what is the correct itext toolbox to use? Here http://sourceforge.net/projects/itext/files/ I found "iText-toolbox-2.1.7.jar". and here http://sourceforge.net/projects/itexttoolbox/ I find "toolbox-0.0.2.jar" Using the first version I have usage problems, e.g. $ java -cp iTex

[iText-questions] splitting multipage PDFs and retaining annotations

2009-08-07 Thread Axel Rose
Hello, I'm splitting multipage PDFs into singlepage PDFs. This works great but annotations from the source aren't transferred into the singlepage results. The samples I found seem to just create new annotations but in my case I'd need to read and rewrite them. This is my split() method: --- priv

Re: [iText-questions] splitting multipage PDFs and retaining annotations

2009-08-07 Thread 1T3XT info
Axel Rose wrote: > Is there a way to transfer the annotations? Please download chapter 2 and read it well: http://itextsoftware.com/chap2ebook.shtml You'll find out that PdfImportedPage is like taking a "paper photocopy". Annotations get lost on paper too. Also, you're doing too much work. It's

Re: [iText-questions] splitting multipage PDFs and retaining annotations

2009-08-07 Thread Axel Rose
Thanks for the quick reply. Currently I still do not know whether copying the annotations from one document to another is possible or not possible at all. Regards Axel 1T3XT info schrieb: > Axel Rose wrote: >> Is there a way to transfer the annotations? > > Please download chapter 2 and read

Re: [iText-questions] splitting multipage PDFs and retaining annotations

2009-08-07 Thread 1T3XT info
Axel Rose wrote: > Thanks for the quick reply. > > Currently I still do not know whether copying the annotations from one > document > to another is possible or not possible at all. You'll need to read the dictionaries in the /Annots of every page; and create new PdfAnnotation objects based on w

Re: [iText-questions] splitting multipage PDFs and retaining annotations

2009-08-07 Thread Axel Rose
> You'll need to read the dictionaries in the /Annots of every page; > and create new PdfAnnotation objects based on what you find there. That's feasable. > I have no idea why you'd want to do that, but it's not impossible > if you have some time to kill. Customers want it. The annotation is an

Re: [iText-questions] Illegal operation 'Tm' outside a text object using DirectUnderContent

2009-08-07 Thread Klas Lindbäck
I noticed that you use == for String comparison. Using == to compare Strings is generally not recommended. The == operator compares the String object identities, not the String contents. String one = "test"; String two = new String("test"); String three = OtherClass.makeString("t","e","s","t"); /

[iText-questions] reading a PDF

2009-08-07 Thread Perindev Kumar Kanduri
Hi, I am planning to read a PDF file and write the data to a flat file or a .rtf or a .doc or to an Excel sheet. Could you let me know whether reading an PDF and then writing to another format is possible? If sou could you let me know the classes and interfaces that are available in tthe iText API?

Re: [iText-questions] reading a PDF

2009-08-07 Thread Alexis Pigeon
Hi Perindev, 2009/8/7 Perindev Kumar Kanduri > > Hi, I am planning to read a PDF file and write the data to a flat file or a > .rtf or a .doc or to an Excel sheet. Could you let me know whether reading > an PDF and then writing to another format is possible? If sou could you let > me know the cl

[iText-questions] How to reset PdfPTable/PdfPCell size?

2009-08-07 Thread Harish Krishnaswamy
Hi, I have a scenario where I render a PdfPTable several thousand times, but each time with a slightly different data. So I created a template table and simply overwrite the data cells for each instance and add it to the document. It works great except one problem: I am not able to adjust the cell/

Re: [iText-questions] How to reset PdfPTable/PdfPCell size?

2009-08-07 Thread Paulo Soares
How are you overwriting the data? Paulo - Original Message - From: "Harish Krishnaswamy" To: Sent: Friday, August 07, 2009 6:23 PM Subject: [iText-questions] How to reset PdfPTable/PdfPCell size? Hi, I have a scenario where I render a PdfPTable several thousand times, but each time

Re: [iText-questions] How to reset PdfPTable/PdfPCell size?

2009-08-07 Thread Harish Krishnaswamy
I am retrieving the cell I want to reset and then setting the new phrase... table.getRow(row).getCells()[col].setPhrase("New value"); -Harish On Fri, Aug 7, 2009 at 3:25 PM, Paulo Soares wrote: > How are you overwriting the data? > > Paulo > > - Original Message - > From: "Harish Krishn

Re: [iText-questions] How to reset PdfPTable/PdfPCell size?

2009-08-07 Thread Paulo Soares
Ah, the joy of finding shortcuts or, as we say over here, getting enough rope to hang oneself. You'll have to set the total width to recalculate the height. Paulo - Original Message - From: "Harish Krishnaswamy" To: "Post all your questions about iText here" Sent: Friday, August 07,

[iText-questions] swapping images

2009-08-07 Thread Jason Berk
regarding: http://itext.ugent.be/library/question.php?id=66 I have thousands of PDFs (bank statements) I create. Each could contain up to three different images, all at 96 DPI. about 1/2 the statements need to get printed and mailed, so I used PdfSmartCopy to create a "merged.pdf" containing a