I have a pretty general question.
I have a report that is automatically created from HTML and Javascript and is output as a PDF. I'm using JavaScript because it's the best and easiest way I've found to generate the graphs I want.
So I render all the graphs in HTML documents and then use a tool called wkhtmltopdf
to render the a PDF out of all the pages.
Now the problem is that the type produced by that tool absolutely sucks.
What I want to do is render the JavaScript graphs, which renders as a <svg ..></svg>
tag, inside a PDF document that has it's layout and text produced by some variation of TeX.
Is this at all possible by any means?
pgfplots
and/ortikz
for drawing especially if you want tight integration with LaTeX. There should be numerous example here that will get you started, but without seeing an example of what your graph looks like I don't know which question on this site to refer you to.Protovis
link, I did not know about that. But bar charts are no problem inpgfplots
. Here are a few useful links in case you are interested (not saying that these are the best ones here): How to put the values of each bar in apgfplots
bar chart inside the bar itself?, and Stacked bar-plot: display total value. Search for[pgfplots] bar
if you want more examples.