Topic on Project:Support desk

mw-render does not embed the WIKI page images in downloaded PDF file

1
SanjayKSahu (talkcontribs)

We have configured MediaWiki with mwlib server to render HTML pages to PDF using 'mw-render'.

Following is the 'mw-render' command successfully produces a PDF document for the Wikipedia article page Physics

$ mw-render --config http://en.wikipedia.org/w/ --username='xxxx' --password='yyyy' --output test.pdf --writer rl Physics


But, We need to configure same for MediaWiki so that MediaWiki API could render PDF using following configuration in LocalSetting.php .


We are using LDAP setup authentication for our internal wiki site. and I am able to render the PDF file using the following command.

$ mw-render --config https://wikitest.com/wiki/  --username='xxxx' --password='yyyy' --output test.pdf --writer rl Apache


But, here the issue is, The downloaded PDF file does not includes the images visible in the WIKI page. And throws following ERROR on shell. Any help appreciated.


"HTTPError: HTTP Error 401: Unauthorized

<Greenlet at 0x7f5973334370: download_to_file('https://wikidev.com/wiki/images/2/2b/Stra, '/tmp/tmp-mw-renderumcvy4/tmpDnRbLS/nuwiki/images/, '/tmp/tmp-mw-renderumcvy4/tmpDnRbLS/nuwiki/images/)> failed with HTTPError "

Reply to "mw-render does not embed the WIKI page images in downloaded PDF file"