[poppler] Rotated text

Albert Astals Cid aacid at kde.org
Mon Jul 28 14:53:11 PDT 2014


El Dilluns, 28 de juliol de 2014, a les 17:20:47, Peter Waller va escriure:
> Hi All,
> 
> I've attached a small PDF which has rotated text on it. I generated this
> using inkscape. If I reimport the file inkscape recognizes the rotated text
> as text.
> 
> Evince can't select the text which is rotated.
> 
> Also, the rotated text doesn't show up in the glib API through
> `poppler_page_get_text`, which is what I need for a project where I am
> obtaining data from PDFs.
> 
> Is there any chance we could either make rotated text appear in the
> `get_text` API or provide an API to obtain such text?
> 
> I'm willing to write patches. Having read through TextOutputDev though I
> can't see immediately why rotated text isn't showing up in the output. So
> advice is welcome.

pdftotext shows all the text (even if obviously totally wrong) so it must be 
getting lost in the TextOutputDev -> glib conversion?

Cheers,
  Albert

> My strategy once I've figured out why it doesn't show up in `get_text`
> would be to add rotation as a property to PopplerTextAttributes, if that is
> acceptable.
> 
> Regards,
> 
> - Peter



More information about the poppler mailing list