How to generate raw SVG output without HTTP headers?

I use Image_Graphviz library to dynamically generate SVG output with PHP. I need this SVG to be part of an existing HTML document. But methods image() and fetch() both send HTTP headers. I just need the raw SVG part generated into DIV element. How to make such a raw SVG output without HTTP headers (!DOCTYPE ...) ?

I don't know anything about

I don't know anything about Image_Graphviz, but the SVG renderers in Graphviz always produce prologues of a fixed number of lines (3 lines with -Tsvg, 1 line with -Tsvg:cairo). If you are using a UNIX-like environment, you can use the tail command drop these lines. For example,

  dot -Tsvg abc.gv | tail +4

Recent comments