[iText-questions] Text field types

2008-04-09 Thread Tiina Vintturi
Hi When I parse my pdf, I need to find out what the "format" of the text field is, for example, number, percentage, date, etc. Can someone tell me if I can do this, and if so, how? Thank you - This SF.net email is sponsor

Re: [iText-questions] Distorted Image

2008-04-09 Thread Dominic Maricic
Its distorted when I print it as well. Straight lines fare better, cursive in the images gets blurred more. I don't get it. Any ideas? Thanks in advanced. I looked in the book first but didn't find any hints. Dominic -

Re: [iText-questions] PdfSmartCopy corrupting internal links.

2008-04-09 Thread Paulo Soares
Fixed in the SVN. Please check if it works for you. Paulo - Original Message - From: "Ludger Buenger" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 09, 2008 6:52 PM Subject: [iText-questions] PdfSmartCopy corrupting internal links. Hello everyone. I'd like to bring your attention t

[iText-questions] Get existing annotations?

2008-04-09 Thread AJ Weber
I'm obviously overlooking something, and I apologize in advance... Is there a way to get a list/vector/etc. of all the annotations existing in a document (in the generic term, like a pdf file)? I looked at the iText In Action, and it directed me to Chap 15, but that only discusses creating them

Re: [iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Bruno Lowagie
Baars, Peter wrote: Hello, First of all I want to complement you on the great library you guys created. I really appreciate it! I would like to report a bug when trying to merge a large number of PDF documents. I created a simple testcase and added the code to this mail. I don't understan

[iText-questions] PdfSmartCopy corrupting internal links.

2008-04-09 Thread Ludger Buenger
Hello everyone. I'd like to bring your attention to something that might be a bug in PdfSmartCopy (but maybe it's just a feature - who knows?) Ok, here is the issue (occuring with todays svn snapshot): Merging two Pdfs using PdfSmartCopy corrupts internal links between different pages. This

Re: [iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Mark Storer
Oops. Rectangle.rotate doesn't quite work the way I thought it did. Here's a fix: for( int i = reader.getPageRotation(x); i > 0; i-= 90) { newPageRect = newPageRect.rotate(); } On Wed, Apr 9, 2008 at 10:18 AM, Mark Storer <[EMAIL PROTECTED]> wrote: > PdfContentByte cb = writer.getDir

Re: [iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Mark Storer
PdfContentByte cb = writer.getDirectContent(); //IIRC, the directContent is from the current page, so you'll be drawing all your // importedPages onto the first page. for (InputStream input : inputStreams) { PdfReader reader = new PdfReader(input); for (int

Re: [iText-questions] how to modify xmp metadata?

2008-04-09 Thread Ning Zhao
Hi Bruno, have built and tested revision 3225 from the svn trunk. The new PdfStamperImpl worked fine for my pdf files. I also tried to alter the xmp data in the PRStream way (like shown in the XmpMetadataTest.java in your last email), also worked well. Thanks! Best Regards, Ellen N. Zhao Brun

[iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Baars, Peter
Hello, First of all I want to complement you on the great library you guys created. I really appreciate it! I would like to report a bug when trying to merge a large number of PDF documents. I created a simple testcase and added the code to this mail. When we merge more than 50 - 55 PDF's into on

Re: [iText-questions] iText addDocument() question

2008-04-09 Thread Paulo Soares
Works for me, I've no idea why it doesn't work for you. If you don't have fields use PdfSmartCopy. PdfStamper isn't doing anything here. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Don Hedman > Sent: Wednesday, April 09, 2008 1:39 PM

Re: [iText-questions] How to get a reference by name of all the colors in a page?

2008-04-09 Thread George Bilalis
Hi Leonard, Thanks for comming back. What I need is the sum of all colors used in the page and their names. 1. Is CMYK colorspace. Number is 4, the names "Cyan" "Magenta" Yellow" Black". 2. Is RGB colorspace. Number is 3, names are "Red" "Green" "Blue". 3. Is CMYK plus Spot. Number is 4 + ? , nam

Re: [iText-questions] how to modify xmp metadata?

2008-04-09 Thread Bruno Lowagie
Leonard Rosenthol wrote: > Not only shouldn't you compress the data in the XMP, but the spec > actually considered it "verbotten". In addition, there are some > tools out there that will crash if fed compressed XMP. I know, for those interested: I've added an extra setData method in PRStream

[iText-questions] dll iTextSharp

2008-04-09 Thread Laura Selva
I read an article on "Creating PDF files. NET" and I would like to know if the library iTextSharp also supports the eps or if there is a way to ensure that the PDF that is generated accept also. Eps format... Thank you! Laura---

[iText-questions] iText addDocument() question

2008-04-09 Thread Don Hedman
I'm SURE that this has been addressed many times over so my apologies if I have missed it. I am trying to append several PDF files together using the addDocument() method. My code is below. What results when I run this is that I get the correct NUMBER of documents but only the first document

Re: [iText-questions] How to get a reference by name of all the colors in a page?

2008-04-09 Thread Leonard Rosenthol
Do you want to know the colorspaces (RGB vs CMYK vs Spot) _OR_ are you actually looking at specific color values ([0 0 1], [1 1 0 0], etc.)?? Leonard On Apr 9, 2008, at 3:08 PM, George Bilalis wrote: Hi all, I 've searched the forum and found a similar question posted a long time ago bu

Re: [iText-questions] how to modify xmp metadata?

2008-04-09 Thread Leonard Rosenthol
Not only shouldn't you compress the data in the XMP, but the spec actually considered it "verbotten". In addition, there are some tools out there that will crash if fed compressed XMP. Leonard On Apr 9, 2008, at 12:14 PM, Bruno Lowagie wrote: > Ning Zhao wrote: >> P.S.: Just bought the boo

Re: [iText-questions] special pdf to use with stamp-tool

2008-04-09 Thread Leonard Rosenthol
On Apr 9, 2008, at 10:13 AM, Josep Miquel Garcia Rodriguez wrote: > My customer receive a signed pdf and then he wants to mark with > stamp-tool > of acrobat, the stamp-tool uses special pdf files (there are some in > C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Annotations > \Stamps)

[iText-questions] How to get a reference by name of all the colors in a page?

2008-04-09 Thread George Bilalis
Hi all, I 've searched the forum and found a similar question posted a long time ago but in different context as I understand it, so please excuse me if a raise the same subject. What I have to do is: While a pdf document is open and a loop is counting to end of number_of_pages, I have to run

Re: [iText-questions] dll iTextSharp

2008-04-09 Thread Bruno Lowagie
Laura Selva wrote: > Ciao, > Ho letto un articolo sulla "Creazione dei file PDF in .NET" e vorrei > sapere se la libreria iTextSharp supporta anche gli *eps* o se c'è un > modo per far in modo che il pdf che si genera accetti anche gli .eps > come formato... I don't understand Italian, but you'

Re: [iText-questions] dll iTextSharp

2008-04-09 Thread Ning Zhao
Hallo Laura, you can try this link: http://translate.google.com/translate_t?langpair=it|en to get your text translated into English, so that more people can understand what you want. Here is your question translated by this tool: I read an article on "Creating PDF files. NET" and I would lik

[iText-questions] dll iTextSharp

2008-04-09 Thread Laura Selva
Ciao, Ho letto un articolo sulla "Creazione dei file PDF in .NET" e vorrei sapere se la libreria iTextSharp supporta anche gli eps o se c'è un modo per far in modo che il pdf che si genera accetti anche gli .eps come formato... Grazie mille! Laura-

Re: [iText-questions] how to modify xmp metadata?

2008-04-09 Thread Bruno Lowagie
Ning Zhao wrote: P.S.: Just bought the book "iText in action" and reading Chapter 18. I thought of replacing the XMP stream at the lower level too: with PRStream.setData(). The problem you'll experience is that setData() compresses the stream by default. That's typically not what you want to ha

Re: [iText-questions] how to modify xmp metadata?

2008-04-09 Thread Ning Zhao
Hi Bruno! thank you for the support! I was just about to ask: "In my original pdf files, individual pages do not have their own xmp metadata, there is only one xmp metadata block in each file(the same situation as in the test example in your last email). How to simply rip off the xmp metadata

Re: [iText-questions] how to modify xmp metadata?

2008-04-09 Thread Bruno Lowagie
Bruno Lowagie wrote: > Ning Zhao wrote: >> Hi! >> >> thank you very much for the help! Yes, the PdfStamper stamper worked, >> there is really modified xmp metadata in the output pdf file. But the >> problem is, the old xmp metadata still exists. Now there are two >> blocks of xmp metadata in the

Re: [iText-questions] Distorted Image

2008-04-09 Thread Bruno Lowagie
Dominic Maricic wrote: > Hi Guys, > > I'm having an issue where a jpeg image placed into a cell appears slightly > distorted, for the most part it's the text that's in the image (it's a logo). > I've tried with and without using scaleToFit with the exact dimensions of the > logo and it's no good.

Re: [iText-questions] special pdf to use with stamp-tool

2008-04-09 Thread Bruno Lowagie
Josep Miquel Garcia Rodriguez wrote: > Hi Bruno, > Thanks for fast reply and sorry, I think i explained very bad. > > My customer receive a signed pdf and then he wants to mark with stamp-tool > of acrobat, the stamp-tool uses special pdf files (there are some in > C:\Program Files\Adobe\Acrobat 8

Re: [iText-questions] how to modify xmp metadata?

2008-04-09 Thread Bruno Lowagie
Ning Zhao wrote: Hi! thank you very much for the help! Yes, the PdfStamper stamper worked, there is really modified xmp metadata in the output pdf file. But the problem is, the old xmp metadata still exists. Now there are two blocks of xmp metadata in the output pdf file. Now to fix this prob

[iText-questions] Distorted Image

2008-04-09 Thread Dominic Maricic
Hi Guys, I'm having an issue where a jpeg image placed into a cell appears slightly distorted, for the most part it's the text that's in the image (it's a logo). I've tried with and without using scaleToFit with the exact dimensions of the logo and it's no good. If I scale it down then the image l

[iText-questions] special pdf to use with stamp-tool

2008-04-09 Thread Josep Miquel Garcia Rodriguez
Hi Bruno, Thanks for fast reply and sorry, I think i explained very bad. My customer receive a signed pdf and then he wants to mark with stamp-tool of acrobat, the stamp-tool uses special pdf files (there are some in C:\Program Files\Adobe\Acrobat 8.0\Acrobat\plug_ins\Annotations\Stamps) Then He c

Re: [iText-questions] (no subject)

2008-04-09 Thread Bruno Lowagie
Josep Miquel Garcia Rodriguez wrote: > Hello, > We’re using itext for generating pdf and it’s a great lib. > Now, I have to generate a special pdf to be used as a stamp from > acrobat. Our customer wants to stamp a signed pdf from acrobat. > > I did some googling but don’t find how has to be gene

[iText-questions] (no subject)

2008-04-09 Thread Josep Miquel Garcia Rodriguez
Hello, We're using itext for generating pdf and it's a great lib. Now, I have to generate a special pdf to be used as a stamp from acrobat. Our customer wants to stamp a signed pdf from acrobat. I did some googling but don't find how has to be generated this pdf stamp file. Can anybody give