Page 1 of 1

[SOLVED] Export this Page as PDF

Posted: Wed Oct 14, 2009 1:55 pm
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

Re: Export this Page as PDF

Posted: Wed Oct 14, 2009 5:42 pm
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

Re: Export this Page as PDF

Posted: Thu Oct 15, 2009 8:57 am
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).

Re: Export this Page as PDF

Posted: Thu Oct 15, 2009 5:37 pm
by RonnyK
In the Printing module, you have to enable the "Enable PDF-generation" on its settings tab.

Ronny

Re: Export this Page as PDF

Posted: Thu Oct 15, 2009 6:16 pm
by manc
500 errorĀ  :(

Re: Export this Page as PDF

Posted: Thu Oct 15, 2009 6:19 pm
by RonnyK
what version of CMSMS?

Ronny

Re: Export this Page as PDF

Posted: Thu Oct 15, 2009 6:21 pm
by manc
1.6.6

Re: Export this Page as PDF

Posted: Thu Oct 15, 2009 6:22 pm
by RonnyK
Have a link, or could you PM an account to me to test the backend?

Ronny

Re: Export this Page as PDF

Posted: Fri Oct 16, 2009 12:49 pm
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);

Re: [SOLVED] Export this Page as PDF

Posted: Tue Jul 06, 2010 1:04 pm
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?