Page 1 of 1
mPDF implementatie
Posted: Tue Dec 09, 2014 8:57 am
by Guido
Heeft iemand hier mPDF wel eens op een site geïmplementeerd en zo ja, heb je wat tips of een korte uitleg hoe je het gedaan hebt?
Re: mPDF implementatie
Posted: Tue Dec 09, 2014 6:36 pm
by JohnnyB
There is a PDF print module in the forge. I use that for 1.11.x + sites.
The template will need to be a fully qualified HTML document with the DocType and links to the stylesheets you want to use for printing.
It will take some testing and experimenting to make the PDF page exactly the way you want it to look
Re: mPDF implementatie
Posted: Tue Dec 09, 2014 7:08 pm
by Guido
I'll answer you in english:
Thanks. I saw that. I downloaded
this version. It's version 0.1, I saw in SVN there is a 0.2 version. Which one do you use? I saw it has no .XML, so I manually created the module/PDFGenerator folder and uploaded the files. So I guess I should run the mothod.install.php?
===========EDIT===========
Nevermind, it just was in the modules list already, just had to hit 'install'... Seems to work!
Re: mPDF implementatie
Posted: Tue Dec 09, 2014 7:20 pm
by JohnnyB
Guido wrote:Thanks. I saw that. I downloaded
this version. It's version 0.1, I saw in SVN there is a 0.2 version. Which one do you use? I saw it has no .XML, so I manually created the module/PDFGenerator folder and uploaded the files. So I guess I should run the mothod.install.php?
I am using .1 from the Forge. with a 1.10.11 and 1.11.11 site.
I have it set to use the TCPDF subsystem.
hope that helps...
Re: mPDF implementatie
Posted: Wed Dec 10, 2014 2:17 pm
by Guido
Well it worked like it should, but I found for my needs the styling options for the module were too limited. I found some help on manually implementing mPDF (which I like for it's many styling options) and posted a detailed workflow for this
here.
Thanks for your time anyway.