BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
I'm trying to render a PDF file with the following structure
CATEGORY TEXT
SUB-CATEGORY TEXT
GRID
GRID
.....
GRID
GRID
SUB-CATEGORY TEXT
GRID
GRID
.....
GRID
GRID
CATEGORY TEXT
SUB-CATEGORY TEXT
GRID
GRID
.....
GRID
GRID
SUB-CATEGORY TEXT
GRID
GRID
.....
GRID
GRID
........
I have the following code, but it renders grid data on top of each other on the second page.
The Essential PDF supports maintaining the position of a PDF grid drawn on a PDF page using PdfGridLayoutResult. It provides the rendered bounds of the previously added grid, which can be used to place successive elements without overlapping. Add multiple PDF grids using the bottom position of the previously rendered PDF grid.
We suspect that the reported issue may occur when the grid is drawn on the incorrect page.
Please add the below code snippet to draw a grid with the layout result of the previous grid:
//Draw the grid on the PDF document page and store the grid position in PdfGridLayoutResult. PdfGridLayoutResult pdfGridLayoutResult = pdfGrid.Draw(page, new PointF(10, 10)); pdfGridLayoutResult = pdfGrid.Draw(pdfGridLayoutResult.Page, new PointF(10, pdfGridLayoutResult.Bounds.Bottom + 20)); |
We have attached a complete sample to achieve your requirement, try this on your end and let us know the result.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/NetCoreSample1337915530
Follow the below links for more information,
https://help.syncfusion.com/file-formats/pdf/pdfgrid#adding-multiple-tables
Please try this on your end and let us know the result.
If still you are facing an issue, we request you share the simple sample to replicate the issue. So that we can assist with you further in this