Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread mpino
Dear Stefanu Would you mind to provide us a sample code of how to sign the PDF/A?. I've seen your samples in Acrobat Reader and it seems to be working fine. Thanks in advance Manuel -- View this message in context: http://itext-general.2136553.n4.nabble.com/Sign-a-PDF-A-tp3627882p3634909.html S

Re: [iText-questions] Not all annotations are being copied, please help

2011-06-29 Thread Henry Jou
They type of annotation is a check box From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Wednesday, June 29, 2011 9:42 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Not all annotations are being copied, please help On 30/06/2011 3:40, Henry Jou wrote: If th

Re: [iText-questions] Chinese font replacing in iText

2011-06-29 Thread 1T3XT BVBA
On 30/06/2011 6:13, Simon HSU wrote: Seems like the encoding of text Yes, that's the most probably reason for the problem. I assume the original PDF uses a specific encoding whereas your font expects Unicode. In cases like this, replacing a font isn't trivial. -

Re: [iText-questions] Need Help

2011-06-29 Thread 1T3XT BVBA
On 30/06/2011 6:34, Himanshu wrote: > when I use this jar in classpath and import its package it gives me > the above-mentioned errors. itext-5.1.1.jar is NOT an executable jar. You wrote: "when I double click the .jar itself it report with following error" Why would you do that? I'm sorry, bu

Re: [iText-questions] Not all annotations are being copied, please help

2011-06-29 Thread 1T3XT BVBA
On 30/06/2011 3:40, Henry Jou wrote: If the information I am looking for is in the book, please advise on a chapter or section within the book. You don't specify the type of annotations, but if you take a look at chapter 6, you can read that form fields (more specifically their widget annotat

Re: [iText-questions] Need Help

2011-06-29 Thread Himanshu
You are absolutely right. However, it seems like you didn't get me. I know how to extract .jar files and I am not creating any jar files. I want to convert documents into pdf on the run and for this purpose, I downloaded itextpdf-5.1.1. that came with itextpdf-5.1.1.jar and when I use this jar i

[iText-questions] Chinese font replacing in iText

2011-06-29 Thread Simon HSU
Hi, I've tried the Replacing a Font (example 16.1.4) But when I tried to read a existed PDF (not created by iText) and replaced specific font by Chinese font, it occurred unknown characters.. Which makes the PDF unreadable... But when I select the unknown characters and paste them into text editor,

Re: [iText-questions] What to set while stamping the PDF for retaining tags described in PDF template

2011-06-29 Thread Mark Storer
Sadly, no. What screen reader are you using? Some are better than others. You might even be better off trying to scrape out all the tagging information in the stream so as not to confuse it. And writing the code to do this will be Non-Trivial. The tagging info in the page itself is called "mar

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread mkl
Leonard, Leonard Rosenthol-3 wrote: > > Or PDF/A, the namespaces are fixed. > Just to be sure... are they really? Especially, is 'xmp'? According to ISO 19005-1:2005/Cor.1:2007(E) a NOTE 3 is added after note 2 of Subclause 6.7.2 of ISO 19005-1:2005: “NOTE 3 According to the W3C XML Namespace

Re: [iText-questions] Need Help

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 18:59, Himanshu wrote: > when I double click the .jar itself If you make a simple HelloWorld example, why are you creating a jar? Why not just test it with javac? If you want to make a jar clickable, you need to define a Main-Class in the MANIFEST.MF file. In any case: you need to l

Re: [iText-questions] Strange behaviour when filling/flattening

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 19:10, TvT wrote: > Or could it be the font? Yes, See figure 8.4 of the book: http://www.flickr.com/photos/itextinaction/4330325392 In screen shot 1 and 3 (counting from the top) some characters are missing. Why? Because they are not present in the font that is defined for the field

Re: [iText-questions] Overlay of one PDF over another not working

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 20:29, Joseph Schmoley wrote: > I've done PDF "stamping" of an overlay PDF onto another hundreds of > times using iText/PdfStamper with no issues, but there's this one PDF > that no matter what I try to overlay on it, the output just comes out > without the overlay. I can see the

Re: [iText-questions] signing question re date/time

2011-06-29 Thread Andreas Kuehne
Hi AJ, if you're new to the crypto-stuff there will be a bumpy road ahead ;-) I would recommend to search the iText mailing list archive once you're facing problems. Many questions are answered here, already ! If you worry about a X.509 certificate, just create one using java's keytool. Or take

[iText-questions] What to set while stamping the PDF for retaining tags described in PDF template

2011-06-29 Thread priyankasinha
Hi, I am using tagged PDF template for stamping the PDF. In the tagged PDF template I can read out loud the headings, lists etc. But after the PDF is getting stamped, the headings are getting lost. Is there any property which I need to set so as to retain the structure of tagged PDF. -- View this

Re: [iText-questions] signing question re date/time

2011-06-29 Thread AJ Weber
MessageAh, so as Leonard was getting to, it appears the CA provides a URL, and there is the example I was missing. I now see it later in the chapter, but had not ventured that far yet, because I don't have a X509 cert. Vielen dank. - Original Message - From: Andreas Kuehne To:

Re: [iText-questions] signing question re date/time

2011-06-29 Thread Andreas Kuehne
Hi AJ, I forget instantly, but google rmenbers : http://www.itextpdf.com/examples/iia.php?id=225 And if you like to know about Timestamp, search for RFC 3161 have a look at http://www.opentsa.org/#service Greetings Andreas - original Nachricht Betreff: Re: [iText-questions] sign

Re: [iText-questions] signing question re date/time

2011-06-29 Thread AJ Weber
Understood. That was the intent of my original question: I don't see an API or example of how to request a time-stamp from a "time stamp server" (don't exactly know what that is -- is it a Stratum 1 or 2 NTP server? is it something else?), and I don't see a method to set that time-stamp on the

Re: [iText-questions] What to set while stamping the PDF for retaining tags described in PDF template

2011-06-29 Thread Mark Storer
Sadly, no. What screen reader are you using? Some are better than others. You might even be better off trying to scrape out all the tagging information in the stream so as not to confuse it. And writing the code to do this will be Non-Trivial. The tagging info in the page itself is called "mar

Re: [iText-questions] signing question re date/time

2011-06-29 Thread Andreas Kuehne
Hi AJ ! Just add a (trusted) timestamp to your signature. I doesn't relate to the 'quality' leve of your certificate ... Greetings Andreas - original Nachricht Betreff: [iText-questions] signing question re date/time Gesendet: Mi, 29. Jun 2011 Von: AJ Weber I'm testing some PDF

Re: [iText-questions] signing question re date/time

2011-06-29 Thread Leonard Rosenthol
Can't tell you w/o seeing an actual PDF that demonstrates the problem. From: AJ Weber mailto:awe...@comcast.net>> Reply-To: AJ Weber mailto:awe...@comcast.net>> Date: Wed, 29 Jun 2011 07:04:10 -0700 To: Leonard Rosenthol mailto:lrose...@adobe.com>>, Post here mailto:itext-questions@lists.sourcef

Re: [iText-questions] Why iText can not flatten new fields

2011-06-29 Thread José Carrizo
Well, actually there is a case where I need to do it but does not matter, you are right, I'll try to do it that way. Thanks so much. El jun 29, 2011 3:39 a.m., "1T3XT BVBA" escribió: > > On 29/06/2011 1:55, José Carrizo wrote: >> >> Hello there, >> >> I would like to know why the code documentat

Re: [iText-questions] signing question re date/time

2011-06-29 Thread AJ Weber
Are you saying it's a bug in Acrobat 8? Unfortunately, I can't control the viewing application (or version) that users choose to open the signed PDF with, so if there's a universally applicable way to get an appropriate timestamp and apply it to the signature, I think I should pursue that, righ

Re: [iText-questions] signing question re date/time

2011-06-29 Thread AJ Weber
MessageIs there a way to do that via iText (5.1.1)? I'm not sure what the definition of a "trusted timestamp" is, how to get it, and how to apply it to the signature. Thanks again, AJ - Original Message - From: Andreas Kuehne To: awe...@comcast.net ; Post all your questions about

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread stefanu
Thank you all for help. I'm not sure what I can do about changing the reader right now, but at least now I understand what's going on. If anyone has any hint on how to solve it while signing, since I cannot touch the PDF producer, it is more than welcome. Thanks again. Stefan. On Wed, Jun 29, 20

Re: [iText-questions] signing question re date/time

2011-06-29 Thread Leonard Rosenthol
Have you tried Acrobat 9 or X? From: AJ Weber mailto:awe...@comcast.net>> Reply-To: AJ Weber mailto:awe...@comcast.net>>, Post here mailto:itext-questions@lists.sourceforge.net>> Date: Wed, 29 Jun 2011 06:39:04 -0700 To: Post here mailto:itext-questions@lists.sourceforge.net>> Subject: [iText-qu

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread Leonard Rosenthol
Or PDF/A, the namespaces are fixed. On 6/29/11 3:33 PM, "mkl" wrote: > >mkl wrote: >> >> Unless the prefixes to use are fixed in the context of XMP and are >> required to be defined in the "rdf:Description" node, this smells very >> buggy. >> > >If I understand the spec correctly, "xmp" merely

[iText-questions] What to set while stamping the PDF for retaining tags described in PDF template

2011-06-29 Thread priyankasinha
Hi, I am using tagged PDF template for stamping the PDF. In the tagged PDF template I can read out loud the headings, lists etc. But after the PDF is getting stamped, the headings are getting lost. Is there any property which I need to set so as to retain the structure of tagged PDF. -- V

Re: [iText-questions] (no subject)

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 15:34, Yevgeniy Cherniak wrote: How does itext determine to divide text marked content for tags. iText doesn't do that, you decide where the marked content starts/ends. In the book, it's done in listing 513 using the beginMarkedContentSequence()/endMarkedContentSequence() metho

[iText-questions] signing question re date/time

2011-06-29 Thread AJ Weber
I'm testing some PDF signing using some of the sample code from the latest "iText In Action" book (slightly modified 12.14 code, to be moderately specific). When I look at the generated signature properties with Acrobat 8, there is a warning "Signature date/time are from the clock on the signer

Re: [iText-questions] Convert com.lowagie.text.Image to java.awt.Image/ to BytrArray

2011-06-29 Thread 1T3XT BVBA
On 28/06/2011 21:31, geet wrote: > i need to get byte array as output for this object So you want to create a barcode, and you need a java.awt.Image? Then you're using the wrong method. Don't use createImageWithBarcode(), use createAwtImage(). Then you have a java.awt.Image you can use to create a

Re: [iText-questions] iText pdf stamper and user annotations

2011-06-29 Thread 1T3XT BVBA
On 28/06/2011 15:51, Павел Лобанов wrote: Hi! How can i flatten all annotations and form fields in PDF document. I try : PdfStamper stamper = new PdfStamper(reader, new FileOutputStream( document_out)); stamper.setFreeTextFlattening(true); stamper.setFormFlattening(true); stamper.close(); But

Re: [iText-questions] Breaking paragraphs

2011-06-29 Thread 1T3XT BVBA
On 28/06/2011 15:41, wellington.nunes wrote: > Hello, > > I'm doing a contract, and some cases paragraphs break between pages. > There is what to do for this not happening? > > For example, if the paragraph is broken, he will automatically go to the > next whole page. If you need that level of con

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread mkl
mkl wrote: > > Unless the prefixes to use are fixed in the context of XMP and are > required to be defined in the "rdf:Description" node, this smells very > buggy. > If I understand the spec correctly, "xmp" merely is the preferred namespace prefix, not the only one allowed. And I don't find an

[iText-questions] Convert com.lowagie.text.Image to java.awt.Image/ to BytrArray

2011-06-29 Thread geet
Hi frnds, im new to Itext, please help in solving my issue... I have a to get bytearray from com.lowagie.text.Image object . Please let me know if anyone can help me in answering my query... PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("Barcode.pdf")); document

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread stefanu
This is really bad news for me... There practically no way I can fix the PDF creator. I was hoping I could fix this issue on the singning part, even if it's not iText's fault. Best regards, Stefan. On Wed, Jun 29, 2011 at 3:57 PM, Leonard Rosenthol wrote: > > Good catch! Then the original PDF c

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread Leonard Rosenthol
Good catch! Then the original PDF creator is broken and needs to be fixed! On 6/29/11 2:52 PM, "mkl" wrote: > >Leonard Rosenthol-3 wrote: >> >> Search the code and see where XAP appears. >> > >I'm afraid it might be the other way around... Stefan's original PDF >consistently uses the xap na

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread mkl
Leonard Rosenthol-3 wrote: > > Search the code and see where XAP appears. > I'm afraid it might be the other way around... Stefan's original PDF consistently uses the xap namespace prefix and iText inserts an element using the xmp namespace prefix without defining it. PdfStamperImp.close() set

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread Leonard Rosenthol
Search the code and see where XAP appears. From: stefanu mailto:stefanu...@gmail.com>> Reply-To: Post here mailto:itext-questions@lists.sourceforge.net>> Date: Wed, 29 Jun 2011 05:05:07 -0700 To: Post here mailto:itext-questions@lists.sourceforge.net>> Subject: Re: [iText-questions] Sign a PDF/A

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread stefanu
Indeed, I have manually changed the XMP to XAP, and the reader now shows the correct compliance. Thanks again; now all I have to figure out is how to do this programatically using iText ;) Stefan. On Wed, Jun 29, 2011 at 3:02 PM, stefanu wrote: > Not explicitely, but maybe some function I am c

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread stefanu
Not explicitely, but maybe some function I am calling changes it, or there's some function I can call to set the right namespace prefix. Stefan. On Wed, Jun 29, 2011 at 2:44 PM, Leonard Rosenthol wrote: > Are you changing the XMP yourself? > > From: stefanu > Reply-To: Post here > Date: Wed, 2

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread Leonard Rosenthol
Are you changing the XMP yourself? From: stefanu mailto:stefanu...@gmail.com>> Reply-To: Post here mailto:itext-questions@lists.sourceforge.net>> Date: Wed, 29 Jun 2011 04:26:45 -0700 To: Post here mailto:itext-questions@lists.sourceforge.net>> Subject: Re: [iText-questions] Sign a PDF/A Thank

Re: [iText-questions] Sign a PDF/A

2011-06-29 Thread stefanu
Thank you. Is there something I can fix, or it is inside the iText API ? Stefan. On Tue, Jun 28, 2011 at 4:03 PM, Leonard Rosenthol wrote: > Here's the deal: > > The property uses an undefined namespace prefix (xmp > instead of xap), hence the XMP metadata cannot be parsed and Preflight > claim

[iText-questions] Image inside PdfPTable (iText 5.1.1 versus iText 5.0.6)

2011-06-29 Thread dpmihai
A scaled image inside PdfPTable is shown at wrong position in 5.1.1 version (it is not contained inside the cell). Same example works fine in 5.0.6 version. import java.awt.GraphicsEnvironment; import java.awt.Toolkit; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import ja

Re: [iText-questions] Tables and borders

2011-06-29 Thread hhn000
Ok, I'm adding the rows using the following code: public void DrawBlock(ITextColumns block) { var table = new PdfPTable(block.Widths); table.WidthPercentage = 100f; table.DefaultCell.Border = Rectangle.NO_BORDER; AddRows(table, block

Re: [iText-questions] Tables and borders

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 9:24, hhn000 wrote: > > Does anyone have any idea of what I'm doing wrong? We don't have sufficient information to answer that question. 1. You say that you initially turned borders off and it worked. 2. Then you turned them on and it worked. 3. Now you turned them back off and it no

Re: [iText-questions] Merge extended reader pdf files fails keep it enabled reader use

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 8:59, Ron Machanian wrote: Hi I posted here my problem with itextsharp and I really need your help http://stackoverflow.com/questions/6508022/itextsharp-merging-pdf-files-disables-extended-reader-permmissions-need-it-ena The question has been answered correctly. You're trying

Re: [iText-questions] Reordering pdf tags

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 9:28, Yevgeniy Cherniak wrote: I have seen what it's possible to tag all the parts of pdf document text with numbers and to see this numbering in acrobat x pro. Now I want to know how do I define this ordering explicitly. Not only with code structuredcontent.java defined in 2^nd e

Re: [iText-questions] Why iText can not flatten new fields

2011-06-29 Thread 1T3XT BVBA
On 29/06/2011 1:55, José Carrizo wrote: Hello there, I would like to know why the code documentation of iText says "The fields added with |addAnnotation(PdfAnnotation, int)| will never be flattened". I need to do that, flatten a field that has been just created with iText, whats the reason

Re: [iText-questions] How to extract title / heading from document contents

2011-06-29 Thread 1T3XT BVBA
On 28/06/2011 18:27, Michael O'Donovan wrote: > I have the book and looked through chapter 15. However in the section > (15.3.2) about using PdfContentSteamProcessor the code samples only extract > raw text For instance in listing 15.24 using the getText() method of the RenderInfo class. This cla

[iText-questions] Tables and borders

2011-06-29 Thread hhn000
Hi, I'm using iTetSharp 5.0.6. While creating some tables for a document (actually a list of items formatted using a PDFPTable), I initially turned off the borders on the tables' DefaultCell, then turned it back on, for debugging purposes, and now they stay on even though I set the table's Defaul

[iText-questions] Merge extended reader pdf files fails keep it enabled reader use

2011-06-29 Thread Ron Machanian
Hi I posted here my problem with itextsharp and I really need your help http://stackoverflow.com/questions/6508022/itextsharp-merging-pdf-files- disables-extended-reader-permmissions-need-it-ena regards, Ron ---