Thread:Extension talk:Pdf Export/MWlib issues

I had different issues using this extension with MWlib:
 * function wfLoadExtensionMessages seems to be no longer supported by mediawiki 1.21, changed to wfMessage
 * mw-render of an URL fails to connect for some reason, however mw-zip works correctly. So I changed the MwLibPdfConverter.php to first fetch the URL with mw-zip and then mw-render the resulting zip-file.
 * wiki authentication not supported by extension.
 * I added authentication support to MwLibPdfConverter.php by adding support for $wgPdfExportUsername, $wgPdfExportPassword and $wgPdfExportDomain variables


 * Could not generate PDFs for pages with spaces in their name.
 * This is because $skintemplate->thispage is used, which returns the page title with underscores instead of spaces. Replacing this by $skintemplate->titletxt solved the problem, as mw-zip seems to need the actual page title and not the page url.

My changes:

to file converters/MwLibPdfConverter.php

to file: PdfExport.php

Hope it can help someone.. or help improve this extension.