[pdftex] support for svg

Denis Pinsard depinsard06 at modulonet.fr
Sat Apr 2 23:33:29 CEST 2005



About PDF file with embedded SVG, Hans Hagen has written (in june 2004) :

> this is about the minimum needed
>
> \def\SVGimage#1#2#3% name width height
>  {\immediate\pdfobj stream file {#1}%
>   \immediate\pdfobj {<</Type /Filespec /F (#1) /EF <</F
> \the\pdflastobj\space0 R>> >>}%
>   \vbox to #3{\vss\hbox to #2{\pdfannot width #2 height #3
>     {/Type /Annot
>      /Subtype /SVG
>      /Resources <</Names[(#1) \the\pdflastobj\space0 R]>>
>      /StartResource (#1)
>      /T (#1)}\hss}}}>
>
> however, scaling is bugged in acrobat (windows version, i still have to
> test the mac):
>
> - smaller than natural size: ok
> - same as natural size: wrong scaling
> - using scaling while viewing (using magnifyer): no scaling
>
> so, in order to get it useable in documents, you have to wait for
> acrobat version 7 but at least it seems that svg will make it as embeded
> graphic format -)

This code works fine with acrobat reader 6.0 but don't work anymore with  
version 7.0.
A '?' within a little square appears instead of the SVG.

Is it possible to solve this problem ?

Denis Pinsard



More information about the pdftex mailing list