Re: [iText-questions] Display existing PDF on web

2007-06-13 Thread Bruno Lowagie
scott carter wrote: > How can I display an existing pdf via a servlet? The examples are > clear, but only have the case where a new pdf is created and displayed > using Document. I have the case where a pdf has already been > manipulated and is saved to disk, I just need to display it over the

[iText-questions] Display existing PDF on web

2007-06-13 Thread scott carter
How can I display an existing pdf via a servlet? The examples are clear, but only have the case where a new pdf is created and displayed using Document. I have the case where a pdf has already been manipulated and is saved to disk, I just need to display it over the web and the Document class se

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread linkjaya
Hello all, Thanks for your reply. Can some one write how to extract an embedded profile and use that to set the colorspace to ICCBased with the profile as stream data. such that i could read that colorspace after i create PDF. Thanks and Regards Jaya N pasachhe. Leonard Rosenthol wrote: >

Re: [iText-questions] Suspicious data: SigDict /ByteRange value

2007-06-13 Thread Leonard Rosenthol
On Jun 13, 2007, at 4:17 PM, Paulo Soares wrote: > There may be multiple ranges but the crypto plugins shipped with > Acrobat > don't like more than two. Don't ask me why. > Because we consider it a security hole to have more than one... However, there are ways to accomplish mul

Re: [iText-questions] Suspicious data: SigDict /ByteRange value

2007-06-13 Thread Paulo Soares
There may be multiple ranges but the crypto plugins shipped with Acrobat don't like more than two. Don't ask me why. Paulo - Original Message - From: "Martin Brunecky" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 13, 2007 11:38 PM Subject: [iText-questions] Suspicious data: SigDict /B

[iText-questions] Suspicious data: SigDict /ByteRange value

2007-06-13 Thread Martin Brunecky
Gentlemen: Continuing my efforts to use USPS EPM TSA (time-stamp-autority), I am running into another difficulty: I am using (Java version) of example (as Paolo kindly directed me): http://itextpdf.sourceforge.net/howtosign.html#signextitextsharp. I would like to be able to EXCLUDE som

Re: [iText-questions] Table of Content in pdf - Example

2007-06-13 Thread Lars Vogel
Hi Bruno, sorry for not beeing precise. I do use the outlines and they do work fine. I'm also very happy with them, no question here. I did create them based on an example from your webpage. Super! So here I do not have a question. In addition to the outlines I would like to create a table of

Re: [iText-questions] RTF List: Spacing and Bullet Symbol

2007-06-13 Thread Mark Hall
On Wednesday 13 June 2007, Hombergs, Tom wrote: > However, as soon as I use List.setListSymbol() to set the symbol to a > symbol different from the default, the text after the bullet is indented > too much. Has the symbolIndent perhaps been ignored by the change? Or am I > doing something wrong? Hm

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

2007-06-13 Thread sseif
Thanks guys, I will see what I can do and if I come up with a fair solution, I will post it back here. Also, last night I was thinking about an alternate method to tackle the issue. You know how I said that if I copied the fields first (via PdfCopyFields), everything worked fine if I clicked

Re: [iText-questions] Table of Content in pdf - Example

2007-06-13 Thread Bruno Lowagie
Lars Vogel wrote: > I believe my question was lost due to mailing list troubles... Paulo answered your question: "There's a couple of examples in the book but you must realize that there isn't any automatic way to create TOCs in PDFs. The best way is to do two passes, collecting the page pos

Re: [iText-questions] Table of Content in pdf - Example

2007-06-13 Thread Lars Vogel
Hi Paulo, thank you. I did order the book today. Still, is there an working code example which I could look at (now)? I assume the book will give me a good explanation how to optimize this. Best regards, Lars "Paulo Soares" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > There's

Re: [iText-questions] Table of Content in pdf - Example

2007-06-13 Thread Lars Vogel
I believe my question was lost due to mailing list troubles... "Lars Vogel"wrote in message news:... > Hello, > > sorry for the uninformed question, but can someone point me to an example > of how to create a table of content referrening to the correct page number > of the sections? > > I searche

Re: [iText-questions] Sending HASH to external components to getitsigned

2007-06-13 Thread Jorge Ortiz Claver
Does it mean that signed information (the one the hash is generated from) includes the original document plus some information about the signature (maybe the date)? If that's not the case, the same operation would generate the same hash code. Regards, Jorge -Mensaje original- De: [E

[iText-questions] TR: Send an email from PDF without server process ??

2007-06-13 Thread Philippe Couas
Hi, Could i with Itext add an Button to an AcroForm to send Datas by Mail ? It seems It's possible with Adobe http://www.ndsu.edu/wwwdev/web_team/resources/emailpdf_doc.pdf Regards Philippe _ De : Philippe Couas [mailto:[EMAIL PROTECTED] Envoyé : mercredi 13 juin 2007 09:57 À : 'i

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread Leonard Rosenthol
On Jun 13, 2007, at 6:38 AM, Paulo Soares wrote: > I thought that for JPEG the image stream contained everything, > including the > icc profiles, and didn't need any further action in the PDF. > No, Acrobat doesn't read the embedded profiles in the DCT./JPEG data. So all of these ima

Re: [iText-questions] 3D PDF and JavaScript

2007-06-13 Thread Paulo Soares
Have a look at the Add3D plugin in the toolbox. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, June 12, 2007 8:02 AM Subject: [iText-questions] 3D PDF and JavaScript > Hello, > > I have a strange behaviour with iText. > > I've added a 3d modell programmaticall

Re: [iText-questions] How to MERGE two pdf's ?

2007-06-13 Thread Bruno Lowagie (iText)
Dyego Souza Dantas Leal wrote: > I bought the book iText in Action... but not help-me in this > situation... Yes, it does: on page 446, there's a figure titled superimposing PDFs. You have a template with a border (in the background) and new data is added. This is different from what you need, bu

Re: [iText-questions] Read link details of the page

2007-06-13 Thread Paulo Soares
Get the pdf reference and the iText toolbox to explore the pdf and start from there. Paulo - Original Message - From: "Peter" <[EMAIL PROTECTED]> To: Sent: Monday, June 11, 2007 2:58 PM Subject: [iText-questions] Read link details of the page > In the company, we scan documents and t

Re: [iText-questions] Table of Content in pdf - Example

2007-06-13 Thread Paulo Soares
There's a couple of examples in the book but you must realize that there isn't any automatic way to create TOCs in PDFs. The best way is to do two passes, collecting the page positions in the first pass and generating the TOC and the content in the second pass. Paulo --- Original Message -

[iText-questions] How to MERGE two pdf's ?

2007-06-13 Thread Dyego Souza Dantas Leal
Hello... I'm using iText 2.0 and have this cenario: The First PDF have a Text (exported from OpenOffice.org) The Second PDF have a borders.. ( a layout... created on OpenOffice.org and exported to PDF too !!! ) I want to create a third PDF with MERGE of first and second PDF... The third PDF

Re: [iText-questions] Unicode not displaying

2007-06-13 Thread Paulo Soares
You must ask the jasperreports developers about that, the problem happened before reaching iText. It also should be \u2122 and Helvetica doesn't have that character. Paulo - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, June 13, 2007 2:53 PM Subject: [iText-questio

[iText-questions] Unicode not displaying

2007-06-13 Thread rachel.kozlowski
My jasperreport is displaying as /u2122 instead of a greater than equal sign. What font could I use that would work? JRDesignStyle normalStyle = new JRDesignStyle(); normalStyle.setName(NORMAL_STYLE_KEY); normalStyle.setDefault(true); normalStyle.setFontName("

Re: [iText-questions] PDFStamper Error

2007-06-13 Thread Steve_Senneff
Paulo, Your suggestion of using "Document.plainRandomAccess = true" worked perfectly! Thanks Bruno, Thank you for your help as well. This is a huge problem off my plate. Steve Senneff Date: Wed, 13 Jun 2007 13:38:33 +0100 From: "Paulo Soares" <[EMAIL PROTECTED]> Subject: Re: [iText-questions

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread Paulo Soares
I thought that for JPEG the image stream contained everything, including the icc profiles, and didn't need any further action in the PDF. Paulo - Original Message - From: "Leonard Rosenthol" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, June 13, 2

Re: [iText-questions] Initial View of PDF to 100% Zoom doesnt work

2007-06-13 Thread Harakiri
Please ignore my post, i figured out my mistake. --- Harakiri <[EMAIL PROTECTED]> wrote: > Hello, > > in the archives i found a post from paulo which > suggest : > http://www.nabble.com/forum/ViewPost.jtp?post=4138560&framed=y > > PdfReader pdf = new PdfReader("abc.pdf"); > PdfStamper stp = ne

[iText-questions] Initial View of PDF to 100% Zoom doesnt work

2007-06-13 Thread Harakiri
Hello, in the archives i found a post from paulo which suggest : http://www.nabble.com/forum/ViewPost.jtp?post=4138560&framed=y PdfReader pdf = new PdfReader("abc.pdf"); PdfStamper stp = new PdfStamper(pdf, new FileOutputStream("abcout.pdf")); PdfWriter writer = stp.getWriter(); PdfAction ac = Pd

Re: [iText-questions] Using default fonts in PDFA

2007-06-13 Thread Leonard Rosenthol
On Jun 13, 2007, at 5:15 AM, Schalück, Elmar wrote: I want to use the standard Type 1 fonts (e.g. COURIER) within PDFA. It is not possible to embed this font into my pdf document (see BaseFont.createFont). But when I close the document, the PdfXConformanceImp.checkPDFXConformance rejects th

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread Leonard Rosenthol
How did you create this PDF from those images? Whatever program you used or settings were applied did NOT translate the ICC profiles into the PDF :(. Instead, it simply made each JPEG as simple "RGB" and not "tagged RGB". Leonard On Jun 13, 2007, at 4:58 AM, linkjaya wrote: > Thanks for you

Re: [iText-questions] RTF List: Spacing and Bullet Symbol

2007-06-13 Thread Hombergs, Tom
Hi, I'm glad that I can use custom bullets in RTF lists now. However, as soon as I use List.setListSymbol() to set the symbol to a symbol different from the default, the text after the bullet is indented too much. Has the symbolIndent perhaps been ignored by the change? Or am I doing som

Re: [iText-questions] PDFStamper Error

2007-06-13 Thread Paulo Soares
Call Document.plainRandomAccess = true; to get rid of all the nio stuff. Paulo - Original Message - From: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, June 13, 2007 1:20 PM Subject: Re: [iText-questions] PDFStamper Error

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread linkjaya
Hello Paulo, Thanks for your prompt reply. I have attached the original images and cerated PDF file. http://www.nabble.com/file/p11097753/adobeRGB.jpg http://www.nabble.com/file/p11097753/colorMatchRGB.jpg http://www.nabble.com/file/p11097753/sRGB.jpg http://www.nabble.com/file/p11097753/image

Re: [iText-questions] Using default fonts in PDFA

2007-06-13 Thread Bruno Lowagie (iText)
Schalück wrote: > Hi, > I want to use the standard Type 1 fonts (e.g. COURIER) within PDFA. It > is not possible to embed this font into my pdf document (see > BaseFont.createFont). > But when I close the document, the > PdfXConformanceImp.checkPDFXConformance rejects this font, since it > isn'

Re: [iText-questions] PDFStamper Error

2007-06-13 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > When using PDFStamper I am getting the error below. The OS is Windows 2003 > and I have expanded the Java Max Heap size from 128mb to 512mb, but that > doesn't seem to make a difference. There is plenty of HD space available. > It seems to stamp the pages ok, but always

[iText-questions] Using default fonts in PDFA

2007-06-13 Thread Schalück , Elmar
Hi, I want to use the standard Type 1 fonts (e.g. COURIER) within PDFA. It is not possible to embed this font into my pdf document (see BaseFont.createFont). But when I close the document, the PdfXConformanceImp.checkPDFXConformance rejects this font, since it isn't embedded. Now the real questio

[iText-questions] PDFStamper Error

2007-06-13 Thread Steve_Senneff
When using PDFStamper I am getting the error below. The OS is Windows 2003 and I have expanded the Java Max Heap size from 128mb to 512mb, but that doesn't seem to make a difference. There is plenty of HD space available. It seems to stamp the pages ok, but always errors during the "stamper.clos

Re: [iText-questions] Table with no lines among cells

2007-06-13 Thread Bruno Lowagie (iText)
nguyet minh wrote: > Hi, > > I have to create a table with no lines among cells, just the border > around the table. I set the border of these cells as 0 before adding > them to table. Problem happens when there are many rows in table and it > is splitted into 2 pages. It doesn't have the botto

Re: [iText-questions] RTF: tableFitsPAge() and lone header rows

2007-06-13 Thread Mark M. Hall
On Wednesday 13 June 2007 12:34, Bruno Lowagie (iText) wrote: > Anyway: fitsPage() wouldn't help you because RTF is not a PDL. > In PDF, the layout of each page is fixed: if you print a page > on Windows or on Linux, if you print it in Europe or the States: > it doesn't matter: a table will always

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread Paulo Soares
That all depends on the original image format, if it has an icc profile, etc. Without the original images I can't add more. Paulo - Original Message - From: "linkjaya" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 13, 2007 12:22 PM Subject: Re: [iText-questions] getting the information

[iText-questions] Character Spacing and Word Spacing in Column Text

2007-06-13 Thread Tobias Seckinger
Hi all, I use iText 2.0.4 and it's great! Uh, and sorry for this bad english... But one thing I do not understand. The example code at the end of this mail demonstrate my problem. In my program I use the class ColumnText to write text with different borders. Furthermore some text have different c

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread linkjaya
Thanks for your reply. I am now able to read the information of image. I created a PDF file with 3 images using Itext. Each images contains different colorspace 1. sRGB 2. adobeRGB & 3. colorMatchRGB Then i write a program that gives information of color space in images in PDF file. My program

Re: [iText-questions] RTF: tableFitsPAge() and lone header rows

2007-06-13 Thread Bruno Lowagie (iText)
Hombergs, Tom wrote: > I read > something about a fitsPage() method which was apparently removed from > the API? I decided to 'undeprecate' fitsPage() because too many people are using it (I didn't know that before I deprecated it). Anyway: fitsPage() wouldn't help you because RTF is not a PDL.

[iText-questions] RTF: tableFitsPAge() and lone header rows

2007-06-13 Thread Hombergs, Tom
Hi, I'm creating RTF documents containing several tables. Each table has a header row which is to be repeated if the table spans over more than one page. This is accomplished by calling Table.setTableFitsPage(true). That's the part that works ;). The problem is that in some cases a table

Re: [iText-questions] Memory issue while adding images in document

2007-06-13 Thread Paulo Soares
iText doesn't keep the images in memory. I ran the following code with -Xmx64m: for (int k = 0; k < 1000; ++k) { Image img = Image.getInstance("c:\\babytux.png"); img.scalePercent(30); document.add(img); } This resulted in a 130M PDF file with 334 pages. Your problem is somewhere el

Re: [iText-questions] PDF header signature not found

2007-06-13 Thread Paulo Soares
Works for me with: PdfReader pdf = new PdfReader("c:\\Index-2pg.pdf"); Paulo - Original Message - From: "Peter Miklosko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 13, 2007 11:21 AM Subject: Re: [iText-questions] PDF header signature not found > Hi Paulo > > in

Re: [iText-questions] PDF header signature not found

2007-06-13 Thread Paulo Soares
I'll have to look at the PDF. Paulo - Original Message - From: "peter_budo" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 13, 2007 10:33 AM Subject: Re: [iText-questions] PDF header signature not found > > I made copy of the file from which I try to read the link details and I > opene

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

2007-06-13 Thread Bruno Lowagie
Paulo Soares wrote: > You have in the Adobe site the pdf reference and the > pdf reference. Replace pdf by XFA in one of the above references ;-) br, Bruno - This SF.net email is sponsored by DB2 Express Download DB2 Express

Re: [iText-questions] Memory issue while adding images in document

2007-06-13 Thread gscac
Already the memory size is set to 512M. Paulo Soares wrote: > > Increase the memory allocated to the JVM. The default 64M are usually too > little. > > Paulo > > - Original Message - > From: "gscac" <[EMAIL PROTECTED]> > To: > Sent: Saturday, June 09, 2007 5:28 PM > Subject: [iTex

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread Bruno Lowagie
Paulo Soares wrote: > You'll have to look at the page resources and any form xobject that the page > contains. There is code in BaseFont to find the fonts, you can adapt it to > find the images. There's a plug-in called ImageXRefViewer in the iText toolbox: http://itexttoolbox.sourceforge.net/ I

Re: [iText-questions] PDF header signature not found

2007-06-13 Thread peter_budo
I made copy of the file from which I try to read the link details and I opened it with my Java IDE and also with WinHex, but I do not see anything before "%PDF-1." marker. Base on this I do not think there is any garbadge on the start. Or am I mistaken? Paulo Soares wrote: > > You must remove

Re: [iText-questions] PDF header signature not found

2007-06-13 Thread Paulo Soares
You must remove the garbage from the file up to the "%PDF-1." marker. That's before using iText. Paulo - Original Message - From: "peter_budo" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 13, 2007 10:07 AM Subject: Re: [iText-questions] PDF header signature not found > > Yes, I'm ab

Re: [iText-questions] Sending HASH to external components to get itsigned

2007-06-13 Thread Paulo Soares
The PKCS#7 must be inserted in the pdf before close. There's no way to "suspend" it and get back at a later time to add the signature. Paulo - Original Message - From: "jortizclaver" <[EMAIL PROTECTED]> To: Sent: Monday, June 11, 2007 6:27 PM Subject: [iText-questions] Sending HASH to e

Re: [iText-questions] PDF header signature not found

2007-06-13 Thread peter_budo
Yes, I'm able to open the documents in Acrobat. May only problem is to get that pease of code working. Read document page by page in read any data related to links to external documents. Paulo Soares wrote: > > If Acrobat can open it, you have more than 1k of garbage before the pdf. > > Paulo

Re: [iText-questions] getting the information of images in PDF file

2007-06-13 Thread Paulo Soares
You'll have to look at the page resources and any form xobject that the page contains. There is code in BaseFont to find the fonts, you can adapt it to find the images. Paulo - Original Message - From: "linkjaya" <[EMAIL PROTECTED]> To: Sent: Monday, June 11, 2007 12:59 PM Subject: [i

Re: [iText-questions] PDF header signature not found

2007-06-13 Thread Paulo Soares
If Acrobat can open it, you have more than 1k of garbage before the pdf. Paulo - Original Message - From: "peter_budo" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 12, 2007 2:16 PM Subject: [iText-questions] PDF header signature not found > > After opening PDF document I try to read pa

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

2007-06-13 Thread Paulo Soares
You'll need a PushbuttonField for the AcroForm and a XFA modification to identify the button. You have in the Adobe site the pdf reference and the pdf reference. The easiest way is to crete the button in Designer and see what XML is created. Paulo - Original Message - From: <[EMAIL PR

Re: [iText-questions] Memory issue while adding images in document

2007-06-13 Thread Paulo Soares
Increase the memory allocated to the JVM. The default 64M are usually too little. Paulo - Original Message - From: "gscac" <[EMAIL PROTECTED]> To: Sent: Saturday, June 09, 2007 5:28 PM Subject: [iText-questions] Memory issue while adding images in document > > I am adding 100 images

[iText-questions] Send an email from PDF without server process ??

2007-06-13 Thread Philippe Couas
Hi, I search to send an email from an PDF created with ITEXT but without result ? I have tried Paragraph p3= new Paragraph(new Chunk("Click to send mail2") .setAction(PdfAction.javaScript("app.mailto:[EMAIL PROTECTED] ant", writer))); document.add(p3); Do you ave an idea ?

[iText-questions] [Itext-developers] mailing list troubles

2007-06-13 Thread Bruno Lowagie
Xavier Le Vourch wrote: > It looks like the mailing lists are working again. Yes, but unfortunately, the flow of mails caused a full INBOX (Quota exceeded); I lost several hours of mail, so please don't shoot me if I don't answer. br, Bruno