I want my lesson module to have a link which on click must display it's contents in a PDF file. Can any one give me a detailed description about how this can be done ?
Thanks in Advance !!
I want my lesson module to have a link which on click must display it's contents in a PDF file. Can any one give me a detailed description about how this can be done ?
Thanks in Advance !!
No that's not what i'm asking for .
My question is ,In the lesson view i should have a link(say a PDF icon similar to print in book module !). when i click that link ,a PDF file must get opened with the content's of that particular lesson . so that the student can save and have the PDF as an OFLINE copy .
am i clear ?
Expecting your help !!
Thanks in advance .
Creating a Shadow PDF file seperately will be hectic process . Bcoz for each and every change in the lesson the PDF has also be updated.
I'm through till creating a PDF from my lesson. ie. I have a link say a PDF icon and which on click fetches the values(lesson)from the DB and displays it in a PDF file .
But the problem is , the values (contents) in the mdl_lesson_pages are stored as HTML contents (including HTML tags) . Can any one please give me some idea regarding hiding this html tags and display the content in the same format (style) I have attached a copy of my pdf file too.
Thanks in Advance !!!
Once the xml export is done, the PDF conversion could be done using fpdf (or even xml:fo, but I think the fpdf option is better). It should not be that difficult.