Title: PHP Error and wrong pdf output
Last modified: October 5, 2016

---

# PHP Error and wrong pdf output

 *  Resolved [haelodadon](https://wordpress.org/support/users/haelodadon/)
 * (@haelodadon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/)
 * I installed your free dk pdf to test if it works with formidable (most formidable
   users say this dk pdf plugin works well with the form) but as I try it, it only
   prints the page where the button is displayed, not the form entry which was supposed
   to be printed.
 * I reached onto formidable support and they said you have issues with your free
   plugin and this is the error that they got:
 * Deprecated: Methods with the same name as their class will not be constructors
   in a future version of PHP; mPDF has a deprecated constructor in /Users/Jamie/
   Sites/features/wp-content/plugins/dk-pdf/includes/mpdf60/mpdf.php on line 89
 * Hope you can help. thanks.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8270648)
 * Hi haelodadon,
 * If I understood you, you have a page with a form and when you click the PDF button
   the form is not printed in the PDF?
 * about the error ‘Deprecated: Methods with the same name…’ are you getting this
   error in your browser? or did you copied this error from a support forum?
 * Thanks.
 *  Thread Starter [haelodadon](https://wordpress.org/support/users/haelodadon/)
 * (@haelodadon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8273509)
 * The dkpdf-button shortcode is added in the entries/view section of the formidable
   pro form so that it prints the entries of the specific form. And thru a shortcode,
   the entries/view will be displayed to a page. And once the dkpdf button is clicked,
   it will open a pdf page of a specific entry. This is how your plugin is supposed
   to work with formidable pro.
 * Here’s a link from the formidable forum with instructions about integrating your
   plugin with formidable: [https://formidablepro.com/help-desk/to-jamie-dk-pdf-plugin/](https://formidablepro.com/help-desk/to-jamie-dk-pdf-plugin/)
 * But what happens instead, is the page where the shortcode for entries is added,
   is what the dkpdf displays as pdf.
 * The error is given to me by the formidable support team.
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8282870)
 * Hi haelodadon,
 * I just did a quick test installing the free version of Formidable Forms, I added
   the shortcode ([formidable id=”3″]) in a page, you can see it here:
    [http://wp.dinamiko.com/demos/dkpdf/formidable-forms/](http://wp.dinamiko.com/demos/dkpdf/formidable-forms/)
   As you can see the form is printed in the PDF, I didn’t add CSS for the form,
   but that can be done adding the CSS in DK PDF CSS setting (grabbing CSS from 
   Formidable or adding your own).
 * What DK PDF does is get the HTML in the page and generate a PDF, in the above
   example is getting an html form, doesn’t matter if that was generated with Formidable
   Forms or with another plugin.
 * about this:
 * > The dkpdf-button shortcode is added in the entries/view section of the formidable
   > pro form so that it prints the entries of the specific form.
 * not sure if I can reproduce this in the free version, if so, please post here
   the steps for reproduce it.
 * another option will be trying formidablepro-2-pdf, did you tried it?
    [https://wordpress.org/plugins/formidablepro-2-pdf/](https://wordpress.org/plugins/formidablepro-2-pdf/)
   I didn’t try it but seems more focused in Formidable Form.
 * Thanks!
 *  Thread Starter [haelodadon](https://wordpress.org/support/users/haelodadon/)
 * (@haelodadon)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8294660)
 * Yes, we tried it, but doesnt seem to work.
 * And the dkpdf works at first, then suddenly, while testing it, it did not work,
   not sure why.
 * Just create a View for a specific form and add the dkpdf shortcode in the content
   of that view. Publish the View to a page and that should be it.
 * —
 * Publish view: [https://formidablepro.com/knowledgebase/publish-a-view/](https://formidablepro.com/knowledgebase/publish-a-view/)
 * —
 * 1. Install DK PDF.
 * 2. Go to your WordPress Settings > DK PDF Settings. Configure the settings that
   you want. The only thing I changed was the button text and align settings. I 
   did NOT check anything for “Post types to apply”.
 * 3. Publish your View on a page if it isn’t published already.
 * 4. Insert [dkpdf-button] in the content of the View that you want to print.
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8303087)
 * Hi haelodadon,
 * Seems that create a view is only possible with the pro version of Formidable 
   Forms:
    [https://formidablepro.com/knowledgebase/create-a-view/](https://formidablepro.com/knowledgebase/create-a-view/)
   If so, I can’t create a view because I don’t have the pro version.
 * I suggest you try another PDF plugin, did you tried these?
    [https://wordpress.org/plugins/formidablepro-2-pdf/](https://wordpress.org/plugins/formidablepro-2-pdf/)
   [https://wordpress.org/plugins/pdf-print/](https://wordpress.org/plugins/pdf-print/)
 * Thanks.
 *  Thread Starter [haelodadon](https://wordpress.org/support/users/haelodadon/)
 * (@haelodadon)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8308503)
 * I’ve tried the first plugin you gave and it is not working for me.
 * What only confuses me is that your plugin used to worked on the first 3-4 tests,
   then on the 5th test or preview of the pdf, it started not to work. So not sure
   what went wrong.
 * Was there no php error? because the formidable staff themselves said it is the
   issue.
 *  Thread Starter [haelodadon](https://wordpress.org/support/users/haelodadon/)
 * (@haelodadon)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8366590)
 * Hi. If ever I give you the admin logins to the site for you to check, can I give
   it to you privately? And can you look into it?
 * How can I provide you the logins privately?
 * Just please do check. We still believe your plugin is the only way this can be
   done. And we’ll be purchasing the premium one if this works.
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8375748)
 * Hi haelodadon,
 * OK write to me at [emili.castells@dinamiko.com](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/emili.castells@dinamiko.com?output_format=md)
   with access login and the steps for reproducing the problem.
 * Thanks,
    Emili

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘PHP Error and wrong pdf output’ is closed to new replies.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

## Tags

 * [formidable forms](https://wordpress.org/support/topic-tag/formidable-forms/)

 * 8 replies
 * 2 participants
 * Last reply from: [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/php-error-and-wrong-pdf-output/#post-8375748)
 * Status: resolved