html2pdf converter error, possibly security issue?

html2pdf converter error, possibly security issue?

  

I am getting an error with the html2pdf converter on our live server (it works on our dev and test servers).

Has anyone experienced this ? or have any tips for resolution?

Our live server is a bit special:

  • It is a server farm (Farm Environment option is ticked in converter admin screen)
  • It is https only
  • If has PCI compliant security enabled (OS say they have enabled access for the converter, but can not support us any further)
  • It has whitelisting for administration pages, but this is working ok, and shouldn't affect our converted pages


ERROR:

Message Could not find file 'C:\Windows\TEMP\TEMPVHFTTUXRXO00000000000000000000000000000000.pdf'.

Error: Failed loading page https://www.google.co.uk (sometimes it will work just to ignore this error with --load-error-handling ignore)

Exit with code 1 due to network error: UnknownNetworkError

 at ssHtmlToPdfConverter.RssExtensionHtmlConvertToPdf.MssGeneratePDFExtension(HeContext heContext, String inParamExecutablePath, String inParamURL, String inParamProxy, String inParamOtherArgs, Byte[]& outParamPDFBinary, String& outParamMessageOutput)

   at ssHtmlToPdfConverter.Actions.ActionGeneratePDF(HeContext heContext, String inParamURL, String inParamProxy, String inParamOtherArgs, Byte[]& outParamPDFBinary, String& outParamMessageOutput)

   at ssHtmlToPdfConverter.Actions.ActionHtmlToPdfConverter(HeContext heContext, String inParamURL, String inParamWhereToAddPageNumber, String inParamOtherArgs, Byte[]& outParamBinary, Boolean& outParamError)


NOTES:

I have tried the "--load-error-handling ignore" option but no affect.

Occasionally the live server will make a pdf for e.g. "www.google.co.uk" but it is very slow if it does work.

I have tried toggling the Farm Environment option

Hi Steve,

Have you checked this thread: 

https://www.outsystems.com/forums/discussion/13615/could-not-find-file-c-windows-temp-tempiemrmnoanh-pdf/#Post86125

Let me know if this solves your problem,

Justin

Looks like my problem is due to HTTPS.  Our live server is PCI compliant and therefore refuses HTTP connections.  Anyone know why html2PdfConverter doesn't work for HTTPS ?

I might have to look at another solution, perhaps ExpertPDF.

Try this: The screen where u use the HTMLTOPDF converter on the advanced properties, try to set the HTTP Security to :"SSL/TSL". It forces the screen to use HTTPS.