995
Views
9
Comments
How to create dynamic PDF 
Question

Dear all, 


I would use the HTML2PDF extension to create reports in PDF.

But I would not use the URL but dynamically create PDF with my choice tables. Any of you have some examples already done, or any suggestions to follow?


Thank you.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Esteban,

If you want to dynamically create a PDF, take a look at e.g. the iTextSharp component. With HTML2PDF it is not possible to do so.

UserImage.jpg
Esteban Cambiasso

Kilian Hekhuis wrote:

Hi Esteban,

If you want to dynamically create a PDF, take a look at e.g. the iTextSharp component. With HTML2PDF it is not possible to do so.

How i can use iTextSharp in order to create PDF? 


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

I have not used it myself. Did you install it? Look at the available actions? Etc.?

UserImage.jpg
Esteban Cambiasso

Kilian Hekhuis wrote:

I have not used it myself. Did you install it? Look at the available actions? Etc.?

iTextSharp characteristics seem to be related to already existing PDF. How can I, through this, create a new PDF?



Thank you in advance.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Esteban,

Since the .NET iTextSharp library can also be used for creating PDFs, I assumed that functionality was also included in the Forge component, but it seems it isn't, apologies. In that case, I don't think there's a ready to use component.

2018-07-06 11-13-55
Nathan Hobbs

Any updates on this?

2022-12-09 16-04-44
Rodolfo Cardoso
Staff

Hi,

You can create a page that receives as query string parameters the tables that you choose to include in the report. That page will build your dynamic report, then just use HTML2PDF with the URL of that page, passing as query string parameters the tables that you want to include.

UserImage.jpg
Bhakti Shinde

Rodolfo Cardoso wrote:

Hi,

You can create a page that receives as query string parameters the tables that you choose to include in the report. That page will build your dynamic report, then just use HTML2PDF with the URL of that page, passing as query string parameters the tables that you want to include.


Hi Rodolfo Cardoso,

Is this reply related to itextsharp component ? I have installed itextsharp in my module. But no idea how to use it as it seems like it has properties related to perform on already existing pdf

2022-12-09 16-04-44
Rodolfo Cardoso
Staff

Bhakti Shinde wrote:

Rodolfo Cardoso wrote:

Hi,

You can create a page that receives as query string parameters the tables that you choose to include in the report. That page will build your dynamic report, then just use HTML2PDF with the URL of that page, passing as query string parameters the tables that you want to include.


Hi Rodolfo Cardoso,

Is this reply related to itextsharp component ? I have installed itextsharp in my module. But no idea how to use it as it seems like it has properties related to perform on already existing pdf


Hi Bhakti,


No, the comment is related with HTML2PDF converter.


Thanks,

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