On 20 September 2011 04:23, Ivan Voras <[email protected]> wrote:
> I'm trying to write a manual and I'd like it to end up in both HTML
> and PDF. The problem is that bitmap graphics look awful when included
> in PDF so I'd like to use a vector format. I tried using SVG but
> neither the current web browsers nor the PDF toolchain support it -
> which is very unfortunate.
>
> Any suggestions on how to use vector graphics? Since browsers don't
> support anything else, this would probably mean that two formats are
> specified - PNG and something else for the same image - is this even
> possible?
>

Hi Ivan,

Pretty much all browsers support svg.

You can include SVG in HTML using passthrough, eg

+++<object data="drawing.svg" type="image/svg+xml"></object>+++

The FOP pdf toolchain supports svg.

You can include SVG in docbook for FOP using passthrough, eg

++++++++++++++
<mediaobject  id="MyDrawing">
  <imageobject>
    <imagedata  format="SVG"  fileref="drawing.svg"/>
  </imageobject>
</mediaobject>
++++++++++++++

You can use conditional macros to decide which to include in the
output.  If you are doing it a lot then it is probably best to define
yourself a macro for it.

Cheers
Lex


> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/asciidoc?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to