59
Views
8
Comments
Solved
html2pdf Problem to generate PDF
Question

Hello Community, 

I´ am working with the forge componente HTML2PDF, but I have this problem and I don´t know how to solve. 

I installed the component in my environment and configured it as explained in this link: https://success.outsystems.com/Documentation/How-to_Guides/Development/How_to_create_reports_using_HTML2PDF


the action it´s configured like image bellow:

In any case, the oml version of the screen is attached.

Regards, 

Jessica. 

DemoHTML2PDF.oml
2022-08-05 20-06-58
Hélder Anselmo
Solution

Hi Jessica,

I think you will need to upload again and check the option: Write Binaries to Running Dir

This is the valid option for cloud environments (If I'm not mistaken)


Can you try again, following that step?


Cheers.

2020-09-15 09-38-17
Jessica Marques

Hi Helder, 

Sorry for the delay in responding, but today I did the test and reinstalled again, setting this field Write Binaries to Running Dir  to true.


Thank you for your help. 
Cheers.
2023-07-28 17-00-32
Marco Arede
 
MVP

Hi Jessica,

I notice you only have added one binary: wkhtmltox.dll
Usually I also add these two: wkhtmltopdf.exe, wkhtmltoimage.exe

Try to add these (since they are both typically used) and let's see if it solves your issue.

Cheers!

2020-09-15 09-38-17
Jessica Marques

Hi, Marco

I inserted, but the problem stil persiste. (There are the same file on Required and Additional Binaries)...

kind regards, 


2022-08-05 20-06-58
Hélder Anselmo

Hi Jessica,

I see from your screenshot that Binaries Directory is just \User. Any reason for that?

I would say that you need a full path, like D:\User

So, the error can just be that binaries are added to a folder that IIS cannot reach (or invalid).


Can you check if the path for Binaries Directory is valid?


Cheers.

2020-09-15 09-38-17
Jessica Marques

Hi Helder, 

I reinstalled the application in my personal environment and redid the configuration. And yet the error persists. When you say check the path, do you mean the path these files came from?

Regards, 

Jessica. 

Now, the configuration it is like that:

Cheers. 

2022-08-05 20-06-58
Hélder Anselmo
Solution

Hi Jessica,

I think you will need to upload again and check the option: Write Binaries to Running Dir

This is the valid option for cloud environments (If I'm not mistaken)


Can you try again, following that step?


Cheers.

2020-09-15 09-38-17
Jessica Marques

Hi Helder, 

Sorry for the delay in responding, but today I did the test and reinstalled again, setting this field Write Binaries to Running Dir  to true.


Thank you for your help. 
Cheers.
2021-12-26 07-43-49
Peter Lasvera

i found sometimes html to pdf not work perfectly, better output to excel and then convert to pdf

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