Re: [iText-questions] Remove field level formatting

2010-11-18 Thread 1T3XT info
On 18/11/2010 21:04, kpgraci wrote: > > I have pdf files with formatting applied to some of the fileds and I want to > remove that formatting. > > Below I list the routine I use to inspect the format and get the javascript > name and therefore determine the type of formatting - although this is not

Re: [iText-questions] faded image color

2010-11-18 Thread Tomas Ramirez
Hi, I did some debugging, and found that this image doesn't have an ICC_Profile, so I tagged it with the following: ICC_Profile icc = ICC_Profile.getInstance(ColorSpace.CS_sRGB); img.tagICC(icc); And now it renders properly, not faded. So why does the image appear faded when I don't tag it with

[iText-questions] Remove field level formatting

2010-11-18 Thread kpgraci
I have pdf files with formatting applied to some of the fileds and I want to remove that formatting. Below I list the routine I use to inspect the format and get the javascript name and therefore determine the type of formatting - although this is not important as all I want to do is remove the f

Re: [iText-questions] Non-rectangular multi-line Text Field?

2010-11-18 Thread Mark Storer
I see two options, neither of which are particularly viable. 1) Custom rendering code in iText. You pass extra layout info (new dict key or whatever) to some custom code you write in iText to lay things out the way you want. Doesn't work because: The first time someone changes your field value

Re: [iText-questions] Best way to make entire page background one color ?

2010-11-18 Thread Mark Storer
The only problem with this method is in the Really Rare case where someone expands the size of the page. The "background color" is just a rectangle filled with a given color, so when that page changes size, that rectangle needs to change as well, or you get a "background" that doesn't cover you

Re: [iText-questions] OutOfMemoryError extracting large sizedattachment from a pdf

2010-11-18 Thread Mark Storer
I don't think so, but that's a good idea. Let me see... Ouch. We'd need to decompress and optionally decrypt the bytes on the fly as they were read. Not a quick fix by any stretch. What happens internally, is that we call getStreamBytesRaw, which returns the compressed, decrypted bytes. Thos

[iText-questions] OutOfMemoryError extracting large sized attachment from a pdf

2010-11-18 Thread stefano fontanel
Hi all, I'm trying to extract an attachment from a pdf file (previously created with itext). I used the code of extractDocLevelAttachments() method as suggested at page http://itextpdf.com/examples/iia.php?id=290. It works for "normal sized" attachments. When I try to extract "large sized" files (e

Re: [iText-questions] Antwort: Re: Antwort: Re: Antwort: Re: how to find if a checkbox is checked (NOT get thevalue)

2010-11-18 Thread Paulo Soares
Open the PDF in Acrobat and delete all the text, just leave the checkboxes. I'm sure no identification will remain. Paulo -Original Message- From: christoph.miku...@bgn.de [mailto:christoph.miku...@bgn.de] Sent: Thursday, November 18, 2010 11:24 AM To: Post all your questions about iText

[iText-questions] Antwort: Re: Antwort: Re: Antwort: Re: how to find if a checkbox is checked (NOT get thevalue)

2010-11-18 Thread Christoph . Mikusch
well then im not allowed to release the document as it may still contain data sufficient to identify one of our ensurants. someone else has any suggestion how to get the status of there fields? Mit freundlichen Grüßen Christoph Mikusch Berufsgenossenschaft Nahrungsmittel und Gaststätten Dynamos

Re: [iText-questions] Antwort: Re: Antwort: Re: how to find if a checkbox is checked (NOT get thevalue)

2010-11-18 Thread Paulo Soares
I asked for the PDF for the list, not for me. Paulo -Original Message- From: christoph.miku...@bgn.de [mailto:christoph.miku...@bgn.de] Sent: Thursday, November 18, 2010 10:45 AM To: Post all your questions about iText here Subject: [iText-questions] Antwort: Re: Antwort: Re: how to find

[iText-questions] Antwort: Re: Antwort: Re: how to find if a checkbox is checked (NOT get thevalue)

2010-11-18 Thread Christoph . Mikusch
hi paolo, though ive x'ed all personal data out of the pdf im still not allowed to post it openly to the list. can you provide me with your personal email adress? Mit freundlichen Grüßen Christoph Mikusch Berufsgenossenschaft Nahrungsmittel und Gaststätten Dynamostraße 7 - 11 68165 Mannheim

Re: [iText-questions] HASH, SMARTCARD and PKCS#7 detached

2010-11-18 Thread 0de55a
Hi Andreas, That's right, I've found a lot of interesting information in this topic. OMNI Smart card provides only .so module without any Java middleware. This smart card works using CardOS. The card support PKCS11 interface. Initially I've installed openSC however there is a difference in di

Re: [iText-questions] HASH, SMARTCARD and PKCS#7 detached

2010-11-18 Thread 0de55a
Hi Bruno! The example from the first book edition was my start point. As far as I understand there was used middleware which provides signed value in PKCS#7 format that is not my case. Thanks for the advice, I've subscribed. Best regards, Andriy. -- View this message in context: http://itex

Re: [iText-questions] iText stamp

2010-11-18 Thread Paulo Soares
Some points: - opacity 1 is the same as not using it. Remove the gstate unless you really need it, it has implications in the way the page is rendered. - ShowTextAligned(iTextSharp.text.Element.ALIGN_RIGHT, watermarkText, rect.Width, 0, 0) - you'll have to take into account the crop box if there

Re: [iText-questions] Antwort: Re: how to find if a checkbox is checked (NOT get thevalue)

2010-11-18 Thread Paulo Soares
We'll have to see one of those PDFs. Paulo -Original Message- From: christoph.miku...@bgn.de [mailto:christoph.miku...@bgn.de] Sent: Thursday, November 18, 2010 8:05 AM To: Post all your questions about iText here Subject: [iText-questions] Antwort: Re: how to find if a checkbox is chec

[iText-questions] Antwort: Re: how to find if a checkbox is checked (NOT get thevalue)

2010-11-18 Thread Christoph . Mikusch
hi, thank you for you answer but it didnt solve the problem. analyzing a checkbox with getAppearanceStates(key) gets [0} -> "Ja" and [1] -> "Off" or [0} -> "" and [1] -> "Off" problem is that getField(key) on an unchecked box does NOT return the value "Off" but "" so when the checked return value