Create PDF on page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
testuser
Forum Members
Forum Members
Posts: 34
Joined: Thu Sep 30, 2010 3:40 pm

Create PDF on page

Post by testuser »

Hi,

I need to create a PDF with user-defined variables (let´s say as GET parameters). Is it possible? It´s not an invoice, e-shop or st. like that, just I have to defined PDF template and put there a few variables.

Ex.
URL:

Code: Select all

example.com/page/?p1=name&p2=phone&p3=location
PDF template:

Code: Select all

Hi {$smarty.get.p1},
your location is {$smarty.get.p2} and your phone number is {$smarty.get.p3}.
On page "page" will be a button "generate PDF", after click that the PDF will be generated and available for open/download.

Is there any module? I´ve found only old PDFGenerator, but is makes st. different (and doesn´t working in current CMSMS version).

Thanks.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm
Location: Nimbin, Australia

Re: Create PDF on page

Post by rotezecke »

i use mPDF (not a module)
http://www.mpdf1.com/mpdf/index.php
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Create PDF on page

Post by paulbaker »

Yes I used mPDF for a non-CMSMS project, it worked well.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Create PDF on page

Post by JohnnyB »

I use the PDF module and get the URL link it generates to create a PDF and then use that link hardcoded in a page without using the module's link tag. I can't remember why I had to do it that way, but it works well and you could add your query string stuff to that link. That way, you are not using the module tag as the print link, but a mash up of your query strings and the originally generated pdf print link.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
User avatar
polodesign
Forum Members
Forum Members
Posts: 55
Joined: Sun Jan 03, 2010 1:58 am

Re: Create PDF on page

Post by polodesign »

JohnnyB - which PDF module are you referring to?

I'm considering ways to have a client input meeting minutes directly into a site via the admin, then be able to generate PDF's for printing or distribution via email.

Thanks in advance,
Penny
JohnnyB
Dev Team Member
Dev Team Member
Posts: 729
Joined: Tue Nov 21, 2006 5:05 pm
Location: OH, USA

Re: Create PDF on page

Post by JohnnyB »

polodesign wrote:JohnnyB - which PDF module are you referring to?
I'm using PDFGenerator.
The CMSMS ver 1.11.10 and it works well
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
User avatar
polodesign
Forum Members
Forum Members
Posts: 55
Joined: Sun Jan 03, 2010 1:58 am

Re: Create PDF on page

Post by polodesign »

Thanks - the 'stale' note worried me. Glad to know it works well.

P.
Post Reply

Return to “Modules/Add-Ons”