Re: Poppler -> Cairo (svg) no text in output

suzuki toshiya <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
If I have to work with this issue by myself,
maybe, I will work on Cairo's SVG surface to
add an option to emit the glyph outline images
as the SVG font, in next, I will work on Poppler
to add an option for Cairo output device to
control the option.

Another option might be working with pdftohtml
to include non-text SVG graphic as a background
image beyond transparent text content.

Regards,
mpsuzuki

Denis Kuzmenok wrote:
> 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" < [email protected] > 
> : 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?
>>>
>>>
> 
>  

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.