Re: [iText-questions] Converting PDF to XML format

2013-12-02 Thread Larry Evans
On 12/02/13 11:56, Larry Evans wrote: > On 12/02/13 04:30, Neha Jain wrote: >> Hi Team, >> >> I have a requirement of converting a PDF to XML i.e contents of PDF to XML >> >> I have tried using TaggedPdfReaderToolbut I get the following exceptio

Re: [iText-questions] Converting PDF to XML format

2013-12-02 Thread Larry Evans
On 12/02/13 04:30, Neha Jain wrote: > Hi Team, > > I have a requirement of converting a PDF to XML i.e contents of PDF to XML > > I have tried using TaggedPdfReaderToolbut I get the following exception > > Exception in thread "main" _java.io.IOException_: No StructTreeRoot > found, this probably is

Re: [iText-questions] apparently garbage characters extracted from i1040.pdf page 41.

2013-09-24 Thread Larry Evans
On 09/24/13 13:54, Larry Evans wrote: > On 09/24/13 01:49, iText mailing list wrote: >> On 9/23/2013 10:41 PM, Larry Evans wrote: >>> Could the problem be the .jar downloaded from >>> https://svn.code.sf.net/p/itext/code >>> was built on a windows OS and the fon

Re: [iText-questions] apparently garbage characters extracted from i1040.pdf page 41.

2013-09-24 Thread Larry Evans
On 09/24/13 01:49, iText mailing list wrote: On 9/23/2013 10:41 PM, Larry Evans wrote: Could the problem be the .jar downloaded from https://svn.code.sf.net/p/itext/code was built on a windows OS and the font files are in a different place than on my ubuntu OS, and that's causing the pr

Re: [iText-questions] apparently garbage characters extracted from i1040.pdf page 41.

2013-09-24 Thread Larry Evans
On 09/24/13 01:51, iText mailing list wrote: > On 9/24/2013 2:22 AM, Larry Evans wrote: >> >> I've also browsed the _IText in Action, 2nd ed._, Chapter 12, >> "Chosing the right font" > > Note that extracting text from PDFs doesn't require you to

Re: [iText-questions] apparently garbage characters extracted from i1040.pdf page 41.

2013-09-23 Thread Larry Evans
On 09/22/13 15:21, Bob Babcock wrote: Larry Evans wrote: I'm trying to extract the characters from page 41 of: www.irs.gov/pub/irs-pdf/i1040.pdf‎ The above link doesn't work, but I have a copy of this pdf from doing my taxes. If I try to extract text from page 41 with Adobe Reader

Re: [iText-questions] [SPAM] Re: apparently garbage characters extracted from i1040.pdf page 41.

2013-09-23 Thread Larry Evans
On 09/23/13 13:49, Larry Evans wrote: > On 09/22/13 07:35, iText mailing list wrote: >> On 9/22/2013 12:58 PM, mkl wrote: >>> Or maybe some old iText version? >> That would explain much. >> > Thanks to all for their help; however, > I just did an `svn update`

Re: [iText-questions] [SPAM] Re: apparently garbage characters extracted from i1040.pdf page 41.

2013-09-23 Thread Larry Evans
On 09/22/13 07:35, iText mailing list wrote: On 9/22/2013 12:58 PM, mkl wrote: Or maybe some old iText version? That would explain much. Thanks to all for their help; however, I just did an `svn update`, and then: ~/prog_dev/itext/svn/book/lib $ svn info Path: . URL: https://svn.code.sf.net/

[iText-questions] apparently garbage characters extracted from i1040.pdf page 41.

2013-09-21 Thread Larry Evans
I'm trying to extract the characters from page 41 of: www.irs.gov/pub/irs-pdf/i1040.pdf‎ However, using the attached, ExtractPageContentSorted.java, and the member function, at_page, where: reader was produced from: www.irs.gov/pub/irs-pdf/i1040.pdf‎ and pageNum was: 41 I only mana

Re: [iText-questions] test if form field is READ_ONLY

2013-01-31 Thread Larry Evans
On 01/30/13 08:27, Larry Evans wrote: > I'm using the following code: > > > String selectedFile ="some_source_pdf_file.pdf"; > String file ="some_target_pdf_file.pdf"; > PdfReader reader = new PdfReader(selectedFile); &

[iText-questions] test if form field is READ_ONLY

2013-01-30 Thread Larry Evans
I'm using the following code: String selectedFile ="some_source_pdf_file.pdf"; String file ="some_target_pdf_file.pdf"; PdfReader reader = new PdfReader(selectedFile); PdfStamper stamp = new PdfStamper(reader, new FileOutputStream(file)); AcroFiel

Re: [iText-questions] Howto get PdfFormField from AcroFields and field name

2012-03-24 Thread Larry Evans
On 03/19/12 06:32, iText Info wrote: > Op 19/03/2012 12:21, Larry Evans schreef: >> I have studied the TextFieldActions example which you cited: >> >>http://itextpdf.com/examples/iia.php?id=238 >> >> In particular, in that example, there's: >> >&

Re: [iText-questions] how to use rups on linux

2012-03-23 Thread Larry Evans
On 03/22/12 08:35, Balder VC wrote: > Sorry for the late reply > > just doing > > mvn package > > should be enough, this creates the jars, the jar-with-dependencies is > created together with the normal build. > > You should make sure you checked out a tagged release (like > https://itextrups.

Re: [iText-questions] How to fill a general writable PDF file

2012-03-23 Thread Larry Evans
Canada > 219 Laurier Avenue West Ottawa ON K1A 1L1 | 219 avenue Laurier Ouest Ottawa > ON K1A 1L1 > Office | Bureau CAN B240b > xun-an.zh...@cic.gc.ca > Telephone | Téléphone 613-948-2467 > Facsimile | Télécopieur 613-957-6279 > Government of Canada | Gouvernement du Can

Re: [iText-questions] How to fill a general writable PDF file

2012-03-22 Thread Larry Evans
On 03/22/12 14:49, Zhang.Xun-An wrote: > Actually, I updated: > http://itextpdf.com/examples/iia.php?id=157 > by changing the > form.setField("text_1", " "); > form.setField("text_2", " "); > ... > with > form.setField(key,""); > > The 'k

Re: [iText-questions] How to fill a general writable PDF file

2012-03-22 Thread Larry Evans
On 03/22/12 14:17, Zhang.Xun-An wrote: > Here is a useful example. I have solved my problem by reference the example. > > Thanks all for the helps. > >> 2. You have an interactive form that is based on AcroForm technology. >> >> The PDF created with Open Office as described in section 6.3.5 is su

Re: [iText-questions] How to fill a general writable PDF file

2012-03-22 Thread Larry Evans
On 03/22/12 11:59, Zhang.Xun-An wrote: > Hi Paulo, > > Thank you for response so fast. > > I don't know the inside of a general PDF file. What I have are some general > editable pdf files. They are not created in Java with 'PdfPCell' or > 'pdfField'. Is it possible we fill in values with 'Acro

Re: [iText-questions] Howto get PdfFormField from AcroFields and field name

2012-03-19 Thread Larry Evans
On 03/19/12 02:39, iText Info wrote: > Op 18/03/2012 20:36, Larry Evans schreef: >> However, I still can't figure out how to add the /AA: Dictionary. > I didn't follow the complete converstation, but I see that you're > talking about Additional Actions. Did yo

Re: [iText-questions] Howto get PdfFormField from AcroFields and field name

2012-03-18 Thread Larry Evans
d (which was slightly modified from the previous one); however, the resulting rups diagram showed no /AA: Dictionary and running the code produced no errors that might have helped me diagnose what I might be doing wrong. Any further suggestions would be appreciated. -kind regards, Larry > > -

Re: [iText-questions] how to use rups on linux

2012-03-17 Thread Larry Evans
On 03/15/12 13:26, Balder VC wrote: > I have the same issue on ubuntu with a sun JDK 6. > > But when I build the jar-with-dependencies and run that, it runs without > a problem. (this is build when you do the maven build) > > Perhaps it's because there are more required libraries than only itextp

Re: [iText-questions] how to use rups on linux

2012-03-17 Thread Larry Evans
On 03/17/12 09:28, Larry Evans wrote: > On 03/15/12 13:26, Balder VC wrote: >> I have the same issue on ubuntu with a sun JDK 6. >> >> But when I build the jar-with-dependencies and run that, it runs without >> a problem. (this is build when you do the maven build) >&

Re: [iText-questions] how to use rups on linux

2012-03-17 Thread Larry Evans
On 03/15/12 13:26, Balder VC wrote: > I have the same issue on ubuntu with a sun JDK 6. > > But when I build the jar-with-dependencies and run that, it runs without > a problem. (this is build when you do the maven build) > > Perhaps it's because there are more required libraries than only itextp

Re: [iText-questions] how to use rups on linux

2012-03-15 Thread Larry Evans
On 03/15/12 06:11, Larry Evans wrote: [snip] > after which, the error about IIOP disappeared; however, some other > errors remained: > > ~/prog_dev/itext/rups/1.0.1 $ java -jar itext-rups-1.0.1.jar > Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundE

Re: [iText-questions] how to use rups on linux

2012-03-15 Thread Larry Evans
On 03/13/12 09:50, Larry Evans wrote: > On 03/13/12 05:31, Jeroen Nouws wrote: >> what version of java are you using? the official Oracle version or an >> openJDK implementation? Try with an oracle java and see if you still >> have it. >> > [snip] > $ java

Re: [iText-questions] Howto get PdfFormField from AcroFields and field name

2012-03-14 Thread Larry Evans
On 03/14/12 11:53, Leonard Rosenthol wrote: > I would start by doing it manually with Adobe Acrobat and then looking at the > output PDF in RUPS. Then work backwards to the code... > > -Original Message----- > From: Larry Evans [mailto:cppljev...@suddenlink.net] > Sent: W

Re: [iText-questions] Howto get PdfFormField from AcroFields and field name

2012-03-14 Thread Larry Evans
On 03/04/12 12:43, Larry Evans wrote: > On 03/04/12 10:32, Larry Evans wrote: > [snip] >> However, what I need is to get a PdfFormField from and AcroFields >> instance and a field name. I then need to use that PdfFormField >> to specify an action for the field. >>

Re: [iText-questions] irs taxform spreadsheet possible?

2012-03-14 Thread Larry Evans
On 03/12/12 13:39, Larry Evans wrote: > On 03/03/12 10:26, Larry Evans wrote: >> What would be a good way of using itext to modify: >> >> http://www.irs.gov/pub/irs-pdf/f1040.pdf >> >> so that it behaves somewhat like a spreadsheet. >> What I mean i

Re: [iText-questions] how to use rups on linux

2012-03-13 Thread Larry Evans
On 03/13/12 05:31, Jeroen Nouws wrote: > what version of java are you using? the official Oracle version or an > openJDK implementation? Try with an oracle java and see if you still > have it. > [snip] $ java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.10) (6b20-1.

Re: [iText-questions] how to use rups on linux

2012-03-13 Thread Larry Evans
On 03/13/12 03:40, Jeroen Nouws wrote: > Hi, > > just unzip the jar file and run it with > "java -jar itext-rups-1.0.1.jar" > > this works for me on linux mint 12.1 > > Regards > > Jeroen > [snip] Ah! Thanks Jeroen. However, I still got: --{cut here $ java -jar itext-rups-1.0.1.ja

[iText-questions] how to use rups on linux

2012-03-12 Thread Larry Evans
from_link_on: http://sourceforge.net/projects/itextrups/files/ downloaded: http://voxel.dl.sourceforge.net/project/itextrups/itextrups-1.0.1.zip Then unzipped it and looked at the class files and source files. I guessed that looking at the Rups.java file and seeing: // main method

Re: [iText-questions] irs taxform spreadsheet possible?

2012-03-12 Thread Larry Evans
On 03/03/12 10:26, Larry Evans wrote: > What would be a good way of using itext to modify: > > http://www.irs.gov/pub/irs-pdf/f1040.pdf > > so that it behaves somewhat like a spreadsheet. > What I mean is that all form fields are divided into > modifiable or readonly base

Re: [iText-questions] irs taxform spreadsheet possible?

2012-03-07 Thread Larry Evans
On 03/03/12 10:26, Larry Evans wrote: > What would be a good way of using itext to modify: > > http://www.irs.gov/pub/irs-pdf/f1040.pdf > > so that it behaves somewhat like a spreadsheet. > What I mean is that all form fields are divided into > modifiable or readonly base

Re: [iText-questions] Howto get PdfFormField from AcroFields and field name

2012-03-04 Thread Larry Evans
On 03/04/12 10:32, Larry Evans wrote: [snip] > However, what I need is to get a PdfFormField from and AcroFields > instance and a field name. I then need to use that PdfFormField > to specify an action for the field. > > The AcroFields class does have a method: > > http://a

[iText-questions] Howto get PdfFormField from AcroFields and field name

2012-03-04 Thread Larry Evans
The TextFieldActions example: http://itextpdf.com/examples/iia.php?id=159 shows how to create a TextField with a given field name, and then get a PdfFormField from that, and then setAdditionalActions on that PdfFormField. The FormInformation example: http://itextpdf.com/examples/iia.php?id=

[iText-questions] irs taxform spreadsheet possible?

2012-03-03 Thread Larry Evans
What would be a good way of using itext to modify: http://www.irs.gov/pub/irs-pdf/f1040.pdf so that it behaves somewhat like a spreadsheet. What I mean is that all form fields are divided into modifiable or readonly based upon whether or not the value in the field depends on other fields. I ha

Re: [iText-questions] Portability of BaseFont.createFont (was Re: Purpose of book/{build, examples}.xml?

2011-05-02 Thread Larry Evans
On 05/02/11 09:42, Larry Evans wrote: > On 05/02/11 01:15, 1T3XT BVBA wrote: >> Op 1/05/2011 19:28, Larry Evans schreef: >>> Did an `svn update` then `ant execute` which got much fewer errors, >>> but still got some suggesting a windows path expression (using c:) &g

Re: [iText-questions] Portability of BaseFont.createFont (was Re:Purpose of book/{build, examples}.xml?

2011-05-02 Thread Larry Evans
On 05/02/11 13:20, Mark Storer wrote: >> IIUC, then instead of the change I made, I could have make >> this change (to book/src/part1/chapter02/DirectorPhrases2.java): >> >> timesbd = FontFactory.getFont("timesbd"); >> >> times = FontFactory.getFont("times"); >> >> Is that right? > > If you'v

Re: [iText-questions] Portability of BaseFont.createFont (was Re:Purpose of book/{build, examples}.xml?

2011-05-02 Thread Larry Evans
Software Engineer > Cardiff.com Thanks Mark. IIUC, then instead of the change I made, I could have make this change (to book/src/part1/chapter02/DirectorPhrases2.java): timesbd = FontFactory.getFont("timesbd"); times = FontFactory.getFont("times"); Is that right? [s

[iText-questions] Portability of BaseFont.createFont (was Re: Purpose of book/{build, examples}.xml?

2011-05-02 Thread Larry Evans
On 05/02/11 01:15, 1T3XT BVBA wrote: > Op 1/05/2011 19:28, Larry Evans schreef: >> Did an `svn update` then `ant execute` which got much fewer errors, >> but still got some suggesting a windows path expression (using c:) >> instaad of something more generic was used: > T

Re: [iText-questions] Purpose of book/{build,examples}.xml?

2011-05-01 Thread Larry Evans
On 05/01/11 09:55, 1T3XT BVBA wrote: > Op 1/05/2011 16:10, Larry Evans schreef: >> This instruction would be nice to see in a readme.txt file in this >> directory (something like the main/itext/readme.txt file). > > Maybe, but those ANT files were mainly meant for person

Re: [iText-questions] Purpose of book/{build,examples}.xml?

2011-05-01 Thread Larry Evans
On 05/01/11 04:49, 1T3XT BVBA wrote: > Op 30/04/2011 0:37, Larry Evans schreef: >> ant -f examples.xml part1.chapter01 > I never do it that way. > I always do: > > ant execute > > execute is a targer in build.xml > This works for me. > This instruction would be

Re: [iText-questions] Purpose of book/{build,examples}.xml?

2011-04-29 Thread Larry Evans
On 04/28/11 03:50, Balder wrote: [snip] > The old script should still work for the book. > The pom.xml only builds a war, it does not execute the examples. You can > execute the examples with maven ( see > http://itext-general.2136553.n4.nabble.com/Where-to-find-jar-files-for-iText-examples-tp34664

[iText-questions] Purpose of book/{build,examples}.xml?

2011-04-27 Thread Larry Evans
The following co: ~/prog_dev/itext $ svn co https://itext.svn.sourceforge.net/svnroot/itext/book book produces output which includes: Abook/pom.xml Abook/examples.xml Abook/build.xml After which, I did this: mvn clean install which, accordig to maven docs, used the pom.xml

Re: [iText-questions] compile FestivalCalendar2.java gives package *.richmedia does not exist

2011-04-26 Thread Larry Evans
On 04/26/11 02:39, Balder wrote: > On 26/04/2011 1:59, Larry Evans wrote: >> After checkouts: >> >> svn co https://itext.svn.sourceforge.net/svnroot/itext/trunk main >> svn co https://itext.svn.sourceforge.net/svnroot/itext/book book >> >> to: >>

[iText-questions] compile FestivalCalendar2.java gives package *.richmedia does not exist

2011-04-25 Thread Larry Evans
After checkouts: svn co https://itext.svn.sourceforge.net/svnroot/itext/trunk main svn co https://itext.svn.sourceforge.net/svnroot/itext/book book to: ~/prog_dev/itext/ and installs on all the following poms: ~/prog_dev/itext/main $ find . -name pom.xml ./itext/pom.xml ./xtra/pom.xml ./