We are converting multiple HTML files into a single PDF.
When one of the HTML files fails to convert, Prince continues with the rest of the documents and we end up with a PDF document but with a missing page.
Is there a way of catching these errors? At the moment the conversion is called via win command:
Shows the following error:
I don't really want to check the log output for errors, as the errors messages will change overtime and be inconsistent.
We could change this to the c# wrapper if that would assist.
We are running PrinceXML 12.5 in dev and v7 in production
(I actually can't force v12 to fail creating a PDF file but still need to catch these errors when we upgrade production to v12).
Thanks
Chris
BTW have used the sample from https://www.princexml.com/forum/topic/4166/column-span-2-and-height-100-in-a-3-column-layout-leads-to to generate the error in v12. Any tips on how to break a conversion are welcome so I can test for errors
When one of the HTML files fails to convert, Prince continues with the rest of the documents and we end up with a PDF document but with a missing page.
Is there a way of catching these errors? At the moment the conversion is called via win command:
"C:\Program Files (x86)\Prince\Engine\bin\prince.exe" "c:\temp\princexml\broken-file.html" "c:\temp\princexml\working-file.html" -o "c:\temp\princexml\merge6.pdf
Shows the following error:
prince: error: dropping unpackable block
I don't really want to check the log output for errors, as the errors messages will change overtime and be inconsistent.
We could change this to the c# wrapper if that would assist.
We are running PrinceXML 12.5 in dev and v7 in production
(I actually can't force v12 to fail creating a PDF file but still need to catch these errors when we upgrade production to v12).
Thanks
Chris
BTW have used the sample from https://www.princexml.com/forum/topic/4166/column-span-2-and-height-100-in-a-3-column-layout-leads-to to generate the error in v12. Any tips on how to break a conversion are welcome so I can test for errors
Edited by atopher