[Html2PdfConverter] HtmlToPdfConverter Executable Path problem

[Html2PdfConverter] HtmlToPdfConverter Executable Path problem

  
Forge Component
(40)
Published on 2016-03-24 by Guilherme Pereira
40 votes
Published on 2016-03-24 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

Hi,

The component has instructions on how to upload those files.

You will need to use an user with admin privileges.

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 :/


Have you checked this post?

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)


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.

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!


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

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

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!!