[SOLVED] Export this Page as PDF

Talk about new features for CMSMS and modules.
Post Reply
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

[SOLVED] Export this Page as PDF

Post by manc »

Is there a module out there that can export the current page's content into PDF (and be able to add another PDF template too)?

i've had a look round the modules and only see one that's been discontinued:
http://dev.cmsmadesimple.org/projects/content2pdf
Last edited by Anonymous on Fri Oct 16, 2009 12:49 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Export this Page as PDF

Post by RonnyK »

The printing module (part of core), has that capability already, you can call the

{cms_module module='printing' pdf='true'}


at the same place as the print-page is set, with the same module ;)

Ronny
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: Export this Page as PDF

Post by manc »

i've actually tried this - with no quotes, single quotes and double quotes - as well as changing {cms_module module='printing'...} to {print..} and nothing seems to work. It directs to the printer page but nothing else happens. Also the content is missing (as content of the page i want to do this with is generated by another smarty).
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Export this Page as PDF

Post by RonnyK »

In the Printing module, you have to enable the "Enable PDF-generation" on its settings tab.

Ronny
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: Export this Page as PDF

Post by manc »

500 error  :(
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Export this Page as PDF

Post by RonnyK »

what version of CMSMS?

Ronny
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: Export this Page as PDF

Post by manc »

1.6.6
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Export this Page as PDF

Post by RonnyK »

Have a link, or could you PM an account to me to test the backend?

Ronny
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: Export this Page as PDF

Post by manc »

i have been given the solution by my host (if this happens to you):

...made a small change to the file named : modules/Printing/tcpdf/tcpdf.php

Lines 5055-5057 i have commented out as it was duplicating the content-type header
//header('Content-Type: application/force-download');
//header('Content-Type: application/octet-stream', false);
//header('Content-Type: application/download', false);
cronosmachine
Forum Members
Forum Members
Posts: 23
Joined: Thu Jun 17, 2010 12:48 am

Re: [SOLVED] Export this Page as PDF

Post by cronosmachine »

I don't understand how to fix this.
I still don't see icon print and pdf on top right corner every page.
How to make enable both icon print and pdf on every right corner every page?
Post Reply

Return to “Feature ideas”