Hi SF,
I'm using the Blink converter to generate a PDF file from some partial views which at the same time use other EJ2 controllers. I'm also using the same approach on a single page layout to generate the header and footer (See attached sample for reference).
Everything is working fine on my local but when deployed to an IIS server the PDF generation times out.
This is from the server's event log:
An unhandled exception occurred and the process was terminated. Application ID:
/LM/W3SVC/3/ROOT Process ID: 8004 Exception: Syncfusion.Pdf.PdfException
Message: Failed to convert webpage StackTrace: at
Syncfusion.HtmlConverter.BlinkConverter.ConvertToPdf(String url,
PdfDocument& document) at
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx) at
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx) at
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state) at
System.Threading.ThreadHelper.ThreadStart()
For what is worth, when I omit either the header or the footer, it does work on the server but it's still pretty slow (about a minute to generate the PDF).
So there's actually 2 issues here:
1. Fix the conversion error
2. Improve PDF generation time.
Thanks in advance.
-Juan
Attachment:
PDF_Conversion_error_781aad96.zip