New attempt :)
PdfReader inputPDF = new PdfReader(filename);
inputPDF.consolidateNamedDestinations();
ListHashMaplt;String,Object bookmarks =
SimpleBookmark.getBookmark(inputPDF);
[...]
for (HashMapString,Object bookmark: bookmarks) {
String title =
Don't use a PDF as a template this way.
Either use a form or do the replacement in some other format and then convert.
From: Peter van Raamsdonk peet...@hotmail.commailto:peet...@hotmail.com
Reply-To: Post here
itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net
I need to extract cell contents from a table present in the pdf file.please give some suggestions and code snippets for this.
Thanks in advance.
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged
Hello all,
the registrations for the iText Summit 2012 are now open:
http://itextpdf.com/summit.php
The ideal way to get an update on what's new in iText, and
to meet some of the people who are active on this mailing-list.
best regards,
Bruno
This is next to impossible. By rendering to PDF usually all structure
information is lost (unless marked).
A table in PDF is a collection of lines and text, maybe images also.
You could apply some heuristics if the table characteristics are fairly static,
everything else is hara-kiri.
Kind
http://www.foolabs.com/xpdf/download.html
I have used pdftotext like so:
pdftotext -layout -x 0 -y 745 -W 130 -H 18 test.pdf -
it's an amazing tool and has saved me a few times when I needed to
inspect the actual PDF and extract a small amount of consistently
positioned textlike on