1T3XT info wrote:
 
> Please throw away your code and wish you had never posted it.
> The javadoc API isn't clear about the use of toPdf() and no
> documentation mentions the toPdf() method: not the tutorial,
> not the book. There's a very good reason for this:
> YOU ARE NOT SUPPOSED TO USE THE toPdf() METHODS!!!

HOW AM I SUPPOSED TO KNOW NOT TO USE IT!!!! A little bit
of empathy for the people who are using this tool for the first time. 
At least, the javadoc could have more explanation about the method
according to the context.

You seem to have more experience than me with PDF files, but you 
don't answer my question.


> I have no idea where to begin explaining why what you are doing
> is very, very wrong. It's a miracle that Acrobat 8 shows something.
> Your blasphemous code sample looks like you want to take some PDF
> syntax from one file and copy it to another file. But what about
> the resource dictionaries? What about shared objects such as images,
> fonts,...?  What about the Cross-reference table?

Miracle, blasphemous...Looks like I have meddled with the primal
forces of iText, and I will atone!

> Do you have any idea what a PDF file looks like on the inside?
> Have you tried reading the iText tutorial? Did you read "iText
> in Action"? Have you consulted the PDF Reference?
> 
> If you are not familiar with concepts such as "resource dictionary"
> or "cross-reference table," nobody on this list will be able to help
> you. The only advice you'll get is to read the PDF Reference (it
> can be downloaded for free).

I looked the examples in the tutorials and the book, but as I said,
I don't want to cut the PDF according to pages but according to offsets
and lengths.
One thing I forgot to mention in my first message is that the PDF file that 
I want to split is already a concatenation of several PDF files. So I just
want 
to get the pieces back. 
I don't think I need to know about table, resource dictionary, etc. to do
that.
As I mentioned at the beginning, you don't answer my question. 

Hope someone else could help me.
-- 
View this message in context: 
http://www.nabble.com/Split-a-PDF-file-according-to-offset-and-length-tp15980301p15999755.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to