752
Views
10
Comments
Download PDF
Question

How to download a part of the page as a PDF file?

I have an HTML page, how to extract one of the divs and download it as a PDF file?



2018-10-04 11-30-51
glenn michiels

kong dejing wrote:

How to download a part of the page as a PDF file?

I have an HTML page, how to extract one of the divs and download it as a PDF file?



Hi,

Could you specify if you're working on a traditional web app or a reactive web app?

Kind regards,
Glenn


UserImage.jpg
kong dejing

glenn michiels wrote:

kong dejing wrote:

How to download a part of the page as a PDF file?

I have an HTML page, how to extract one of the divs and download it as a PDF file?



Hi,

Could you specify if you're working on a traditional web app or a reactive web app?

Kind regards,
Glenn


a traditional web app


2018-10-04 11-30-51
glenn michiels

kong dejing wrote:

glenn michiels wrote:

kong dejing wrote:

How to download a part of the page as a PDF file?

I have an HTML page, how to extract one of the divs and download it as a PDF file?



Hi,

Could you specify if you're working on a traditional web app or a reactive web app?

Kind regards,
Glenn


a traditional web app


For traditional web apps you should use one of the forge components.

https://www.outsystems.com/forge/component-overview/209/html2pdfconverter

Or

https://www.outsystems.com/forge/component-overview/5641/ultimate-pdf

Would be able to do what you require.

Kind regards,
Glenn


2019-10-29 12-40-04
Nikolai Kaplin

You need to make the page "public", and then you can use  forge components like HTMLToPDFConverter.

Or run script "print_current_page()"  to use the "Print" functionality from the browser.

UserImage.jpg
kong dejing

Nikolai Kaplin wrote:

You need to make the page "public", and then you can use  forge components like HTMLToPDFConverter.

Or run script "print_current_page()"  to use the "Print" functionality from the browser.

Thank you very much for your reply. But it doesn't solve my problem.


2019-10-29 12-40-04
Nikolai Kaplin

kong dejing wrote:

Nikolai Kaplin wrote:

You need to make the page "public", and then you can use  forge components like HTMLToPDFConverter.

Or run script "print_current_page()"  to use the "Print" functionality from the browser.

Thank you very much for your reply. But it doesn't solve my problem.



If you want download only a part, you can create empty page with nessesary content.
Or buid extension ( create  pdf from one part of the page ).

2019-10-12 21-49-06
Rodrigo Lima

Nikolai Kaplin wrote:

You need to make the page "public", and then you can use  forge components like HTMLToPDFConverter.

Or run script "print_current_page()"  to use the "Print" functionality from the browser.

How do I use this script?


2019-10-29 12-40-04
Nikolai Kaplin

Rodrigo Lima wrote:

Nikolai Kaplin wrote:

You need to make the page "public", and then you can use  forge components like HTMLToPDFConverter.

Or run script "print_current_page()"  to use the "Print" functionality from the browser.

How do I use this script?



It is the same as you press ctrl+p. Run script and you can see such modal

2019-11-01 16-10-49
Nélio Dionisio

Hi Kong,

Why not create the part of the page that interests you in a new screen in anonymous mode.
So whenever you want to download pdf you just have to convert these anonymous screen to pdf using HTMLTOPDF.


I hope it helps :)



2019-09-05 04-53-01
Prachi Phalak

Hi Kong,


You can use HTMLtoPDF converter or ultimate PDF component. Both can be used in reactive application. 

2023-10-09 16-26-30
Cubrit

Oi pessoal, vocês me sabem dizer como baixar a apostila do Outsystems em PDF? OU posso me indicar um livro para aprender do 0? se sim, pode enviar no e-mail ericacubrit@gmail.com

Agradeço a atenção!

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