i integrated HTML2FPDF into mediawiki and it seems to work... now my question is if there's a better methode...
class OutputPage got an new member called $pdfText.. I duplicated the Output and out function... then i fill the body in $pdfText.. then i used HTML2FPDF (www.fpdf.org, http://html2fpdf.sourceforge.net/) to create a nice PDF... for example http://www.mikrocontroller.net/wiki/PSoC gets http://www.mikrocontroller.net/wikifiles/d/d3/Test.pdf so this is more or less what i want (copyright,... will be added if the rest is ok ;) btw this is not my wiki... the changes are running on my local machine but there is a discussion on this wiki where this issue came up)
this should be right but now to my real problem..how to get a PDF-button in the bar where edit,watch...
my changes are:
in SkinTemplate.php wfProfileIn( "$fname-pdf" ); ... wfProfileOut( "$fname-pdf" );
index.php gets a pdf action
languages/Language.php +ta['ca-pdf'] = new Array('p','Make a PDF file from this Article.');
languages/LanguageDe.php +'tooltip-pdf' => 'Sie können aus diesem Artikel eine PDF-File erstellen. [alt-p]', +'pdf' => 'PDF',
are these the right places to add this functinality ?? or will this bring translation problems or something like this on the plan ??
i hope sb can help me... if it's ok i'll look over my code once again and make it a bit more nice looking...
73 de oe6jwf / hans wilhelm
wikitech-l@lists.wikimedia.org