Re: [iText-questions] IText - PDF/A-1A compliance

2011-09-01 Thread myworld.amol
Hello Damien, I got the same problem when i tried to generate PDF/A-1A compliant file using iText APIs. Also i read the specifications of PDF/A and did lots of searching for the same. Even i got the same errors which you have mentioned here. You need to do one thing to generate PDF/A-1A compliant f

Re: [iText-questions] Not able to input Chinese characters after clicking on a pre-populated read-only field.

2011-09-01 Thread 1T3XT BVBA
On 2/09/2011 7:00, Shikha Madhok wrote: > Also, is there a way to disable the clicking on a particular field The problem has an easy solution if it's OK for you to "flatten" the read-only fields. I'm not sure if that's in line with your requirements though. ---

Re: [iText-questions] Not able to input Chinese characters after clicking on a pre-populated read-only field.

2011-09-01 Thread Shikha Madhok
|> | From: | |> >| |Shikha Madhok

[iText-questions] Not able to input Chinese characters after clicking on a pre-populated read-only field.

2011-09-01 Thread Shikha Madhok
Hi, I have a PDF form in Chinese and have a requirement to prepopulate some of the fields and set them as read-only. The PDF form uses font STSong-Light, UniGB-UCS2-H. I have included the itext-asian.jar in the classpath for the same. I am able to prepulate the field and set it as read-only. Howe

Re: [iText-questions] Position of text on a page in existing PDF

2011-09-01 Thread Kevin Day
as pointed out, this *is* hard - but much of the hard work has been done already. You'll use this as a starting point: com.itextpdf.text.pdf.parser.PdfReaderContentParser Then pass in your own render listener (LocationTextExtractionStrategy would be a really, really good thing to start with). T

Re: [iText-questions] XMLWorker 1.1.0 for C# released

2011-09-01 Thread Balder VC
On 31/08/2011 12:55, Paulo Soares wrote: Find it at https://sourceforge.net/projects/itextsharp/files/xmlworker/. Paulo Nice! -- twitter redlab-log -- Special

Re: [iText-questions] IText - PDF/A-1A compliance

2011-09-01 Thread Mark Storer
You'll probably also need to buy the PDF/A ISO specification. The structure requirements are quite specific. You might start by finding a PDF/A-1a file and dissecting it in something like RUPS (free) or the "PDF Can Opener" Acrobat plugin (commercial). --Mark Storer Senior Software Engineer

Re: [iText-questions] Unexpected behavior while using Graphics2D

2011-09-01 Thread Mark Storer
It seems to me that the only way to fix this would be to share the parent's byte stream across all the child objects. Any child drawing to the byte stream would need to have its drawing commands wrapped in whatever clipping/etc was appropriate for that child. And you'd want to track which child d

Re: [iText-questions] LocationTextExtractionStrategy positioning problem and a little fix suggestion

2011-09-01 Thread Kevin Day
By the way, would it be possible to get a small, single page PDF that demonstrates the issue? I'd like to add this to our unit test suite. -- View this message in context: http://itext-general.2136553.n4.nabble.com/LocationTextExtractionStrategy-positioning-problem-and-a-little-fix-suggestion-tp

Re: [iText-questions] Position of text on a page in existing PDF

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 17:47, Alexis Pigeon wrote: > If your PDF file is tagged, that can be done. > If not, it'll get *really* difficult to achieve what you want to do, > if not impossible, due to the very nature of PDF. Really difficult = use iText's PDF parsing functionality and inspect what is returned

Re: [iText-questions] iText with LiveCycle Forms

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 17:18, ts wrote: > Hello, > I generate a pdf with LiveCycle Forms which one field is filled per > javasript. This file is saved as pdf. Now I want to read this file per iText > and save it in another pdf. When I then open the pdf with the reader the > place, where the field is filled p

Re: [iText-questions] Position of text on a page in existing PDF

2011-09-01 Thread Alexis Pigeon
Hi David, On 1 September 2011 16:13, wrote: > > Hi, > > I need to solve this problem: > > I have a PDF file containing some string. > I want to know where on the page the string is displayed. > I don't need exact position, just something like "the text starts at 35% of > the page vertically". >

Re: [iText-questions] How to implemet a TOC (Table of Content)

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 17:14, icaro rezende wrote: > Hi everyone, > I'm searching for a simple TOC solution, but i couldnt find tutorials > or posts that helps me on it. I just need to implement a new Page with > Chapters names following by their number page. OK, so we've established that you didn't read

Re: [iText-questions] Using eToken with secondary authentication format

2011-09-01 Thread mkl
Gervasio, Gervasio Amy wrote: > But now, you say *"using a good guess of the expected signature size"*... > and my question is: How can I estimate a good size for my signature? And > how can it impact in the resultant pdf? You seem to use adbe.pkcs7.sha1 format signatures generated using PdfPKCS7

Re: [iText-questions] LocationTextExtractionStrategy positioning problem and a little fix suggestion

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 17:29, Kevin Day wrote: I*really* appreciate it when someone takes the time to put together a post like this - thank you! +1 This was a very good bugfix! -- Special Offer -- Download ArcSight Logger for FRE

Re: [iText-questions] LocationTextExtractionStrategy positioning problem and a little fix suggestion

2011-09-01 Thread Kevin Day
this is: a) an excellent catch of a corner case that hadn't been previously considered b) an absolutely fantastic description of the problem - both at the low technical level, as well as "and here's what's special about the PDF that I'm working with that causes this corner case" c) a very nice, si

Re: [iText-questions] LocationTextExtractionStrategy positioning problem and a little fix suggestion

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 10:13, Михаил Ледин wrote: > if startLocation.Equals(endLocation) then orientationVector.Length > == 0 and orientationVector.Normalize() coordinates is NaN. Thank you! Your patch was applied to the Java version: http://itext.svn.sourceforge.net/viewvc/itext?view=revision&revision=4959

[iText-questions] How to implemet a TOC (Table of Content)

2011-09-01 Thread icaro rezende
Hi everyone, I'm searching for a simple TOC solution, but i couldnt find tutorials or posts that helps me on it. I just need to implement a new Page with Chapters names following by their number page. Do you guys know any material, link, tutorial that will be useful in this task? Thanks for attent

Re: [iText-questions] IText - PDF/A-1A compliance

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 15:00, Damien Tacheron wrote: > Do you know if it is possible to generate PDF/A-1A compliant pdf file > with IText You've read chapter 13, but please read on. Make sure you understand what is required for a PDF to be PDF/A-1A compliant. It requires that the PDF contains structure in

Re: [iText-questions] Using eToken with secondary authentication format

2011-09-01 Thread Gervasio Amy
Hello, first of all thanks so much Michael. Well, you're right, if I use an external hash and signature, it works fine. But now, you say *"using a good guess of the expected signature size"*... and my question is: How can I estimate a good size for my signature? And how can it impact in the resulta

[iText-questions] IText - PDF/A-1A compliance

2011-09-01 Thread Damien Tacheron
Hi, I evaluate IText for the need to produce PDF/A-1A compliant pdf files First, i generate a pdf based on an example supplied in "iText in Action 2nd Edition" chap 13, where i replace writer.setPDFXConformance(PdfWriter.* PDFA1B*); with writer.setPDFXConformance(PdfWriter.*PDFA1A*); After, i ve

[iText-questions] Position of text on a page in existing PDF

2011-09-01 Thread kep
Hi,   I need to solve this problem:   I have a PDF file containing some string. I want to know where on the page the string is displayed. I don't need exact position, just something like "the text starts at 35% of the page vertically". Only vertical postion matters to me, not horizontal. The goal

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 14:31, Andy Wu wrote: > The good news is that in this case I can reject the stationary and > request one without the annotations is supplied. +1 for your solution ;-) -- Special Offer -- Download ArcSight Logg

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread Andy Wu
The good news is that in this case I can reject the stationary and request one without the annotations is supplied. On 01/09/2011 08:01, 1T3XT BVBA wrote: > On 1/09/2011 13:43, Andy Wu wrote: >> I'm not responsible for creating the header/footer pdf. I'm merely >> responsible for the tool that pr

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 13:43, Andy Wu wrote: > I'm not responsible for creating the header/footer pdf. I'm merely > responsible for the tool that provides this ability. That's a pity. Now you'll have to check the stationery for annotations. If there are none, you can use the code you've been using so far. I

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread Andy Wu
On 01/09/2011 07:02, 1T3XT BVBA wrote: > On 1/09/2011 12:49, Andy Wu wrote: >> You're right, I only have the first edition but I'll be sure to pick up >> the 2nd edition now too. > I think it's explained in the first book too. You trying to talk me out of buying another copy? ;) > > I'd like to k

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 12:49, Andy Wu wrote: > You're right, I only have the first edition but I'll be sure to pick up > the 2nd edition now too. I think it's explained in the first book too. I'd like to know why you created the header as an annotation instead of as regular content. If you create the heade

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread Andy Wu
You're right, I only have the first edition but I'll be sure to pick up the 2nd edition now too. Thanks for your help. On 01/09/2011 06:02, 1T3XT BVBA wrote: > On 1/09/2011 11:37, Andy Wu wrote: >> However, the resultant PDF only contains the header, not the footer. > I've taken a closer look at

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 11:37, Andy Wu wrote: > However, the resultant PDF only contains the header, not the footer. I've taken a closer look at your header page, and I think you didn't read the book. As explained in the book, PdfImportedPage only copies the content stream. The header is a text annotation, n

Re: [iText-questions] XHTML to PDF rendering without iText-2.0.8

2011-09-01 Thread 1T3XT BVBA
On 1/09/2011 11:06, Herrero Moriana, Jose Antonio (ES - Huesca) wrote: Good morning, I would like to know if there is any way to convert HTML to PDF with iText-2.1.3 as I used to do with iText-2.0.8. None of the versions you mention are supported. HTML to PDF conversion has been rewritten.

Re: [iText-questions] Missing Content When Merging

2011-09-01 Thread Andy Wu
Thanks for the quick response. Let me try and be clearer. I want to add a header and footer to the following document: http://dl.dropbox.com/u/13080345/lorem.pdf The header/footer content is obtained from another PDF: http://dl.dropbox.com/u/13080345/-1733005_header.pdf So I'm using so using t

[iText-questions] XHTML to PDF rendering without iText-2.0.8

2011-09-01 Thread Herrero Moriana, Jose Antonio (ES - Huesca)
Good morning, I would like to know if there is any way to convert HTML to PDF with iText-2.1.3 as I used to do with iText-2.0.8. Thank you. Jose Antonio Herrero Moriana DXD Deloitte | Edif. Félix de Azara - Parque Tecnológico Walqa, , 22197 Huesca, España Tel: +34915145000 Ext: 037275 | Fax: +

[iText-questions] LocationTextExtractionStrategy positioning problem and a little fix suggestion

2011-09-01 Thread Михаил Ледин
Hi! I have this code: PdfReader reader = new PdfReader("example.pdf"); Console.Write(PdfTextExtractor.GetTextFromPage(reader, 1, new LocationTextExtractionStrategy())); LocationTextExtractionStrategy.cs has following code in TextChunk constructor: orientationVector = endLocation.Subt