PDF: Create
Create an HTML container with ID to render the graphical context element
Create PDF renderer
To create the PDF, invoke pdfLayer method with ContainerID "#myCanvas". It returns the Canvas2D renderer instance. For more details on canvasLayer please refer: API Reference -> Layers -> Canvas Layer Page.
Create Page
renderer.addPage() api creates pdf Page and returns the page handler.
Create elements:
pageHandler.createEl() API creates Element of type 'el' with 'attr' attributes and 'style' properties. In the below example we are creating Circle with attributes specified in the attr object and styles in the style object.
To create multiple circles based on Data array - call createEls(DataArray, ElementConfig)