Java Mailing List Archive

Home » Home (12/2007) » iText »

Re: [iText-questions] how to get formatting from pdf



abintoms wrote:
> if (tokenizer.getTokenType() == PRTokeniser.TK_STRING) {
> strbufe.append(tokenizer.getStringValue()}

You only look at the content of the String objects
in the Content Stream. You are ignoring all the other
operators and operands.

> I am able to get file as it was in the PDF except for the formatting.

Don't ignore the positioning operators and operands.
Read the PDF Reference Manual to find out what they mean.

> Its really urgent.

100 mandays is a very conservative guess of what you'd
need to get a more or less (not full proof) result.
It's not an assignment I would take...

This email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
iText-questions mailing list
Buy the iText book:
©2008 - Jax Systems, LLC, U.S.A.