fkrauthan
Forum Replies Created
-
Forum: Plugins
In reply to: [wp-mpdf] Setting a PDF templateYeah as the error indicates it seem to be not supported. I would checkout the link (and reach out to the support of the fpdi library) to see if they can help what tool you can use to make your PDF compatible.
Forum: Plugins
In reply to: [wp-mpdf] Setting a PDF templateSo you placed your custom theme in `
wp-content/wp-mpdf-themes/and in the same folder the PDF template? And then you selected the correct theme from the list and it still does not work? No PDF templates should be just a standard PDF file. Otherwise I recommend turning on error reporting/check the logs on your PHP server and see if that gives you more details of what exactly is failing.Forum: Plugins
In reply to: [wp-mpdf] Setting a PDF templateYou need to specify the
pdf_template_pdfpageto be relative to the theme folder. So in your example it should be placed inwp-content/wp-mpdf-themes/. So if the filewp-mpdf_LetterTemplate.pdfis placed in that folder you can just set it as$pdf_template_pdfpage = 'wp-mpdf_LetterTemplate.pdf';As for your other question. You can define
global $pdf_formatandglobal $pdf_orientationand set them in your custom template. For allowed values see the mpdf library documentation.Forum: Plugins
In reply to: [wp-mpdf] Shortcode support?Perfect glad it now all works as expected.
Forum: Plugins
In reply to: [wp-mpdf] Shortcode support?Ok glad it works. There are a couple of arguments but none to allow you to change the PDF icon size.
To for example open in a new tab you can try
[mpdfbutton opennewtab=1]As for images not showing up I recommend looking through this support forum and your PHP error logs. In most cases it is because of missing permissions in the cache folder or some other limitation that prevents the PDF library from downloading/accessing the images.
Forum: Plugins
In reply to: [wp-mpdf] Shortcode support?Hmm I tried adding
[mpdfbutton]into a post article and it worked. Do you have documentation about the block system you are using? Also did you made sure to update to version3.9Forum: Plugins
In reply to: [wp-mpdf] Shortcode support?I just added the short-code
mpdfbuttonto the upcoming3.9plugin release. I am not 100% sure if its going to work for your use-case but please let me know.Forum: Plugins
In reply to: [wp-mpdf] Fatal Error – “\Psr\Log\LoggerAwareInterface”No problem. Glad it resolved itself. For a second I was really worried that I published a fully broken version and no one told me.
Forum: Plugins
In reply to: [wp-mpdf] Fatal Error – “\Psr\Log\LoggerAwareInterface”It looks like the SVN server is behaving strange right now. Can you try re-installing the plugin in a couple of hours? From my side the missing file exists and is correctly published (as besides of you no one has reported that issue).
Forum: Plugins
In reply to: [wp-mpdf] Fatal Error – “\Psr\Log\LoggerAwareInterface”Hmm that is very strange, for some reason trying to access the folder on wordpress SVN repo it errors out. Looks like some WordPress plugin repo bug. You can actually see that the last change did upload the files: https://plugins.trac.wordpress.org/changeset/3031867/ I will reach out to wordpress support and see what is going on.
Forum: Plugins
In reply to: [wp-mpdf] How to add custom template?Copy one of the existing templates (.php and .css) and change the name into your
/wp-content/wp-mpdf-themesfolder. Then you can select it on your wp mpdf settings page.Forum: Plugins
In reply to: [wp-mpdf] Regarding Japanese Language SupportMaybe this article can give you more tips: https://mpdf.github.io/fonts-languages/fonts-in-mpdf-7-x.html (mpdf is the PDF lib my plugin uses). The plugin currently uses version
8.2.If you need to adjust the
mpdfinstance itself there is a filter calledmpdf_adjust_settingsthat gets the mpdf reference passed in and allows you to call any method on it (to for example add additional fonts etc)Forum: Plugins
In reply to: [wp-mpdf] Regarding Japanese Language SupportYou can try to play around with the Codepage setting on the admin page. That might be able to get it working.
Forum: Plugins
In reply to: [wp-mpdf] There has been a critical error on this site.No problem. Glad it was an easy fix of downgrading a dependency.
Forum: Plugins
In reply to: [wp-mpdf] There has been a critical error on this site.Ok I am in the process of releasing version
3.8.3that downgrades psr/log back to version 1. Let me know if that fixes your problem after updating.- This reply was modified 2 years, 3 months ago by fkrauthan.