Custom Page Body Of PDF

Posted by: kduy121 on 12 May 2020, 7:20 am EST

    • Post Options:
    • Link

    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.

  • Posted 13 May 2020, 12:27 am EST - Updated 3 October 2022, 4:20 pm EST

  • 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

    Hi Ashwin,

    Maybe you have misunderstood me.

    I want divide the Page Body Of PDF into 8 equal parts to drawing chart in each (with x = 2, y = 4).

    For example: if i input x = 2, y = 1 then output pdf then the result will be like this.

    bothered but asked for help.

    Best regard.

  • 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

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels