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

2009-10-06 Thread Tamas
Thank you Leonard! You mean that all of the previous signatures are signed with the last one? Bests Tamas Leonard Rosenthol-3 wrote: 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,

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

2009-10-06 Thread Tamas
Thank you for the answers from everobody! @Paulo: The code example is great but at the sap.SetCrypto(null, chain, null, null); calling the chain parameter is an Org.BouncyCastle.X509.X509Certificate[] and I would not like to use Bouncy Castle classes. @Andreas: I would not like to sign my pdf

[iText-questions] Widget Tooltips

2009-10-06 Thread zatalian
Hi, I'm new to itext and creating pdf's with it, so it may look like i'm a little confused :-) I would like to add a tooltip to my pdf, much in the same way hyperlinks have those yellow tooltips when you hover over them with the mouse. But i don't want the hyperlink, i just want the tooltip.

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

2009-10-06 Thread Tamas
Additionally... and what happens, when I modify the signature itself. Please see the attached zip code example and the screen shot about that where the modification was made in the pdf, and it was still valid in IText. (In Adobe Reader 9.0 the signature had the right state - At least one

[iText-questions] Problem with image chunks in iText version 2.1.5 and newer

2009-10-06 Thread A . Meyer
hi, this code works *perfect* with iText version 2.1.3 or 2.1.4: --- Image img = Image.getInstance(Konstanten.GRAFIKPFAD_PDF + Logo1.png); img.scalePercent(65f); // (1) ct.showTextAligned(cb, Element.ALIGN_CENTER, new Phrase(new Chunk(img, 0f, 0f)), 421f, 362.25f,

Re: [iText-questions] Splitting by Itext

2009-10-06 Thread rosette
BTW Bill, in the attachement you can dind my split file (it is the regular sample), can you tell me if you use the same sample ? Thanks again, rosette rosette wrote: Hi Bill, Thanks, but the problem exist also with the files you sent. I can not extract text from test_split4.pdf But

Re: [iText-questions] Splitting by Itext

2009-10-06 Thread rosette
Hi Bill, Thanks, but the problem exist also with the files you sent. I can not extract text from test_split4.pdf But I sucess to extract from test_split5.pdf Rosette wasegraves wrote: I had already split again with the iText Toolbox's Split tool. Here are the two files. I suspect your

[iText-questions] Multiline AcroFields and Unicode

2009-10-06 Thread nastyklad
Hello, I have a weird problem when flattening some fields. I have regular AcroFields wich I can fill with unicode characters and they're displayed just fine. But when I try to fill multiline AcroFields, the unicode characters don't display in the resulting PDF document. The oddest thing is

[iText-questions] Getting hash and byte range from a signature

2009-10-06 Thread John_Z80
Following an old post I tried to do something I read, i need to get the Signature object from a signed PDF and get the ByteRange and hashing algorithm. Following the next brief extgract of code, you can view I can get the signing certificate Issuer Info, BUT if I try to get tha algorith I get a

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

2009-10-06 Thread John_Z80
It has no sense, I think you have signed the whole document, you can add later more signatures and the first one continues to be valid, covering the document and the second one the signed document. But if you change the document in any way you can see in the signature field thata the document has

Re: [iText-questions] Splitting by Itext

2009-10-06 Thread wasegraves
I used only your samples, together with the Split Tool in the iText Toolbox.. I think you've isolated the problem to the text-extraction tool you're using, as the text you're seeking to extract clearly appears in all of the split PDFs. Summary: It's not an iText problem; and therefore, does not

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

2009-10-06 Thread Gylfi Ingvason
You're right - from reading the spec I assumed it would, but apparently the default page settings override the XObject dictionary. I tried using the /I and /K dict settings as well, and it didn't make a difference. It would be interesting if we could get feedback from Adobe on this one - this has

[iText-questions] Sign with .cer

2009-10-06 Thread merco
Hi. I'm using VB.net Itextsharp 4.1.6. I want to sign a PDF but i get an error in sap.PreClose(exc) (invalid cast) this is the code (taken from How to sign a PDF using iText.mht .net 2.0) but i can't understand why. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

Re: [iText-questions] Multiline AcroFields and Unicode

2009-10-06 Thread Paulo Soares
It may be a font problem, use a substitution font in AcroFields just in case. Paulo -Original Message- From: nastyklad [mailto:nastyk...@gmail.com] Sent: Tuesday, October 06, 2009 2:01 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Multiline AcroFields and

[iText-questions] How to calculate the string width in itext ?

2009-10-06 Thread zengqingyi12
I am using itext to write pdf, but in some cases, I need to sign the pdf with SetVisibleSignature function, and we know, with this function, we need to designate the rectangle that we will write the content into it, But it's hard for me to calculate how large the string will occupy, then I

Re: [iText-questions] Sign with .cer

2009-10-06 Thread Paulo Soares
A .cer doesn't have a private key. Paulo -Original Message- From: merco [mailto:d.merca...@sygest.it] Sent: Tuesday, October 06, 2009 4:05 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Sign with .cer Hi. I'm using VB.net Itextsharp 4.1.6. I want

[iText-questions] unsubsribe

2009-10-06 Thread Amol Patil
-- Thanks Regards, Amol Patil (302-489-9837) -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take

Re: [iText-questions] Spam: How to calculate the string width in itext ?

2009-10-06 Thread Mark Storer
You can find the answer 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: zengqingyi12

Re: [iText-questions] Multiline AcroFields and Unicode

2009-10-06 Thread Mark Storer
The oddest thing is that when I click on multiline fields wich contains unicode characters, the field resize automatically and then the unicode characters are displayed fine! I thought you said you'd flattened them? It would be helpful if you were to explain your situation more clearly,

[iText-questions] Hyperlinks in itext PDF Table of Contents after merging multiple documents

2009-10-06 Thread Swapna Guntu
I have created a main document and table of contents as separate Documents and merged them with PdfSmartCopy. My requirement is to have the hyperlinks work in Table of Contents. I looked at setRemoteGoto and gotoRemotePage functions which are expecting the fileName. In my case i don't have the

[iText-questions] PdfSmartCopy not reusing a font resource

2009-10-06 Thread Jeff Mericle
Hi, I am using version 2.1.7 to concatenate many source documents into one. I use PdfStamper to reduce each source page, as well as applying a header image and a running page count. I copy the results from each PdfStampter operation to the final document. When I first began adding images, the

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

2009-10-06 Thread Leonard Rosenthol
Correct. -Original Message- From: Tamas [mailto:info...@gmail.com] Sent: Tuesday, October 06, 2009 4:49 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] What Part of the PDF document is signed by PdfStamper Thank you Leonard! You mean that all of the

Re: [iText-questions] Widget Tooltips

2009-10-06 Thread Leonard Rosenthol
If you're going to write PDF code you need to read the PDF Reference/ISO 32000-1. Once you do that, all will become clear Leonard -Original Message- From: zatalian [mailto:zatalian+itext-questi...@gmail.com] Sent: Tuesday, October 06, 2009 6:17 AM To:

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

2009-10-06 Thread Leonard Rosenthol
The Contents aren't signed by the PDF signature - they can't be (otherwise you get infinite recursion). However, some parts of the Contents (which is a PKCS#7 package) _MAY_ be a signed attribute and thus you could get failure from that side. Any other change to the PDF will cause it to fail

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

2009-10-06 Thread Leonard Rosenthol
Actually, the key in the XObject dictionary ALSO works but perhaps not how you expect. Also, whether or not the XObject is an isolated transparency group or not will impact blending as well. In other words, if you have it isolated - then that entire XObject is first composited as a single

[iText-questions] Multiple pages per sheet

2009-10-06 Thread Sarvadnya
Hi, I'mm working on creating a document for my company where-in I need to show 3 pages in one page. Each page has limited width tabular data which should be shown in a single page. I'm using iText ver 1.4.4 Please help. It is highly urgent. Thanks in advance. -Sam

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

2009-10-06 Thread Gylfi Ingvason
Thanks for the explanation. We use iText to parse existing PDF input and unfortunately it is not always feasible to tell the customer to switch to Device Independent colors. People may know their word processor, but they are clueless when it comes to color transformations, and what have you.

Re: [iText-questions] Char Tracking

2009-10-06 Thread Leo
Tks, but actually I wouldn't use PdfContentByte, as I can call Chunk.setHorizontalScaling I would call a similar method Chunk.setCharacterSpacing because I need to write something like: YOU ARE MY B E S T FRIEND Do you think it's possible? Or a workaround? - Original Message -

Re: [iText-questions] Char Tracking

2009-10-06 Thread Mark Storer
At that point you have a couple options: 1) Hack: Add each letter of your B E S T string as an individual chunk, and add a chunk in between each one, using the space-chunks' horizontal scale to get the precise distance you want. Space Chunks sounds like an Asteroids clone, and not a