107
Views
4
Comments
Solved
[Html2PdfConverter] Html2PdfConverter GenerateImage - on-premises - error:The system cannot find the file
Question
html2pdfconverter
Web icon
Forge asset 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?


UserImage.jpg
JPaulo
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!



2021-03-05 13-56-11
Ricardo Pereira
 
MVP

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

2021-04-21 23-06-46
Jeanene Williams

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.

UserImage.jpg
JPaulo

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.

UserImage.jpg
JPaulo
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!



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