Re: [iText-questions] AcroFields.Item field - how to get "is ithidden"?

2011-05-03 Thread Mark Storer
http://www.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/PDF32000_2008. pdf Annotations and fields are defined in chapter 12 (Interactive Features), sections 5 and 7. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -Origi

Re: [iText-questions] AcroFields.Item field - how to get "is ithidden"?

2011-05-03 Thread archie14
Mark Storer autonomy.com> writes: > > Whoops... > > > if (flags & PdfAnnotation.FLAGS_HIDDEN != 0) { > > Should be > >if (flags.intValue() & PdfAnnotation.FLAGS_HIDDEN != 0) { > > "flags" is a PdfNumber... It has no implicit "int" conversion, so you > must explicitly cal

Re: [iText-questions] Nosuchmethod error for bouncy castle

2011-05-03 Thread vinothkp
Cosmin, that works thanks. but i downloaded this file http://grepcode.com/snapshot/repo1.maven.org/maven2/org.bouncycastle/bcprov-jdk15/1.43 On Tue, May 3, 2011 at 1:33 PM, Cosmin Ciuraru [via iText - General] < ml-node+3493098-137657156-234...@n4.nabble.com> wrote: > I remember that too. > >

Re: [iText-questions] AcroFields.Item field - how to get "is ithidden"?

2011-05-03 Thread Mark Storer
Whoops... > if (flags & PdfAnnotation.FLAGS_HIDDEN != 0) { Should be if (flags.intValue() & PdfAnnotation.FLAGS_HIDDEN != 0) { "flags" is a PdfNumber... It has no implicit "int" conversion, so you must explicitly call one of the *Value() functions. --Mark Storer Senior So

Re: [iText-questions] AcroFields.Item field - how to get "is it hidden"?

2011-05-03 Thread Mark Storer
I think he means PdfAnnotation.FLAGS_HIDDEN. >PdfDictionary pdct = field.GetMerged(k); PdfNumber flags = pdct.getAsNumber(PdfName.F); if (flags & PdfAnnotation.FLAGS_HIDDEN != 0) { // it's hidden } else { it's visible. } --Mark

Re: [iText-questions] character spacing in vertical text

2011-05-03 Thread TAKEGATA Seiji
Hi, thank you for the patch. It is my first experience to build from open source. I was warned something I don't understand but got a jar anyway. Using this jar, character spacing in VerticalText ban be changed by Chunk.setCharacterSpacing() but I have to give it a minus value such as -5.0 to get b

[iText-questions] QR Code whitespace padding

2011-05-03 Thread Jason Berk
I noticed the whitespace around the qrcode generated by itext is very wide compared to ones generated online. Is that by design, or is there a way to decrease that "padding". I realize there has to be _some_ whitespace, but it looks like there's a 1/4" wide margin around the code. Just curious..

Re: [iText-questions] AcroFields.Item field - how to get "is it hidden"?

2011-05-03 Thread Leonard Rosenthol
Hidden means "outside visible area" - that's all Acrobat is doing in the UI. It's a "virtual" property :). -Original Message- From: archie14 [mailto:ad...@tradeplatform.us] Sent: Tuesday, May 03, 2011 11:39 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Acro

Re: [iText-questions] AcroFields.Item field - how to get "is it hidden"?

2011-05-03 Thread archie14
Leonard Rosenthol adobe.com> writes: > > Check the rectangle to see if it's inside the CropBox. > Does it mean that IText does not provide explicit method to test for the field being "hidden"? (field property in Adobe Acrobat has "hidden" value for "Form Field" combobox) ---

Re: [iText-questions] AcroFields.Item field - how to get "is it hidden"?

2011-05-03 Thread Leonard Rosenthol
Check the rectangle to see if it's inside the CropBox. -Original Message- From: archie14 [mailto:ad...@tradeplatform.us] Sent: Tuesday, May 03, 2011 10:50 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] AcroFields.Item field - how to get "is it hidden"? I am enume

[iText-questions] AcroFields.Item field - how to get "is it hidden"?

2011-05-03 Thread archie14
I am enumerating fields in the document and need to know if the field is hidden. My understanding is that this property is located in PdfDictionary instance. Studying "IText in Action 2nd ed" I can't find the description of how to query for the visibility flag (not for TextField etc, but for Ac

[iText-questions] Apache ant task for itext

2011-05-03 Thread M. Niedermair
Hi, the first version of the apache ant tasks for itext is released. see ftp://dante.ctan.org/tex-archive/support/ant-worker-tasks/ By Michael WORKER-TASKs Die "Worker"-Tasks sind eine Sammlung von Apache-ANT-Erweiterungen, die einem das Leben mit dem Erstellen von großen Dokumen

Re: [iText-questions] Nosuchmethod error for bouncy castle

2011-05-03 Thread Cosmin Ciuraru
I remember that too. http://www.bouncycastle.org/download/bcmail-jdk16-143.jar I just had to replace the 6 in 146 from the current version with the 3. OK, one would argue for a checksum. -- WhatsUp Gold - Download Free Ne

Re: [iText-questions] Nosuchmethod error for bouncy castle

2011-05-03 Thread vinothkp
Cosmin, I tried searching for 1.43, but could not find it. google, bouncy website, its not there. http://www.bouncycastle.org/latest_releases.html if you do have it, can you please provide that jar to me somehow? or point me to somewhere (like and archive) i can download it from. On Tue, May 3,

Re: [iText-questions] Nosuchmethod error for bouncy castle

2011-05-03 Thread Cosmin Ciuraru
Hello, I remember coming across a similar error and I use 1.43 to avoid it. 2011/5/3 vinothkp > Hi, i followed the code snippet provided in iText in Action book. and when > i > run the following code, i get a java.lang.NoSuchMethodError: > > org.bouncycastle.asn1.DERSequence.(Lorg/bouncycastle/

Re: [iText-questions] How to set line spacing for a multi-line formfield?

2011-05-03 Thread Mark Storer
Not really, no. You can set the TL (Text Leading) in the /DA (Default Appearance) string, but there's no guarantee that it'll be used. Some versions of Reader do, but I think the most recent do not. I haven't tried messing with the /DA in a while now so I can't tell you which versions will or w

Re: [iText-questions] Get Hyperlink text from PDF using c#

2011-05-03 Thread Mark Storer
I suggest you use PdfTextExtractor with a LocationTextExtractionStrategy, then search the String returned by the text extractor for "http://"; and parse out the rest of the URL. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer DisCard = null; > -

Re: [iText-questions] character spacing in vertical text

2011-05-03 Thread Mark Storer
You should be able to get it from the trunk right now and try it out. I didn't really... /test/ anything. I went "Klingon Programmer" there for a moment: http://gradha.sdf-eu.org/textos/klingon_programmer.en.html "What is this talk of 'release'? Klingons do not make software 'releases'. Our s

[iText-questions] Nosuchmethod error for bouncy castle

2011-05-03 Thread vinothkp
Hi, i followed the code snippet provided in iText in Action book. and when i run the following code, i get a java.lang.NoSuchMethodError: org.bouncycastle.asn1.DERSequence.(Lorg/bouncycastle/asn1/DEREncodableVector;)V exception KeyStore ks = KeyStore.getInstance("pkcs12"); String alias = "aprivat

Re: [iText-questions] iText fill XFA Form and Digital signing

2011-05-03 Thread Leonard Rosenthol
Then modifying the entire XFA data block after document signing is a bad thing... From: Cosmin Ciuraru [mailto:cosmin.ciur...@gmail.com] Sent: Tuesday, May 03, 2011 7:57 AM To: Post all your questions about iText here Subject: Re: [iText-questions] iText fill XFA Form and Digital signing Accordi

Re: [iText-questions] iText fill XFA Form and Digital signing

2011-05-03 Thread Cosmin Ciuraru
According to this classification: * * * http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000628.html * I use document signatures. The users just click on the signature field to sign the document and send it to me afterwards. There is no submit/email button. Thank you!

Re: [iText-questions] unsubscribe

2011-05-03 Thread Balder
On 3/05/2011 15:57, Khalid wrote: Hi, Please take me off of this email list. Thanks That's something you must do yourself http://sourceforge.net/apps/trac/sourceforge/wiki/Mailing%20lists Unsubscribe To unsubscribe from a mailing list: 1. Go the the URL (or follow the link) provided a

[iText-questions] unsubscribe

2011-05-03 Thread Khalid
Hi,   Please take me off of this email list.   Thanks --- On Tue, 5/3/11, Leonard Rosenthol wrote: From: Leonard Rosenthol Subject: Re: [iText-questions] iText renders helvitica with too wide character spacing To: "Post all your questions about iText here" Date: Tuesday, May 3, 2011, 8:49 A

Re: [iText-questions] iText renders helvitica with too wide character spacing

2011-05-03 Thread Leonard Rosenthol
Do you actually have the Helvetica font installed on your computer? What about Arial? Are you embedding the font in the PDF or relying on substitution? What PDF viewer is being used to check the PDFs? Can you post a sample PDF the demonstrates the problem? Leonard From: Jaak Vermeire [mailt

Re: [iText-questions] iText fill XFA Form and Digital signing

2011-05-03 Thread Leonard Rosenthol
Are you using data signatures or document signatures? From: Cosmin Ciuraru [mailto:cosmin.ciur...@gmail.com] Sent: Tuesday, May 03, 2011 5:40 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] iText fill XFA Form and Digital signing Hello, I have created a PDF document, with

Re: [iText-questions] iText renders helvitica with too wide character spacing

2011-05-03 Thread Jaak Vermeire
Hmm, not really, it's in a huge codebase... I guess if this doesn't immediatly ring a bell, that it must be something wrong on my side. Thanks for the help. On Tue, May 3, 2011 at 3:22 PM, Balder wrote: > Hi Jaak > > Can you provide a code sample so we can reproduce your problem easily? > > >

Re: [iText-questions] Digital Signatures Are Not Working in 5.0.6

2011-05-03 Thread Balder
I think this is the first time we hear about digital signatures not working in 5.0.6. compare your code with e.g. http://www.itextpdf.com/examples/iia.php?id=222 to see if you missed something when upgrading to 5.0.6 On 29/04/2011 22:45, rroberts wrote: Hello, I recently upgraded my PDF gene

Re: [iText-questions] Faxing a PDF document

2011-05-03 Thread Balder
On 3/05/2011 14:26, samjoe wrote: Friends, I have a requirement to be able to fax the PDF report that I generate with iText. This PDF report is shown on the HTML interface. Any ideas/suggestions how to do it? Contact your faxing machine vendor or the faxing application vendor to know it's API

Re: [iText-questions] iText renders helvitica with too wide character spacing

2011-05-03 Thread Balder
Hi Jaak Can you provide a code sample so we can reproduce your problem easily? On 3/05/2011 14:58, Jaak Vermeire wrote: Hi, I'd like to elaborate a bit. It appears that the characters rendered when using "Arial" or "Helvetica" look exactly the same, so either arial or helvetica isn't inclu

Re: [iText-questions] iText fill XFA Form and Digital signing

2011-05-03 Thread Cosmin Ciuraru
Specifying the context: - iText-5.0.6 - bctsp-jdk16-143 - bcprov-jdk16-143 - bcmail-jdk16-143 - Adobe Reader X, used to fill in the first three text fields and sign the document. -- WhatsUp Gold - Download Free Network Mana

Re: [iText-questions] iText renders helvitica with too wide character spacing

2011-05-03 Thread Jaak Vermeire
Hi, I'd like to elaborate a bit. It appears that the characters rendered when using "Arial" or "Helvetica" look exactly the same, so either arial or helvetica isn't included and it's using the other one to render it. But that is no problem! At least not what the problem I'm posting here is about.

[iText-questions] iText fill XFA Form and Digital signing

2011-05-03 Thread Cosmin Ciuraru
Hello, I have created a PDF document, with LiveCycle Designer, which contains a dynamic XFA form, with four text fields and two signature fields. The first three text fields and one of the signature field are associated into a Form Object Collection, with the 'Lock Fields After Signing' option on.

[iText-questions] Faxing a PDF document

2011-05-03 Thread samjoe
Friends, I have a requirement to be able to fax the PDF report that I generate with iText. This PDF report is shown on the HTML interface. Any ideas/suggestions how to do it? -Samjoe -- View this message in context: http://itext-general.2136553.n4.nabble.com/Faxing-a-PDF-document-tp3492348p349

Re: [iText-questions] Get Hyperlink text from PDF using c#

2011-05-03 Thread gayatri parthasarathy
Yes Mark. I need to get all the hyperlinks which starts with http:// from a pdf file using c#. Please share any code snippet for this. On 4/26/11, Mark Storer wrote: > Are you talking "text on the page that starts with 'http://'" or "link > annotations"? > > --Mark Storer > Senior Software Engi

[iText-questions] iText renders helvitica with too wide character spacing

2011-05-03 Thread Jaak Vermeire
Hi, if I set the font of iText to helvetica, it renders the characters quite wide with a space between each character. This is too wide to be good, it's ugly. Doing "setCharacterSpacing(0)" or "setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO)" doesn't help, they do not affect the result. When usin

Re: [iText-questions] character spacing in vertical text

2011-05-03 Thread TAKEGATA Seiji
Great! I will wait for your patch, hopefully included in the future release. Thanks. 2011/5/3 Mark Storer : > It would appear that a chunk's character spacing is ignored in the current > version of VerticalText: > >    void writeLine(PdfLine line, PdfContentByte text, PdfContentByte graphics) >