355
Views
8
Comments
[Html2PdfConverter] HtmlToPdfConverter Executable Path problem
Question
html2pdfconverter
Web icon
Forge asset by Guilherme Pereira

Hello.

I am using the HtmlToPdfConverter module. I imported it and I am trying to use the GeneratePDF server action, but when I put this value: 

SyntaxEditor Code Snippet

"C:\Program Files\OutSystems\Platform Server\running\HtmlToPdfConverter.1860639869\binaries\wkhtmltopdf.exe"

In the ExecutablePath field, i get an error saying "The system cannot find this file".

How can I solve this problem? I believe the number in "HtmlToPdfConverter.1860639869" might be incorrect but I don't know how to find this number.

Thank you.

Francisco

2016-04-21 18-13-58
Nuno Rolo
 
MVP

Hi,

The component has instructions on how to upload those files.

You will need to use an user with admin privileges.

UserImage.jpg
Francisco Pedreira

Nuno Rolo wrote:

Hi,

The component has instructions on how to upload those files.

You will need to use an user with admin privileges.

Hi! I did upload them to the server! I just don't know the path to access them :/


2016-04-21 18-13-58
Nuno Rolo
 
MVP

Have you checked this post?

UserImage.jpg
Francisco Pedreira

Nuno Rolo wrote:

Have you checked this post?

Yes, but that is not the problem I am having. I don't know how to access the executable once I upload it to the server. What is the default path to that folder? (I am using a Personal Area/Cloud server)


UserImage.jpg
Arjen van der Kooij

i had the same problem. Parameter executable path was mandatory.

it turned out i was using the wrong server action (htmlconverttopdf > GeneratePDF).
one should use htmltopdfconverter > htmltopdfconverter.
make it available to your module, via the dependencies screen.

GeneratePDF has a 'executable path' parameter, but htmltopdfconverter hasn't.

so once you finish installing the component en uploading the binaries using the adminstration page,
then have a close look at the html to pdf 'sample', that comes with the component.
https://[yourname].outsystemscloud.com/HtmlToPdfConverter/HowToPDF.aspx

This sample is fully running in you're own personal environment.
Just copy the sample's settings.

UserImage.jpg
Francisco Pedreira

Arjen van der Kooij wrote:

i had the same problem. Parameter executable path was mandatory.

it turned out i was using the wrong server action (htmlconverttopdf > GeneratePDF).
one should use htmltopdfconverter > htmltopdfconverter.
make it available to your module, via the dependencies screen.

GeneratePDF has a 'executable path' parameter, but htmltopdfconverter hasn't.

so once you finish installing the component en uploading the binaries using the adminstration page,
then have a close look at the html to pdf 'sample', that comes with the component.
https://[yourname].outsystemscloud.com/HtmlToPdfConverter/HowToPDF.aspx

This sample is fully running in you're own personal environment.
Just copy the sample's settings.

Hello Arjen!

I do not have that action available to me! The actions I have are: ExecuteCommand, GenerateImage, GeneratePDF, GetBinariesDirectory.

What should I do? 

PS: Thanks for the tip on the sample! I'll check it out!


UserImage.jpg
Arjen van der Kooij

in the 'manage dependencies' screen, look for a producer called 'htmltopdfconverter'.

Mark the checkboxes, in order to make it available in you're module.

UserImage.jpg
Francisco Pedreira

Arjen van der Kooij wrote:

in the 'manage dependencies' screen, look for a producer called 'htmltopdfconverter'.

Mark the checkboxes, in order to make it available in you're module.

OH! Now I see it! Thank you so much!!


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