Topic on User talk:Pastakhov

Jump to navigation Jump to search

mPDF - export only main part of wiki

6
Lobokn (talkcontribs)

Hi Pavel,

We use your mPDF extension in our mediawiki. But if I do export to pdf I got in the pdf file

whole content of the page. Including left menu, header and footer. Is there any way how to

export to pdf only main content (main window) of the mediawiki page ?

We use mediawiki 1.27 and mpdf 5.7.4.

Thank you

Luboš

Pastakhov (talkcontribs)

Hi Luboš, it should export only main content, it depended of skin styles. Do you view left menu and footer on page preview (when you pressed print in your browser).

And try latest mpdf version 0.6.0, maybe the problem already fixed there.

I tested on my mediawiki 1.27 + mpdf 0.6.0, it exports the same as printable version (it should be exactly so)

Lobokn (talkcontribs)

Hi,

I tried 0.6.0 , but the result is the same. There is no left menu in printable version .

I used monobook skin. Du you have any idea where can I manage what can bee

seen in printable version in monobook skin ?

Thanks

Luboš

Pastakhov (talkcontribs)
Lobokn (talkcontribs)

Hi,

finally I got it working with one exception.

In printable version I can see page, with page title, but if I export it to pdf there

is no page title in content of pdf. Page title is only as name of the generated file.

Do you have any suggestion, where can I take a look or what to set different way ?

Thanks

Luboš

Pastakhov (talkcontribs)
Reply to "mPDF - export only main part of wiki"