Re: [iText-questions] formatting

2011-06-28 Thread Mark Storer
Ah. Completely wrong formatting. Appologies. In general, the formatting script can do what you want. I haven't used the "built in" formatters myself, mostly because they're not documented anywhere and therefore Subject To Change Without Notice. I did notice that there's a corresponding keyst

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

2011-06-28 Thread Michael O'Donovan
Thanks, 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 and then ordered raw text. The document talks about extracting fonts but doesn't talk about which class will help me achieve this.

Re: [iText-questions] iText: how to remove the layer (watermark)?

2011-06-28 Thread 1T3XT BVBA
Hello, short note to inform the list that I was able to write code that enables you to remove the content of OCG-layers from a PDF. This code needs further testing and it will be part of iText-tk, an addon for iText that is available for iText Software customers (upon demand). On 21/06/2011 18:

Re: [iText-questions] Opaque box around dynamic watermark on certain documents

2011-06-28 Thread Paulo Soares
As the problem looks associated with transparency you may try setRgbTransparencyBlending(). Paulo From: Stu Gowdy [mailto:stugo...@gmail.com] Sent: Tuesday, June 28, 2011 3:11 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Opaque box

Re: [iText-questions] Opaque box around dynamic watermark on certain documents

2011-06-28 Thread Stu Gowdy
Thanks for the quick response. Unfortunately, at the moment I can't post a link to any of the specific documents that are having this issue because they contain sensitive information. I will try to get a test document with no sensitive info. In the meantime, if there are any possible workarounds I

Re: [iText-questions] Opaque box around dynamic watermark on certain documents

2011-06-28 Thread 1T3XT BVBA
On 28/06/2011 15:42, Stu Gowdy wrote: > I am inclined to believe it is some weirdness with the PDF file I am > reading in. I am too, but as we don't have access to that PDF, we don't have any idea what is happening. -- A

[iText-questions] Opaque box around dynamic watermark on certain documents

2011-06-28 Thread Stu Gowdy
Hi all, For the past few days, I've been dealing with a curious problem with a project I'm working on. I am simply trying to add a dynamic watermark to an existing PDF document by adding a PdfTemplate to a PdfContentByte instance. It has worked fine for all of the documents I've used it with excep

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

2011-06-28 Thread Leonard Rosenthol
Here's the deal: The property uses an undefined namespace prefix (xmp instead of xap), hence the XMP metadata cannot be parsed and Preflight claims that the XMP Metadata are missing. From: stefanu mailto:stefanu...@gmail.com>> Reply-To: Post here mailto:itext-questions@lists.sourceforge.net>

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

2011-06-28 Thread Leonard Rosenthol
Well, you should! Or at least you should let the producer know they are doing it wrong. (and it's NOT a tip – it's clearly stipulated in the PDF/A standard that what is done here is WRONG!) Leonard Rosenthol Project Leader, ISO 19005 (PDF/A) From: stefanu mailto:stefanu...@gmail.com>> Reply-T

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

2011-06-28 Thread stefanu
Let me check again. I was playing with different parameters and I may have messed up the files. Stefan. On Tue, Jun 28, 2011 at 3:08 PM, 1T3XT BVBA wrote: > On 28/06/2011 14:01, stefanu wrote: > > I think so. > The source code looks OK (with append = true), but when I look at > picture_signed.p

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

2011-06-28 Thread 1T3XT BVBA
On 28/06/2011 14:01, stefanu wrote: > I think so. The source code looks OK (with append = true), but when I look at picture_signed.pdf I only see one occurrence of %%EOF which tells me your PDF isn't created with the source code you provided. -

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

2011-06-28 Thread stefanu
Thanks for the tip, but unfortunately I have no control on how the PDF is produced... Best regards, Stefan. On Tue, Jun 28, 2011 at 2:03 PM, Leonard Rosenthol wrote: > I am investigating why Acrobat thinks the file is correct, but Preflight > does not. > > However, in the meantime, I want to poi

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

2011-06-28 Thread stefanu
I think so. I've been using this : stamper = PdfStamper.createSignature( new PdfReader( inputFile.getAbsolutePath(), password.getBytes()), new FileOutputStream(outputFile.getAbsoluteFile()), '\0', null, true); Best regards, Stefan. On Tue, Jun 28, 20

Re: [iText-questions] (no subject)

2011-06-28 Thread 1T3XT BVBA
On 28/06/2011 13:12, Yevgeniy Cherniak wrote: Hello iText Developers Group. Is any way to define acroform fields actions without javascript? If yes what they are? You can add all kinds of actions to AcroForm fields, that don't involve JavaScript. Submit and Reset actions are the most obvio

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

2011-06-28 Thread 1T3XT BVBA
On 28/06/2011 12:06, stefanu wrote: > Here are the files. Apparently all checks for compliance on the signed > file show the same errors; on the other hand, I cannot alter in any > way the input file, so all I can do is tweak the parameters of the > signing process, if possible. There's certainl

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

2011-06-28 Thread Leonard Rosenthol
I am investigating why Acrobat thinks the file is correct, but Preflight does not. However, in the meantime, I want to point out that this file should NOT be marked as PDF/A-1a compliant as it does NOT contain any text NOR is the image properly tagged. It should be PDF/A-1b. Leonard From: st

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

2011-06-28 Thread 1T3XT BVBA
On 28/06/2011 10:30, mkl wrote: > Which version exactly? That's shown in the metadata. The producer is "iText® 5.1.1 ©2000-2011 1T3XT BVBA". However: I would have expected "PDF Export 8.3.0 modified by iText® 5.1.1 ©2000-2011 1T3XT BVBA". Strange.

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

2011-06-28 Thread mkl
Stefan, stefanu wrote: > > I am currently evaluating the possibility to sign PDF/A with iText, using > the free release. Which version exactly? (BTW, all the publicly available iText versions are for free use as long as you adhere to the respective license restrictions.) stefanu wrote: > > I

Re: [iText-questions] (no subject)

2011-06-28 Thread 1T3XT BVBA
On 28/06/2011 9:30, Yevgeniy Cherniak wrote: Hello iText group! This is the screen from last Adobe Acrobat X Pro. How can I implement these formatting options with aid of iText? I'd program these in JavaScript, or check if functions like AFDate_Format are available. This works for me: f