pdftocairo - Flag to disable text drawing
Submitted by Ryan Fox
Assigned to poppler-bugs
Created attachment 80975 Patch to add a flag to disable text drawing. Based on the code in the 0.23.2 release.
I needed to hack pdftocairo to allow me to disable the text drawing, and I thought it could be something other people might benefit from, so I'm presenting a tiny patch to add a flag for it.
Background: Cairo's SVG backend doesn't draw text as text; it creates shapes for each letter. (See bug 38516) I'm using the output from pdftocairo for the structure of a PDF, rather than the visual representation, so the actual text is important to me, as well as all of the shapes. I can get sufficient text information from
pdftohtml -xml for this. To prevent losing non-letter glyphs, I need to prevent the drawing of the text rather than just discarding all of the glyphs.
Attachment 80975, "Patch to add a flag to disable text drawing. Based on the code in the 0.23.2 release.":