Contnent truncated at the end of page after generate PDF Document

Hello,

When I generate pdf document at runtime, often the contnent is truncated at the end of page. Also, at the begining of page.

Please, see the attached file for more details.

How to avoid this problem?

Regards


Attachment: TrancedImg_b8a052d7.zip

3 Replies

JT Jeyalakshmi Thangamarippandian Syncfusion Team April 10, 2024 12:40 PM UTC

Hi,

We attempted to replicate the problem with the provided details, but we were unable to reproduce it.  However, based on your image, it appears that the image pagination is not properly handled. Please refer to the UG documentation for further details:

Working with Images | Syncfusion

We kindly request you to share the complete code example or a simple project to reproduce the issue on our end. This will help us analyze and provide further assistance.


Regards,

Jeyalakshmi T



CO Cosyspro May 9, 2024 09:15 AM UTC

Hi,

Thank you for response.

The problem persists always.

Can you provide me an example showing the generation of PDF Document contnent a list of products (each product has Name, Price, Stock and photo). The insert of products in PDF document is done inside a loop.

The problem is how to verify if the remaining space at the end of the page sufficient to display current product else a new page must be created to add product.

Regards





AG Anantha Gokula Raman Jeyaraman Syncfusion Team May 10, 2024 12:56 PM UTC

Hi,

To achieve your requirement generation of PDF Document with a list of products, we can use PdfGrid API. Kindly refer the following UG documentation to know more about working with PdfGrid, Working with Tables using PdfGrid | Syncfusion

The problem is how to verify if the remaining space at the end of the page sufficient to display current product else a new page must be created to add product.

The pagination in PdfGrid will auto evaluate the space required to preserve every row in the list. If the content exceeds the current page bounds, new page will be created internally for lay outing.
PdfGrid Pagination

Kindly use the following UG to insert image in a PdfGrid, Insert image in PdfGrid

Kindly use the following UG documentation for lay outing text manually using PdfLayoutResult in PdfTextElement, Creating a multicolumn PDF document

Regards,

Anantha Gokula Raman J



Loader.
Up arrow icon