Re: [iText-questions] Embedding an ICC Profile to jpg image.

2006-08-30 Thread Prakhya, Ganesh
Hi Paulo, I converted the icc profile of my image to US Web Coated SWOP using Photoshop. My programme working fine and it created a PDFx compliant document. However, my requirement is to embedd an icc profile programatically OR as you suggested, mapping the default colorspace without changing th

Re: [iText-questions] Inserting PdfPTable in elements from HTMLWorker

2006-08-30 Thread bruno
I forward this to the mailing list. I still have too much work on the book. br, Bruno Prashant Baj wrote: > Hi, > I have a HTML template which has [[placeholders]] and I want to > replace the placeholdres with the dynamic content and create the PDF. > Value of one of the placeholders may be sev

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

2006-08-30 Thread Aloizio Pereira da Silva
Ok Paulo, I solved the problem. I was put into PdfCopyMerge() the first document when I would put a new PDF document. thanks. * * Federal University of Minas Gerais* * Department of C

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

2006-08-30 Thread Aloizio Pereira da Silva
Now the documents are being loaded. But the final document doesn't contain the PDF files. What could be happening? //obter documento base OutputStream outBase = new ByteArrayOutputStream(); IOUtils.copy(docBase,outBase); PdfCopyMerge docComposto = new PdfCopyMerge(outBase)

Re: [iText-questions] Hide the document Message bar

2006-08-30 Thread Leonard Rosenthol
At 03:44 PM 8/30/2006, Dilip Ladhani wrote: >How can I hide the document message bar though..thanks > You can't. It's visibility is controlled by the user. Leonard --- Leonard Rosenthol

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

2006-08-30 Thread Paulo Soares
Who knows what is in the byte array? Output it to a file and look at what you get. Paulo - Original Message - From: "Aloizio Pereira da Silva" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 30, 2006 7:30 PM Subject: [iText-questions] PDF Header signature not found I am using

Re: [iText-questions] FormField is not required

2006-08-30 Thread Paulo Soares
form.setFieldProperty("notes","clrfflags", PdfFormField.FF_REQUIRED, null) works. Paulo - Original Message - From: "Beate Niendorf" <[EMAIL PROTECTED]> To: "'Post all your questions about iText here'" Sent: Wednesday, August 30, 2006 2:29 PM Subject: Re: [iText-questions] FormField is

Re: [iText-questions] Hide the document Message bar

2006-08-30 Thread Dilip Ladhani
Thanks, I do use this to hide the toolbar. How can I hide the document message bar though..thanks On 8/30/06, bruno <[EMAIL PROTECTED]> wrote: > Dilip Ladhani wrote: > > >Is there any way to Hide the document Message bar. Like a javascript > >or preferences? thanks > > > http://itextdocs.lowagie.c

[iText-questions] PDF Header signature not found

2006-08-30 Thread Aloizio Pereira da Silva
I am using ByteArrayOutputStream saida = new ByteArrayOutputStream(); IOUtils.copy(inFile,saida); PdfReader doc = new PdfReader(saida.toByteArray()); (the error happens in this line) If I put the url everything is ok. Why doesn't work with byteArray?

[iText-questions] PDF Header signature not found

2006-08-30 Thread Aloizio Pereira da Silva
Hi everybody, I am trying to concatenate existing PDF files but I am getting the error java.io.IOException: PDF header signature not found. at com.lowagie.text.pdf.PRTokeniser.checkPdfHeader(Unknown Source) at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source) at com.l

Re: [iText-questions] Embedding an ICC Profile to jpg image.

2006-08-30 Thread Paulo Soares
- Original Message - From: "Prakhya, Ganesh" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Wednesday, August 30, 2006 2:23 PM Subject: Re: [iText-questions] Embedding an ICC Profile to jpg image. > Hi Paulo, > > There is NO ICC profile attached to the image

Re: [iText-questions] ICC Profile

2006-08-30 Thread Prakhya, Ganesh
Hi Paulo, There is NO ICC profile attached to the image I am using. I am assuming this by the following code. Image img = Image.getInstance(imageFile); System.out.println(img.hasICCProfile()); This returning false. Is there any other way to check whether an ICC profile presnet or not? -- Ganesh

Re: [iText-questions] Embedding an ICC Profile to jpg image.

2006-08-30 Thread Prakhya, Ganesh
Hi Paulo, There is NO ICC profile attached to the image I am using. I am assuming this by the following code. Image img = Image.getInstance(imageFile); System.out.println(img.hasICCProfile()); This returning false. Is there any other way to check whether an ICC profile presnet or not? -- Ganes

Re: [iText-questions] Embedding an ICC Profile to jpg image.

2006-08-30 Thread Prakhya, Ganesh
Hi Paulo, There is NO ICC profile attached to the image I am using. I am assuming this by the following code. Image img = Image.getInstance(imageFile); System.out.println(img.hasICCProfile()); This returning false. Is there any other way to check whether an ICC profile presnet or not? -- Gane

Re: [iText-questions] FormField is not required

2006-08-30 Thread Beate Niendorf
Hi Paulo, This is how I try to set the field "notes" to "not required: public static void main(String[] args) throws Exception { File f = new File("C:/tmp/test/foo.pdf"); FileInputStream inStream = new FileInputStream(f); PdfReader reader = new PdfReader(inStream); PdfStamper sta

Re: [iText-questions] Embedding an ICC Profile to jpg image.

2006-08-30 Thread Prakhya, Ganesh
Hi Paulo, There is NO ICC profile attached to the image I am using. I am assuming this by the following code. Image img = Image.getInstance(imageFile); System.out.println(img.hasICCProfile()); This returning false. Is there any other way to check whether an ICC profile presnet or not? -- Ganesh

Re: [iText-questions] FormField is not required

2006-08-30 Thread Paulo Soares
Works for me. Post a small PDF and the exact code you are using so that the problem can be reproduced. Paulo - Original Message - From: "Beate Niendorf" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 30, 2006 1:56 PM Subject: [iText-questions] FormField is not required > > > Hello,

Re: [iText-questions] Embedding an ICC Profile to jpg image.

2006-08-30 Thread Paulo Soares
As far as I know jpeg images carry their own ICC profile, if any. I suspect that you may have to change the image before inserting it with iText. Paulo - Original Message - From: "bruno" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 30, 2006 1:43 PM Subject: Re: [iText-questions] Emb

[iText-questions] FormField is not required

2006-08-30 Thread Beate Niendorf
Hello, I try to turn off the flag "FF_REQUIRED" of some PdfFormFields but form.setFieldProperty(fieldname, "ctrlfflags", PdfFormField.FF_REQUIRED, null); is not working :( Also turning on the flag with form.setFieldProperty(fieldname, "setfflags", PdfFormField.FF_REQUIRED, null); ist not wo

Re: [iText-questions] Embedding an ICC Profile to jpg image.

2006-08-30 Thread bruno
You used the wrong mailinglist address. I forward your mail. Prakhya, Ganesh wrote: > I have a template which has a copy hole for putting jpg image and I am > using this template for multiple page generation. I want print ready > PDFx document, so, I embedded an ICC profile with the following c

Re: [iText-questions] appearance comb textfield: problem with spaces

2006-08-30 Thread Paulo Soares
If you remove the javascript from printfields.pdf it will work correctly. It looks like it's the javascript that has to be debugged. Paulo - Original Message - From: "bruno" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 30, 2006 11:57 AM Subject: [iText-questions] appearance comb tex

[iText-questions] appearance comb textfield: problem with spaces

2006-08-30 Thread bruno
Hello all, I forward a problem that is reported on the Planet PDF forum. An original PDF file (printfield) has some text fields with the comb option. When filled using iTextSharp, this results in printfieldmodified.pdf. When Adobe Reader creates the appearance, everything looks OK (I think), but t

Re: [iText-questions] HowTo: Image Alignment Middle with PdfStamper

2006-08-30 Thread bruno
Peter Neu wrote: >Is there any way to fit(shrink) the original picture better in ? > > Look for a method scaleToFit br, Bruno - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickl

Re: [iText-questions] HowTo: Image Alignment Middle with PdfStamper

2006-08-30 Thread Peter Neu
Ok , so I did this: float x = reader.getPageSize(1).width() - img.scaledWidth(); float y = reader.getPageSize(1).height() - img.scaledHeight(); Problem is the pictures are too big. Original page is 595.0 x 842.0 Picture is 834.0 x 1181.0 So I get this coordinates -239.0 x -339.0 Is there an

Re: [iText-questions] validating the url in the pdf files

2006-08-30 Thread jerry
bruno lowagie.com> writes: > > jerry wrote: > > >hi, > > > >how to find whether the urls in the pdf file is active or not. > > > > > First you extract the URLs from the PDF. > Then I guess you create a java.net.URL object > and try openStream. If it fails, the URL is down > for the moment, if

Re: [iText-questions] HowTo: Image Alignment Middle with PdfStamper

2006-08-30 Thread bruno
Peter Neu wrote: >Is there a way round this? I can't do absolute positioning because the >pictures have different size. > You know the page size and you know the size of the image. The math to center an image vertically is rather straightforward. br, Bruno --

Re: [iText-questions] validating the url in the pdf files

2006-08-30 Thread bruno
jerry wrote: >hi, > >how to find whether the urls in the pdf file is active or not. > > First you extract the URLs from the PDF. Then I guess you create a java.net.URL object and try openStream. If it fails, the URL is down for the moment, if it works, it's active. I don't think there's any wate

[iText-questions] validating the url in the pdf files

2006-08-30 Thread jerry
hi, how to find whether the urls in the pdf file is active or not. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier D

[iText-questions] HowTo: Image Alignment Middle with PdfStamper

2006-08-30 Thread Peter Neu
Hello, I need to stamp an image on a pdf. So I use PdfStamper. When I use this alignment method img.setAlignment(Image.MIDDLE); Itext throws this exception: java.io.IOException: The image must have absolute positioning. Is there a way round this? I can't do absolute positioning because the

Re: [iText-questions] Antwort: Re: Antwort: Re: Japanese fonts

2006-08-30 Thread bruno
[EMAIL PROTECTED] wrote: > godverdomme Hier vloekt men niet! ;-) br, Bruno - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job e