Forums | Mahara Community
Support
/
Enable PDF export option
28 August 2024, 8:55
Hello,
how can I enable the PDF plugin? I have added "$cfg->usepdfexport = true;" to config.php, and installed ghostscript and chromium-headless on our server. The PDF plugin still isn't enabled. Is there something else I need to do?
Thanks.
28 August 2024, 10:13
Hi Jin,
If you go to Admin menu > Extensions > Plugin Administration and look for the 'Plugin type: Export', it may tell you there what your next steps are.
Did you run 'make pdfexport' yet?
Kind regards,
Doris
28 August 2024, 10:42
Hi Doris,
here is what I have. I already installed chromium and ghostscript on my server.
I didn't run 'make pdfexport'. I didn't install my instance from the source code but from complied package.
Thanks.
28 August 2024, 12:08
Hi Jin,
What version of Mahara are you running?
The warning will tell you to install chrome or chromium when the expected version is not installed, and depending on the version of Mahara the version may be different.
In your codebase, look at the file: htdocs/export/pdf/lib.php
This file also has the function has_pdf_combiner() which checks for expected libraries, and again outputs the prompt to install things because the expected libraries are not found.
Hope that helps,
Doris