You REALLY need to grab a copy of the PDF standard (ISO 32000-1:2008) before you proceed any further!!! That will explain all the various tokens, what they means and how to use them...
Leonard On 7/20/11 9:18 AM, "Petter Brox" <pb...@broxfilms.com> wrote: >OK, I'll try to answer my own question. > >I've been looking into the structure of PDFs while playing around with >the "InspectPageContent" example from chapter 15. Font size, position, >etc. seems to be defined by a group of tokens like "Tf 12 0 0 12", where >"12" defines font size (width and height, I suppose. No clue about the >zeros...). If the text is vertical, the same group would look like this: >"Tf 0 12 -12 0". I've also found one PDF where "Tf" is substituted by >"BT". > >I've made a small script where I use PRTokeniser to go through the tokens >of each page, and where it find the right chain of tokens, it rotates the >page using the example from chapter 13. > >Is this the right approach? It works perfect (so far...), but I don't >know how reliable it is. Am I reinventing the wheel? > >Thanks, >Pedro >-------------- >-------------------------------------------------------------------------- >---- >10 Tips for Better Web Security >Learn 10 ways to better secure your business today. Topics covered >include: >Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, >security Microsoft Exchange, secure Instant Messaging, and much more. >http://www.accelacomm.com/jaw/sfnl/114/51426210/ >_______________________________________________ >iText-questions mailing list >iText-questions@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/itext-questions > >iText(R) is a registered trademark of 1T3XT BVBA. >Many questions posted to this list can (and will) be answered with a >reference to the iText book: http://www.itextpdf.com/book/ >Please check the keywords list before you ask for examples: >http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php