accessing pdfDoc directly for arbitrary vector graphic?
I looked through the repository and found the vectors example. This is nice but appears to only access the fixed shape helpers. I would like to draw a fractional pie chart as part of a report being generated w/ your library. Is there a way to accomplish this? Perhaps direct access to the pdfDoc library for drawing the shape? Maybe using your table drawing routines to draft the document and then updating the file w/ the pie chart using PDFKit? Thoughts?
I'm thinking about an extensible model, which would provide direct access to pdfDoc (and pdfmake most fundamental building blocks as well) to all extensions. I'm putting this to "more building blocks" milestone
Work around to accomplish this now I found for a timeline I am bringing into a PDF is to use the canvas' to DataURL() to convert the vector graphic into a PNG, i.e. var getBase64forAnImage= canvas.toDataURL(), and then insert into the pdfMake as an image.