[Html2PdfConverter] What binaries should I upload?

[Html2PdfConverter] What binaries should I upload?

  
Forge Component
(51)
Published on 26 Sep (3 weeks ago) by Guilherme Pereira
51 votes
Published on 26 Sep (3 weeks ago) by Guilherme Pereira

Dear All,

We downloaded the latest version of the "Html2PdfConverter" but we where not able to use the previous libraries that used to work on a older version.

Kinldly advice where we can download the 2 executables and 4 dlls needed for the latest revision.

we're installing the module on Windows Server 2012 64 bit.

Thank you in advance,


Lana

Hi Lana,Have you checked the FAQ (https://www.outsystems.com/forums/discussion/17923/html2pdfconverter-faq/)?

You should download the MinGW Bleeding Edge version of the component.

Let us know if that version worked for you.

Cheers,

Guilherme

Solution

Thank you Guiherme for your prompt reply it works fine :)

I still have an issue regarding the URL.

It works work fine when we are using the full URL. I.e: http://172.16.1.150/DeepDiveSimulator/Printer.aspx?SimulationId=248

But throwing the below error when using the short URL I.e:  http://simulatordev.globemedgroup.com/Printer.aspx?SimulationId=248

Everyone has full access on the below directories :

C:\Program Files\OutSystems\Platform Server\running\HtmlToPdfConverter.1803253868

C:\Windows\Temp

and the  Short URL was set as illustrated in the below image

Kindly advise if it's possible to use the Friendly URL to generate a PDF

Thank you,


Lana


 

Solution

Hello Lana,

Don't know if this is a problem of friendly URL. But I'm not experienced with it.

The link you provided, with the domain and the page, can't be reached from here (my browser). I received a warning saying the page do not exists. Unless you have something set up like internal access only, I think the page name maybe is not correct? 

If this is the case, the converter will also not find the page, like the browser. 

If you have multiple pages with the same name in different flows, this could also be the reason, as in this case, you would require entry points with different names (and use it), or access using the form flowname.pagename.

Cheers,

Eduardo Jauch

Dear Eduardo,

Thank you for your prompt reply.

The URLs listed above are internal and cannot be accessed. The difference between them is the friendly URL.

The friendly URLs  http://simulatordev.globemedgroup.com/Printer.aspx?SimulationId=248 opens as HTLM page my browser but when we pass it to the HTMLToPDFConverter it returns the above error.


Best regards,

Lana 




Hi Lana,

Are you open your browser in the Server?

Because if you can open the page from the browser with the URL you provided, in a different machine, the only reason (that I can see) to the executable to not be able to reach the page is that the server is not listed in the IPs list for the internal access.

If you are passing the same URL to the HTMLtoPDF converter, than it will have to reach the internet and ask the server for the page. If the page is under Internal Access only, and the server itself is not listed, than the request will fail (afaik).

Did you tried passing the address with the Server IP instead, to see if it works?

Cheers,
Eduardo Jauch

It works fine :)

I used the below dynamic URL in my code:

 "127.0.0.1/ModuleName/" + GetEntryURL("Print", eSpaceName:, "SimulationId", SimulationId)

Thank  you

Hi Lana, 

Could you mark Guilherme's answer as the correct one?
As it is the answer to the question, this helps other that look for a solution for the same problem. :)

Cheers,
Eduardo Jauch