Place SVG diagrams in the generated PDF file

I am using the Yahoo 3 user interface library to create some diagrams. http://developer.yahoo.com/yui/3/

In my browser (FF, Chrome) it generates an SVG structure with JS enabled.

I would like to place these diagrams in PDF, each PDF file will have its own graph. I have root access to the server, so I can install tools to help me.

What are my opportunities.

+3
source share
3 answers

Highcharts/Highstocks, , PNG, SVG PDF. mPDF PDF , cURL Highchart SVG PDF

UPDATE:

, , . . ( )

    http://export.highcharts.com/?content=options&options=
    {
      xAxis: { 
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
      },
        series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]}] 
    };
    &type=image/png
    &width=
    &scale=
    &constr=Chart
    &callback=function(chart) {chart.renderer.arc(200, 150, 100, 50, -Math.PI, 0).attr({ fill : '%23FCFFC5', stroke : 'black', 'stroke-width' : 1}).add(); }  
+1

iText Java Graphics2D PDF. SVG- > Graphics2D Java-.

  • Batique
  • , .

SVG- > PDF, PHP.

0

Check out the fPDF library. It is capable of creating PDF files that you can save, or you can generate them on the fly on demand.

http://www.fpdf.org/

-1
source

Source: https://habr.com/ru/post/1792039/


All Articles