Convert page to Pdf

Hello All

I am trying to convert and download a web screen to pdf. I have tried the Html2PdfConverter, but it requires configuration in the server and I don't have access to it.

Does anyone know the best way to do it and the best forge component(not the Html2PdfConverter)?

I am also considering to create an external report, to be called when you try to download the page to pdf. But this will imply the page to be done two times (page+report), is this a good idea?

thanks



Hi Rita,

You don't need access to the server. You just need to open HtmlToPdfConverter pages to configure it. You have an installation instructions page wit instructions to configure everything and an administration page where you do the actual configuration even without accessing the server. To access the administration page your user need this role Html2PdfAdmin.

Regards,

Marcelo



Hi Rita,


You only need 3 files, and all of it is in the download page (http://wkhtmltopdf.org/downloads.html)

Rita Araújo wrote:

Hello All

I am trying to convert and download a web screen to pdf. I have tried the Html2PdfConverter, but it requires configuration in the server and I don't have access to it.

Does anyone know the best way to do it and the best forge component(not the Html2PdfConverter)?

I am also considering to create an external report, to be called when you try to download the page to pdf. But this will imply the page to be done two times (page+report), is this a good idea?

thanks



Hi Rita.,

As Marcelo and Toto said you need to configure the HTMLtopdf converter plugin.

https://www.outsystems.com/forums/discussion/27147/html-to-pdf-generate-pdf/ 

Refer the Eduardo Jauch guide path to configure the plugin.


Regards,

Ellakkiya.


Hello

Thank you all for your answers I was trying to configure the application but I can't access it in the browser, and I have the admin role. 

I have the error below:


Hi Rita,

You were trying to access the admin page?(https://<server>/HtmlToPdfConverter/Administration.aspx) Normally that error shows when the component is not publish in your environment. Can you republish it and try again?

Regards,

Marcelo

I was on version 11, and I try in the 10 and it worked. 

But I am facing a new error:

I have download this files:

Should I download other files? not that I don't have access to the server I am on a cloud.

Hello

I made It! 

I find important the following details:

1) Download the MinGW files (see Below)

2) I have to select this option, to don't have the error path not found/access denied:

3) Use this function to the URL:

SyntaxEditor Code Snippet

MakeAbsoluteURL(GetEntryURL(GetPageName(),eSpaceName:GetEntryEspaceName(),FirstParameterName:,FirstParameterValue:,SecondParameterName:,SecondParameterValue:,ThirdParameterName:,ThirdParameterValue:,FourthParameterName:,FourthParameterValue:,FifthParameterName:,FifthParameterValue:))