Posted 12 May 2020, 7:20 am EST
Dear,
I want to divide the Page Body Of PDF into 8 equal parts to drawing chart in each (Please refer to the attached file).
- Can i do it and how.
Please support me.
Best regard.
Forums Home / Wijmo / General Discussion
Posted by: kduy121 on 12 May 2020, 7:20 am EST
Posted 12 May 2020, 7:20 am EST
Dear,
I want to divide the Page Body Of PDF into 8 equal parts to drawing chart in each (Please refer to the attached file).
Best regard.
Posted 13 May 2020, 3:06 am EST
Hi,
There are various methods available in the PdfPaths class which can be used to create various lines, shapes, curves, etc. You just need to calculate the points where the lines should be rendered. Please refer to the sample link below for reference:
https://stackblitz.com/edit/js-zca38f
API for PdfPaths: https://www.grapecity.com/wijmo/api/classes/wijmo_pdf.pdfpaths.html
Regards,
Ashwin
Posted 13 May 2020, 5:41 am EST - Updated 3 October 2022, 4:20 pm EST
Posted 14 May 2020, 12:11 am EST
Hi,
Sorry, I was not able to understand your requirements properly. Can you please elaborate the requirements? Also, can you please let me know what is your use case?
~regards
Posted 14 May 2020, 9:25 am EST
This sample demonstrates how to draw Chart using PdfDocument.drawSvg method:
https://www.grapecity.com/wijmo/demos/PDF/DrawingFlexPieSVG/purejs
The PdfDocument.drawSvg method optionally allows you to render chart into a specific position (x, y parameters), which you could utilize to achieve the desired result:
https://www.grapecity.com/wijmo/api/classes/wijmo_pdf.pdfdocument.html#drawsvg
Thanks,
Alex