- 🇩🇪Germany jan kellermann
Drupal 7 is end of live.
If you want to use PDF using mPDF → for your Drupal 10/11 please checkout new version 3.x → .
Hi to everyone,
I hope this is the right place to post my issue, sorry I'm quite new to Drupal..
Hope someone with enough patience will help me.
I'm trying to generate a pdf with the PDF using mPDF api function pdf_using_mpdf_api
in a custom PHP action in Rules.
The action is triggered when
here the php code I've put in the action (as reported in the reference readme.txt):
pdf_using_mpdf_api("<html><body>Hello</body></html>", "mypdftest");
At first attempt I got an Ajax error on the VBO displaying an Error 200 and no pdf generation at all.
then I set the PDF using mPDF option to "F" (Save to Server) and I was able to produce the file but still the VBO was stopped with Error 200:
An error has occurred.
Please continue to the error page
×
Error message
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=1019&op=do StatusText: OK ResponseText:
I tried to increase the memory (512MB) and timing (180s) of php in .htaccess and still I have the same problem..
I tested the PDF using mPDF module through the drupal interface ("Generate PDF" tab from the node that was set to have the permission to print the pdf) and it is working ..
Notes:
Any idea / suggestion ?
Thanks in advance,
Martino.
Closed: outdated
2.0
Miscellaneous
Drupal 7 is end of live.
If you want to use PDF using mPDF → for your Drupal 10/11 please checkout new version 3.x → .