Hello,
I am using "PrintToPDF_Advanced_ToRest" in ODCStudio to convert a screen displaying a list into a PDF.
However, there seems to be an issue where only part of the data is converted into the PDF if the data volume is large.
I attempted to convert an A4 size document with 33 pages (approximately 500 records to display) into a PDF, but the downloaded document only contained 9 pages (about 70 records), and the process seemed to have ended prematurely. The processing time was 25 seconds.
On the other hand, when attempting to convert a document of the same size (A4) with 21 pages (approximately 200 records), it was successfully outputted in 22 seconds without issue.
Also, I haven't set any restrictions on the "TimeoutSeconds" property of "PrintToPDF_Advanced_ToRest", and the BinaryData output was "976,811 bytes" for the 21-page case and "441,272 bytes" for the 9-page case, which I believe doesn't hit the 5.5MB limit.
Could there be an issue with the data volume or time limitations? Or is there another problem?
I would appreciate your guidance.
Regards,
Jonathan
Hi @JonathanJonathanJonathan
Even though you haven't set a specific value for the TimeoutSeconds property, the default value may not be sufficient for larger datasets.
Try increasing the TimeoutSeconds property to allow more time for the PDF generation process. Since the processing for 200 records worked fine in 22 seconds, increasing this limit should help for larger datasets.
For example, try setting it to 60 seconds or more for large datasets (500 records).
Thanks,
Senthil