58
Views
4
Comments
[Html2PdfConverter] [Html2PdfConverter] The file is not a valid PDF document.
Question
html2pdfconverter
Web icon
Forge asset by Guilherme Pereira

Sometimes I'm getting this error The file is not a valid PDF document. when trying to generate and download a PDF file, this has happened on several ocasions and sometimes if 2 users are trying to generate a pdf (different files) one gets the error and the other gets the PDF without any issues. 


Is this a known error or is there any solution that I'm might not be seeing?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

That error usually means the PDF is empty. Note sure what could cause this.

2022-01-03 17-53-03
Sérgio Lourenço

In this case the assign before has the URL and if I check the URL in the browser I get the page that should be in the PDF. 

2022-01-03 17-53-03
Sérgio Lourenço

In addition I'm also getting this error on Service Center

The specified executable is not a valid application for this OS platform.


Stack

The specified executable is not a valid application for this OS platform.

   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)

   at OutSystems.NssHtmlConvertToPdf.CssHtmlConvertToPdf.MssInternal_GeneratePDF(String ssExecutablePath, String ssURL, String ssProxy, String ssOtherArgs, Boolean ssLowPriority, Int32 ssTimeout, Byte[]& ssPDFBinary, String& ssMessageOutput)

   at ssHtmlToPdfConverter.RssExtensionHtmlConvertToPdf.MssInternal_GeneratePDF(HeContext heContext, String inParamExecutablePath, String inParamURL, String inParamProxy, String inParamOtherArgs, Boolean inParamLowPriority, Int32 inParamTimeout, Byte[]& outParamPDFBinary, String& outParamMessageOutput)

   

   

UserImage.jpg
Marvei Pana

Hi, is this resolved?

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