I saw that too after I asked about loading the font. The DejaVu font is included with dompdf, the tool that the PDF add-on is built upon. The body should be this: 'body { font-family: Dejavu Sans, sans-serif; }';. You truncated it when you copied it from the KB example.
Yes, I know that I missed a part (I did intentionally for a while to check), I have the full content like following and still doesn't work.
add_filter('frm_pdfs_css', 'custom_font_pdfs_css', 10, 2);
function custom_font_pdfs_css( $css, $args ) {
$custom_css = 'body { font-family: Dejavu Sans, sans-serif; }';
return $css . $custom_css;
}
If you copied the code as shown in the KB and it's not working, I suggest you open a ticket with Strategy 11.
Renewal of the license, actually buying a new license as mine is too old to renew, is needed in order to have the support to open a ticket. That is $200. I thought it would be something simple I just miss. If there is no simple solution from the community I will work it around without the PDF functionality, sadly.
Many of the community volunteers are full-time developers in their own right. Most custom code is not going to be a simple solution. In fact, to have someone write custom code will cost much more than the $200 it costs to renew your license.
In the meantime, here is a list of all the WordPress filters in the Formidable PDFs add-on. All have links to the Formidable Knowledgebase except frm_content. Formidable PDFs does not have any action hooks, only filters. Maybe you can find something you can use. This documentation is for the latest version of the add-on though. If you're not up to date with your license, you research results may be different.
https://formidable-masterminds.com/codexv2-filter-list/?header_id=3636
Thank you very much!
Please login or Register to submit your answer