Hi:
Thanks for the update.
Version 1.9.7 still kept backward compatibility with a known patched version (in Github) of the abandoned “DK PDF Generator” addon. The version 1.9.8 crashed that addon again.
First of all, many thanks for the plugin and for updating it. After the update i encountered this error both on PHP 8.2 and 8.3
PHP Fatal error: Declaration of Psr\Log\NullLogger::log($level, string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::log($level, $message, array $context = []) in /wp-content/plugins/dk-pdf-NO/vendor/psr/log/src/NullLogger.php on line 22
Many thanks!
Hi there!
I saw there was an auto update on the plugin on friday, the plugin then was down completely over the weekend, think this was mostly because of a custom font I’ve integrated.
Fatal error: Uncaught Mpdf\MpdfException: Cannot find TTF TrueType font file "Roboto-Regular.ttf" in configured font directories. in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php:33 Stack trace: #0 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(3889): Mpdf\Fonts\FontFileFinder->findFontFile() #1 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(4184): Mpdf\Mpdf->AddFont() #2 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(18323): Mpdf\Mpdf->SetFont() #3 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Tag/BlockTag.php(386): Mpdf\Mpdf->setCSS() #4 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Tag.php(240): Mpdf\Tag\BlockTag->open() #5 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(13921): Mpdf\Tag->OpenTag() #6 /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/includes/dkpdf-functions.php(199): Mpdf\Mpdf->WriteHTML() #7 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/class-wp-hook.php(324): dkpdf_output_pdf() #8 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #9 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/plugin.php(565): WP_Hook->do_action() #10 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/class-wp.php(830): do_action_ref_array() #11 /var/www/vhosts/mythenforum.ch/httpdocs/wp-includes/functions.php(1336): WP->main() #12 /var/www/vhosts/mythenforum.ch/httpdocs/wp-blog-header.php(16): wp() #13 /var/www/vhosts/mythenforum.ch/httpdocs/index.php(17): require('...') #14 {main} thrown in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Fonts/FontFileFinder.php on line 33
When I copy the Roboto ttfs in the folder, it starts to work again, but the css seems not to work properly (font is not displayed and some other elements not in the right position).
In the PDF, the following errors are also being displayed:
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 91
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 94
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 97
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 100
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 103
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 106
Deprecated: Function strftime() is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/w-
p-content/themes/henrik-child/dkpdf/dkpdf-index.php on line 109
Also, I’ve found there Errors in the debug log:
[07-Oct-2024 06:29:20 UTC] PHP Deprecated: Creation of dynamic property DKPDF::$admin is deprecated in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/dk-pdf.php on line 75
[07-Oct-2024 06:34:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 16140
[07-Oct-2024 06:34:27 UTC] PHP Warning: Undefined array key "bgcolorarray" in /var/www/vhosts/mythenforum.ch/httpdocs/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 18613
Thank you for your help!
Jonas
]]>Thank you for updating the plugin.
I noticed, that after the update, the “PDF Custom CSS” is not applied to the generated PDFs anymore.
Could you check that?
]]>Just wanted to say a huge ‘thank-you’ for updating this plugin. It’s saved me a heap of work trying to re-engineer a site to use a different plugin. I really appreciate you giving the plugin a new lease of life!
]]>I am having php 7.4 and it gives me critical error when I click on download pdf button.
However the plugin works on test site with the same php and wordpress version.
Fatal error: Uncaught Mpdf\MpdfException: Invalid size representation “calc(100% – ( 0 * 30px ) )” in dk-pdf/vendor/mpdf/mpdf/src/SizeConverter.php:35 Stack trace: #0 dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(19781): Mpdf\SizeConverter->convert(‘calc(100% – ( 0…’, 180.00155555556, 3.8805555555556, false) #1 /dk-pdf/vendor/mpdf/mpdf/src/Tag/BlockTag.php(385): Mpdf\Mpdf->setCSS(Array, ‘BLOCK’, ‘DIV’) #2 dk-pdf/vendor/mpdf/mpdf/src/Tag.php(239): Mpdf\Tag\BlockTag->open(Array, Array, 7) #3 dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php(15310): Mpdf\Tag->OpenTag(‘DIV’, Array, Array, 7) #4dk-pdf/includes/dkpdf-functions.php(198): Mpdf\Mpdf->WriteHTML(‘ <div class=”dk…’) #5?/wp-includes/class-wp-hook.php(310): dkpdf_output_pdf(Object(WP)) #6dk-pdf/vendor/mpdf/mpdf/src/SizeConverter.php?on line?35
]]>I have few Notice and error with PHP 8
Deprecated: Required parameter $post follows optional parameter $field in /var/www/html/wordpress/ensa-normandie/wp-content/plugins/dk-pdf/includes/class-dkpdf-admin-api.php on line 287
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /var/www/html/wordpress/ensa-normandie/wp-content/plugins/dk-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 5519
Do you think this plugin will be available for PHP 8 ?
Thanks,
Karbou
This was an awesome plugin, but it no longer works – on multiple sites.
It exports a PDF, with a header graphic but no page content.
]]>Hi,
I cant’t get this shortcode [dkpdf-pagebreak]
running on my page, even if I try to use it in a code field. I use DIVI Pagebuilder with ACF.
Any ideas what to do?
KInd regards
]]>Hello!
I am needing help with this plugin.
I need to be able to download the PDF of the post in "Private" status. Is this possible by generating some extra function?
Currently when I try to download PDF from a private post I get "not found".
Entries are literary works from a contest, generated by ACF.
I cannot have the public entries since they should not be visible but only for a group of users in charge of reviewing the texts.
From already thank you very much
Manu
]]>
Hi,
I just noticed that when clicking on the PDF button the new page says there is a critical error on my site. Health stats and everything else on the page looks fine. Adding &debug=true to the link does nothing.
Any idea what I can do?
Thanks!
Hey,
I am using DK PDF to export PDFs from WP pages.
I have a 3 column layout but the PDF doesn’t show this: they are all broken, so that there is only 1 column.
How do I prevent the columns from breaking in CSS or the plugin settings ?
Kind regards
]]>The option to enable this for my CPT doesn’t appear. My CPT was created with Pods. Is there a known conflict here or is there some requirement for it to work with CPTs?
]]>I used this regex \{.*\} for making it work in new PHP versions (mpdf). I also commented lines from 15365 to 15377
the code is in my github https://github.com/wwwxkz/dk-pdf
]]>This plugin wants to load Font Awesome 4.3.0 via https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css
(enqueued as font-awesome
).
I think it’d be helpful to have this updated to use FA 5.x or even 6.x now that this is available (5.x might be good for now since it does bridge the update a bit and not much has moved over to using 6.x yet.)
Additionally, I’d love to see a checkbox to toggle the inclusion of FA on public pages. I have FA being loaded in from elsewhere so having this also try to load Font Awesome can result in a redundant copy (which then might also have conflicting styles due to it loading an older version.) I know this can be done via wp_dequeue_style
& wp_deregister_style
, but I think it’d be nice if something like this didn’t need to have code added to handle this when it could be a simple checkbox on the existing settings page.
Hi there
On pages translated with TranslatePress, the generation of PDFs with DK PDF doesn’t seem to work. I’ve just got a blank PDF. Does anyone else have the same problem?
]]>Upgrading to PHP 8.0 breaks this plugin and causes a critical error. It appears to be abandoned, but if anyone has an issue, reverting back to PHP 7.4 worked for us. For now…
]]>Hi
I have a problem with the DK PDF.
It shows me the shortcodes of wpbakery. That is very ugly ^^
How can I hide the shortcodes?
example:
[vc_row][vc_column][vc_images_carousel images=”908,1792,910″ img_size=”full”
onclick=”link_no” speed=”6500″ autoplay=”yes” hide_prev_next_buttons=”yes”
wrap=”yes”][/vc_column][/vc_row][vc_row bg_type=”theme_default”][vc_column
width=”1/3″ el_class=”vc_cta3-container”][vc_column_text el_class=”vc_general
vc_cta3 submenue”]
Thanks very much
]]>Will this be maintained in the future?
I see that the plugin has been removed from Code Canyon.
Hello,
sometimes it happens that the end of the page just shows a headline and the following paragraph appears on the next page. Is there a way to add a shortcode/code snippet in my text to tell your plugin to make a “page break”?
Hello, since this morning, the images on the PDFs are no longer displayed and are replaced by red crosses.
We haven’t made any updates to the site.
We tried the line of code:
$ mpdf-> showImageErrors = true;
But the problem is not solved.
To see the problem: “sale” tab, click on “PDF”
WordPress Version: 4.9.18
PHP: 7.0.33
DK-PDF versions: up to date
Can you help me please?
]]>This plugin does not work when php 7.4 and higher is selected … an fatal error comes up.
Any change this plugin will be updated so it will work with php 7.4 and up?
Thanks!
Is there a way to stop the images from being rotated when the pdf is created?
]]>I need assistance so my images that are created stop rotating vertically. using gravity views, and when create pdf, the images rotate 90 degrees. Also want to increase font size on pdf creation
]]>Hello,
I have some problem with exporting post revision into PDF through DKPDF, I set the args array in dkpdf_get_post_types() to both true, but post revision makes an pdf which content is: “No results”
You can see and try this here: https://www.goyourownwaynow.com/physics/nahlizeni-do-vesmiru-2-dil/?lang=en
Any tips?
]]>Hello,
Could you please provide a step-by-step instruction on how to include custom fonts in the PDF?
This is what I did:
1. added files SanomatSansRegular.woff and PortraitTextLFWeb-Bold.woff2.ttf in the dk-pdf/templates folder
2. edited the dkpdf-index.php file. Added
@font-face {
font-family: 'Sanomat Sans Regular';
src: url(SanomatSansRegular.woff);
}
@font-face {
font-family: 'Portrait Text LF Web Bold Regular';
src: url(PortraitTextLFWeb-Bold.woff2.ttf);
}
inside the <style> tag and
<p style="font-family: 'Sanomat Sans Regular';">test test</p>
<h1 style="font-family: 'Portrait Text LF Web Bold Regular';">Test test</h1>
inside the <body> tag
3. Created a test.html file inside the dk-pdf/templates folder and did the same as in step 2. The fonts are working fine in the test.html file but they’re not working in the PDFs
I also tried to follow the instructions in this thread https://www.ads-software.com/support/topic/change-font-in-pdf/ but it seems that the mpdf file structure has changed – I couldn’t find the config_fonts.php file
Thank you
]]>Hello. Your plugin wonderful!
But, there is a need to add custom fields to the pdf structure.
This link dont’t working -https://wp.dinamiko.com/demos/dkpdf/doc/how-to-use-dk-pdf-templates-in-your-theme/.
How can I do that in function.php or something else?
]]>Hi,
I don’t know if I am the only one, but when I fill in other text for the PDF Buttom text, in the WP MPDF settings, then this doesn’t change the text. The text is still the same as “PDF Button”. In fact I want not text at all. Only the PDF image as button is enough for me. So, when I let the custom text empty, the text is still “PDF Button”.
I will appreciated it when there will be maybe an update so this setting could work. Or if there will be someone who knows to change that in the source file, because I am not a PHP programmer (only a beginner).
Thanks in advance.
How do I view or reset the PDF protection password on downloaded PDFs?
]]>Is there a way to remove special characters like “” from the post title when the pdf is downloaded?
]]>