[Html2PdfConverter] Html2PdfConverter GenerateImage - on-premises - error:The system cannot find the file

Forge Component
(70)
Published on 2 Jun by Guilherme Pereira
70 votes
Published on 2 Jun by Guilherme Pereira

Hi, 

i am using Html2PdfConverter, in a on-premises installation to create a thumbnail, from a Html file store in OS database.

I am getting this error "The system cannot find the file specified Problem generating PDF from HTML, URLs: https://<url>"


If i execute the url directly in the browser i get the correct Html.

In OS cloud its working!


My template screen is anonymous.

In the administration tab of Html2Pdf the "Write Binaries to Running Dir" is applied.


What is wrong?


Hi, 


Did you already fallow this link and verify if everything is OK? 

https://www.outsystems.com/forums/discussion/17923/html2pdfconverter-faq/


Hope this can help. 


Best regards, 

Ricardo M Pereira

Have you checked your service centre error logs to see if you are getting an error from the preparation of your template screen? You could also try outputting to the general log from within your preparation to check that it is being called and what parameters it is receiving etc.

Jeanene Williams wrote:

Have you checked your service centre error logs to see if you are getting an error from the preparation of your template screen? You could also try outputting to the general log from within your preparation to check that it is being called and what parameters it is receiving etc.

 

 Hi,

in the service center error log, i have no error of the preparation of the template screen.

I wrote to the general log as suggest. 

If i request the URL manually, it writes in general log. 

When i execute the application its not writing. Its not being executed.

Solution

Executing the exe in the command line it works 

C:\Program Files\wkhtmltopdf\bin>wkhtmltoimage http://www.google.pt c:\temp\out.png


I run the application using the ip 127.0.0.1 and still get the same error.




I have removed the "Write Binaries to Running Dir", and Now its WORKING!



Solution