[iText-questions] Problem with different font-sizes in one paragraph

2009-10-05 Thread ceiphren
Hello everybody, I want to build paragraph-objects with a couple of chunks that have different font-sizes. for example: doc.open(); Paragraph p = new Paragraph(); Chunk c = new Chunk(We hate to write dummy-sentences. ); for(int i = 0; i 4; i++, p.add(c)); Chunk theProblem = new

Re: [iText-questions] Signature without default image

2009-10-05 Thread Jose Lyra Machado
Leonard attached the file that show what I said in the last e-mail. Leonard in Acrobat/Reader 9 if you want to know if the signature is valid looking the document you will only see in text mode not more in image. Right ? Lyra Machado On Fri, Oct 2, 2009 at 10:38 AM, Leonard Rosenthol

[iText-questions] What Part of the PDF document is signed by PdfStamper

2009-10-05 Thread Tamas
Dear IText Experts, What part of the pdf document is signned when I use the PdfStamper.CreateSignature and the PdfSignatureAppearance.SetCrypto method? My code is the folowing: PdfStamper st = PdfStamper.CreateSignature(reader, new FileStream(this.outputPDF, FileMode.Create, FileAccess.Write),

[iText-questions] Creating PDF Digital signature without Bouncy Castle

2009-10-05 Thread Tamas
Dear IText Experts, I would like to put a digital signature to an existing PDF document. In all of the IText documentation I found a desctiprion about how to sign a PDF and all of the ways use Bouncy Castle classes to encrypt the document hash. eg: PdfStamper st =

Re: [iText-questions] Creating PDF Digital signature without Bouncy Castle

2009-10-05 Thread Mirco Piccin
Hi, I would like to put a digital signature to an existing PDF document. In all of the IText documentation I found a desctiprion about how to sign a PDF and all of the ways use Bouncy Castle classes to encrypt the document hash. few months ago i do something similar. I've used : bcmail bcprov

Re: [iText-questions] Creating PDF Digital signature without Bouncy Castle

2009-10-05 Thread Tamas
Thank you for the reply, but my aim is to sign a pdf using only .net and itext classes. Without Bouncy Castle. Mirco Piccin wrote: Hi, I would like to put a digital signature to an existing PDF document. In all of the IText documentation I found a desctiprion about how to sign a PDF

Re: [iText-questions] Creating PDF Digital signature without Bouncy Castle

2009-10-05 Thread Andreas Kuehne
Hi Tamas, the bouncy castle components do most of the crypto processing required to build the signature. iText does many good things, but doesn't supply crypto functions on its own. Maybe you think about using a central service for signing. So you doesn't have to bother with crypto stuff in

Re: [iText-questions] Conversion of Encoding

2009-10-05 Thread newoutlook
I followed section 9.10.2Mapping Character Codes to Unicode Values from the PDF reference manual to write a Font class to verify each character in a PDF document can be converted to unicode or not. I am attaching the Font class. I am sharing what I have for this unicode conversion. Also I am

Re: [iText-questions] Char Tracking

2009-10-05 Thread Mark Storer
Your answer can be found here: http://itext.ugent.be/library/api/index.html?com/lowagie/text/pdf/PdfContentByte.html --Mark Storer Senior Software Engineer Cardiff.com #include disclaimer typedef std::DisclaimerCardiff DisCard; -Original Message- From: Leo

Re: [iText-questions] ArrayIndexOutOfBoundsException

2009-10-05 Thread Mark Storer
Please post the full exception. --Mark Storer Senior Software Engineer Cardiff.com #include disclaimer typedef std::DisclaimerCardiff DisCard; -Original Message- From: Marc Campforts [mailto:marc.campfo...@4st.com] Sent: Monday, October 05, 2009 4:51 AM To:

Re: [iText-questions] ArrayIndexOutOfBoundsException

2009-10-05 Thread Paulo Soares
Your jpeg is broken in the icc profile segment count. I'll add something in the code to take care of this. Paulo - Original Message - From: Marc Campforts marc.campfo...@4st.com To: itext-questions@lists.sourceforge.net Sent: Monday, October 05, 2009 12:51 PM Subject: [iText-questions]

Re: [iText-questions] codepage encoding in BaseFont.CreateFont

2009-10-05 Thread merco
ok, thank you I've done some tests; Using example at page 240, i get encoding name from ArialUni.TTF , then a glance at IanaEncodings.cs and then ... voilà the right codepage is selected... ... i still have some problems with Chinese , Korean and Japanese. Using BIG5 is not working or any

Re: [iText-questions] Creating PDF Digital signature without Bouncy Castle

2009-10-05 Thread Paulo Soares
See http://itextpdf.sourceforge.net/howtosign.html#signextitextsharp2. Paulo - Original Message - From: Tamas info...@gmail.com To: itext-questions@lists.sourceforge.net Sent: Monday, October 05, 2009 3:35 PM Subject: Re: [iText-questions] Creating PDF Digital signature without Bouncy

[iText-questions] Accessing AcroFields before closing the stamper

2009-10-05 Thread Danny Chou
Hi All, I was trying to open a PDF file and create fields on it. TextField tf = new TextField(stamper.getWriter(), new Rectangle(80,50, 180,100), field1); ... writer.addAnnotation (tf.getTextField()); However, when I try to get the AcroField later, stamper.getAcroFields() returns nothing. If I

Re: [iText-questions] Color shift and missing Transparency Group

2009-10-05 Thread Gylfi Ingvason
Paulo, Enclosed are two small files that demonstrate the Transparency Group problem. The BeforeImport.pdf shows an image in a light blue color, and the AfterImport.pdf is the same file after being imported using PdfWriter. The color shift should be clearly noticeable in Acrobat. Thanks - Gylfi

[iText-questions] Loading fonts under Weblogic

2009-10-05 Thread Troy Motte
I am having a problem with iText when I deploy my application to weblogic. It blows up when I use ServletContext.getResource() to get a reference to a font file and ask iText to load it. Stack trace: Caused by: ExceptionConverter: java.io.IOException:

[iText-questions] decoding bytes into character in a PDF document.

2009-10-05 Thread newoutlook
I want to get bytes from a PDF document and decode the bytes into characters. Is there a class in iText API ? it is kinda similiar to PDF reader fuctionality. -- View this message in context: http://www.nabble.com/decoding-bytes-into-character-in-a-PDF-document.-tp25757003p25757003.html Sent

Re: [iText-questions] Color shift and missing Transparency Group

2009-10-05 Thread Mark Storer
Wow. That image is put together all goofy-like. The image itself is a 2x2-pixel box, all the detail is created with an SMask, a 1123x391 deviceGray 1 bit per component image. I suspect that interaction between the transparency group dictionary on the original page and this mask is to blame

Re: [iText-questions] Color shift and missing Transparency Group

2009-10-05 Thread Paulo Soares
I'm afraid that this doesn't have an easy solution. If there's an RGB page group and an CMYK page group and both pages are included in a single page, what should be the resulting page group? Paulo - Original Message - From: Gylfi Ingvason gylfi.ingva...@solimarsystems.com To: 'Post

Re: [iText-questions] Loading fonts under Weblogic

2009-10-05 Thread Paulo Soares
Weblogic has some proprietary types like zip: and wsjar: that are not recognized by iText. It will be fixed in the near future. Meanwhile load the file to a byte array. Paulo - Original Message - From: Troy Motte troy.mo...@lcra.org To: itext-questions@lists.sourceforge.net Sent:

Re: [iText-questions] Color shift and missing Transparency Group

2009-10-05 Thread Gylfi Ingvason
If the group gets added to the XObject Form as opposed to the Page object, I think that should work fine. Then there is always one-to-one correlation between the imported page and the XObject Form containing it. I doubt that transparency between overlapping XObject Forms will ever be an issue.

[iText-questions] CMYKColor not the result expected!!

2009-10-05 Thread Hugo Flambó
I use iText for fill text on an AcroField and all it´s ok unless that when I choose an Font color his way: new CMYKColor(0, 76, 76, 70) the result that I get is like an opaque brown (maybe a spor color) wich is diferent from the result that I want to obtain that can be visualized on this web

Re: [iText-questions] CMYKColor not the result expected!!

2009-10-05 Thread Paulo Soares
You may call PdfWriter.setRgbTransparencyBlending(true) but if you expect to get color matches without a calibrated monitor and an icc profile you're in for some surprises. Paulo - Original Message - From: Hugo Flambó hfla...@gmail.com To: iText-questions@lists.sourceforge.net Sent:

Re: [iText-questions] Color shift and missing Transparency Group

2009-10-05 Thread Paulo Soares
The group must be added to the page. I tried adding it to the XObject and it didn't work. Paulo - Original Message - From: Gylfi Ingvason gylfi.ingva...@solimarsystems.com To: 'Post all your questions about iText here' itext-questions@lists.sourceforge.net Sent: Monday, October 05,

Re: [iText-questions] CMYKColor not the result expected!!

2009-10-05 Thread Hugo Flambó
Thanks Paulo for your reply... The main objective is to get the CMYK color to be the one expected on printer... I don´t now much about color but RGB is only for screens no? Any pointers or directions on how to achieve this? Thanks in advance.. BR Hugo On Tue, Oct 6, 2009 at 12:31 AM, Paulo

Re: [iText-questions] What Part of the PDF document is signed by PdfStamper

2009-10-05 Thread Leonard Rosenthol
ALL of the PDF, except the signature itself, is signed. Leonard On 10/5/09 4:59 AM, Tamas info...@gmail.com wrote: Dear IText Experts, What part of the pdf document is signned when I use the PdfStamper.CreateSignature and the PdfSignatureAppearance.SetCrypto method? My code is the