[cairo] Poppler -> Cairo (svg) no text in output
Denis Kuzmenok
forward_ua at ukr.net
Mon Jan 20 11:43:44 PST 2014
Thanks for your response. It's not a browser issue, I'm investigating the SVG file itself and it only has images, not text parts. I thought there should be some font issues, but can't find information what packages to install or anything else to do with that?
Basically poppler lib sees text from pdf file, but when doing "poppler_page_render_for_printing(page, drawcontext)" I get only images, not a text.
--- Исходное сообщение ---
От кого: "suzuki toshiya" < mpsuzuki at hiroshima-u.ac.jp >
Дата: 20 января 2014, 01:54:45
Ahhh, maybe I found it. The background would be something like...
* Many PDF include embedded fonts which they are not installed into the system natively.
* Therefore, for truthful rendering onto SVG surface, searching "compatible font" from
the natiely installed font in the rendering system would not be good idea. On the other
hand, using the embedded font would be better.
* SVG has SVG font feature that SVG document could show the text by the font embedded in SVG.
* However, some web browsers (e.g. Firefox) do not support SVG font.
* As a result, the embedded font is (unfortunately) included as a collection of the reusable
graphics in SVG, and the text is shown as a serie of the graphics.
Regards,
mpsuzuki
On 01/20/2014 08:41 AM, suzuki toshiya wrote:
> Which browser do you use to display SVG data?
>
> # I think this question could be inappropriate in
> # cairo mailing list, but please let me continue
> # the discussion in here, until I find appropriate
> # list or forum to talk about...
>
> Regards,
> mpsuzuki
>
> On 01/20/2014 12:07 AM, Denis Kuzmenok wrote:
>> Hi there.
>>
>>
>> I have installed these versions:
>> Cairo 1.12.2
>> Poppler 0.24.5
>> librsvg 2.26.1
>> pdf2svg 0.2.2
>>
>> Cairo uses Freetype and Fontconfig as font backends. I tried with different PDF files.
>> pdftotext or pdftohtml shows text from pdf file, but if running with pdf2svg - output SVG file has only text as images (no text, only images in svg output file).
>> Is that the way it should work? I thought svg should output SVG with almost the same formatting, sizes and placement?
>>
>> Any suggestions?
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20140120/fbdf23e2/attachment.html>
More information about the cairo
mailing list