56
Views
4
Comments
[Ultimate PDF] When converting to PDF, is there a data size limit?

Hi,

I'm using ODC Studio to create a PDF conversion logic with either "PrintToPDF" or "PrintToPDF_Advanced." The output is a list, and it is generally being output correctly.

However, when the number of records to be output exceeds approximately 400, or the page count exceeds approximately twenty, the downloaded file becomes 0KB and results in a corrupted output that cannot be opened. 


Is there a limitation on the output of this feature? Also, is there a solution to this issue? Any guidance you can provide would be greatly appreciated.


Regards,

Jonathan

2022-12-22 10-00-39
Beatriz Sabino

Hi Jonathan,

In the overview of this component, there is a "Limitations" section that mentions, "The input and output payload of the external logic cannot be greater than 5.5MB."  And it also mentions a workaround.

2025-09-25 14-38-22
Lokesh Kumar Yadav

Split large data into smaller chunks (e.g., max 300–400 records) before PDF generation. Simplify the printable content, and avoid heavy styling or scripts. For better handling, consider generating the PDF server-side or asynchronously if supported. 

2025-08-20 12-58-03
ADITI CHATURVEDI
  • Make sure the system where you're generating the PDF has enough memory to handle large documents. You might need to adjust some settings to give it more time and memory to complete the task. 
  • Instead of trying to generate the whole PDF at once, try splitting the data into smaller pieces. You could create multiple smaller PDFs and then merge them later. This takes some pressure off the system and helps avoid issues. 
  • If the data set is huge, consider generating the PDF in the background (asynchronously). This way, it won't slow down the rest of your tasks, and you’ll have more flexibility in case anything goes wrong. 
  • Check the content you’re adding to the PDF. Things like images or fonts might be too large or not optimized, which can affect the output. Reducing their size or resolution could help make the process smoother. 
  • Check if you're using the latest version of ODC Studio and the PDF generation tools. Updates might include fixes for issues like this, so staying updated could solve the problem.
2026-05-22 04-18-01
Shogun

Hi @JonathanJonathanJonathan , any solution from your side. I got the same issue.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.