On Sep 20, 12:12 am, Lex Trotman <[email protected]> wrote: > 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.
Nope. I can send you the document so you can see for yourself. By "support" I mean used as "<img src=xxx.svg>". > You can include SVG in HTML using passthrough, eg > > +++<object data="drawing.svg" type="image/svg+xml"></object>+++ If I must do it that way, I'd rather not use asciidoc at all :) > The FOP pdf toolchain supports svg. ... but the "normal" PDF processor (whatever it is) produces much better looking documents for me. > 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. This would be the approach with both a bitmap image and a vector image and switching between them? So far, I'm using the "image::" macro and it produces nice looking image captions - could I retain that? -- 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.
