On Donnerstag, 30. August 2018 14:06:30 CEST [email protected] wrote: > Hello all, > > I have PDF documents created from a CAD-System (Siemens NX), containing > rotated text. Some text is defined with aspect ratio parameter > (horizontal scaling). There is also vertical text. > Pdftohtml (with –hidden parameter) extracts text and position, but not > rotation angle and stretching factor. Would it be possible to provide the > rotation angle, vertical attribute and stretching factor? > <text width="26.916206" height="19.504377" left="298.557300" > top="173.260625" font="0" angle="32.10" aspectratio="0.6" > vertical="false">70.47</text>
It depends: The PDF is just one big bitmap with hidden text (for selection or automation). The vertical text is not included as text at all. The aspect ratio 0.6 text uses a different font with the corresponding AR, there is no highlevel information available about the fact. The rotation is available as a transform matrix, which could be converted back to an angle. Of course this needs someone to implement it ... Kind regards, Stefan _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
