Re: How to make SVG Rasterizer embed text in PDFs?

Luis Bernardo <[email protected]> Tue, 24 Jun 2014 23:57:49 +0100
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
Can you check whether the resulting PDF just includes an image of the 
SVG (or maybe an image per text segment). I would expect the rasterizer 
to do that.

You can achieve what you want using FOP. Then you will get text. There 
are some samples in examples/fo/svg of the FOP source. With the current 
FOP trunk you can even configure the fonts used in the SVG text so that 
they are used instead of letting AWT map them to some system font.

On 6/24/14, 11:16 PM, John Hewson wrote:
> Hi All,
>
> IÂ’m using the SVG Rasterizer to produce PDF files, from SVG files which
> contain <text> elements. However, the transcoded PDFs do not contain
> embedded text, so theyÂ’re not searchable. I can see the outlines of the
> text, but I canÂ’t select it or copy and paste it in Acrobat.
>
> How can I produce a PDF with proper text in it?
>
> The input IÂ’m using is just a test file from:
> http://xmlgraphics.apache.org/fop/dev/svg/text.svg
>
> IÂ’m using the latest Batik 1.8pre from the trunk and Oracle 
> JVM 24.51-b03 on
> OS X 10.9.3
>
> Thanks
>
> -- John
>