http://qs321.pair.com?node_id=1211150


in reply to Re^3: Build a PDF book index
in thread Build a PDF book index

You're welcome!

Please note: The -xml switch gives you also the font-number and text- position in case you need to adjust characters like described.

I had to do this in the past.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^5: Build a PDF book index
by markong (Monk) on Mar 18, 2018 at 23:23 UTC

    I am curious to what are you referring to. Are you referring to the content of the XML file output-ed ? e.g.:

    <text top="78" left="108" width="540" height="21" font="3">The develop +er, on the other hand, feels like hes interrupted several times a da +y for</text>
    Or are you talking about some cli option to give to the command? In this case, I don't see anything related (pdftohtml version 0.24.3).
      > Are you referring to the content of the XML file output-ed

      yes, this includes

      • fontnumber font="3" some fonts may need special translations
      • box geometry top="78" left="108" width="540" height="21" if you want to exclude special areas (footnotes, pagenumber, ...)

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Wikisyntax for the Monastery