syncfusion/wpf-demos

Generate PDF problem

bobotan opened this issue · 4 comments

can i Create 2 rows and 2 columns with A4 paper size?
every cell use Graphics fill,like Rectangle and so on..

Hi Boboton,

Thank you for contacting Syncfusion support.

We can able to add graphics objects like shapes, image, etc., in PdfGridCell using BeginCellLayout event handler. We have created the sample to achieve your requirement “Create 2 rows and 2 columns with A4 size and add shapes to table cell in PDF document”. {lease find the sample for the same from below,

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/AddShapestoTableCell1663853592
Output document: https://www.syncfusion.com/downloads/support/directtrac/general/pd/Output1898428880

Please refer the below documentation to learn more about PdfGrid,
Insert image to PDF table cell: https://www.syncfusion.com/kb/9746/how-to-add-two-images-in-one-pdf-table-cell-using-c-and-vb-net
Working with shapes in PDF: https://help.syncfusion.com/file-formats/pdf/working-with-shapes
Working with tables: https://help.syncfusion.com/file-formats/pdf/working-with-tables

Please try the above sample in your end and let us know the result.

Regards,
Sowmiya Loganathan

Hi Team,

We can able to add graphics objects like shapes, image, etc., in PdfGridCell using BeginCellLayout event handler. We have created the sample to illustrate this and please find the download link from below,

Sample: https://www.syncfusion.com/downloads/support/directtrac/301507/ze/AddShapestoTableCell-357694296
Output document: https://www.syncfusion.com/downloads/support/directtrac/301507/pd/Output875006889

Please refer the below documentation to learn more about PdfGrid,

Insert image to PDF table cell: https://www.syncfusion.com/kb/9746/how-to-add-two-images-in-one-pdf-table-cell-using-c-and-vb-net
Working with shapes in PDF: https://help.syncfusion.com/file-formats/pdf/working-with-shapes
Working with tables: https://help.syncfusion.com/file-formats/pdf/working-with-tables

Please try the above sample in your end and let us know the result.

I've tried it. It works! strong strong strong!