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" 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 folowing: >

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 Soa

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" To: "'Post all your questions about iText here'" Sent: Monday, October 05, 2009 10:23 PM Subject: Re: [iText-questions] Color shift and missing

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ó" To: Sent: Monday, October 05, 2009 11:15 PM Subject: [iText-ques

[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 page:

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. ---

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" To: Sent: Monday, October 05, 2009 8:56 PM Subject: [iText-question

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" To: "'Post all your questions about iText he

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 f

[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 fr

[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: zip:/u01/app/oracle/product/weblogic/user_

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] 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

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" To: Sent: Monday, October 05, 2009 3:35 PM Subject: Re: [iText-questions] Creating PDF Digital signature without Bouncy Castle Thank you for the reply, but my aim is to s

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 ot

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" To: Sent: Monday, October 05, 2009 12:51 PM Subject: [iText-questions] ArrayIndexOutOfBoundsException Following code gives Arr

Re: [iText-questions] ArrayIndexOutOfBoundsException

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

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 typedef std::Disclaimer DisCard; -Original Message- From: Leo [mailto:quick...@tiscalinet.it] Sent:

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 askin

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 yo

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

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 bcpr

[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 = PdfStamper.CreateSignature(re

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 wrote: >

[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] Splitting by Itext

2009-10-05 Thread rosette
If Adobe is the indication, I understand it. Thanks for your help. Rosette Paulo Soares-3 wrote: > > Let me sumarize this thread and give some considerations: > > - There are several ways to split a PDF using iText. > - PdfWriter splits using templates that may be nested if splits are made

Re: [iText-questions] Splitting by Itext

2009-10-05 Thread rosette
Hi Bill, Yes, I can extract the document that you attached (test_split3.pdf). However, if you split again, then the extraction fail in the first document and sucess in the second. This is exactly my problem! if you know about a tool that can extract the information in the second split (the firs