restezconnectes / send-pdf-for-contact-form-7

Send the PDF for Contact Form 7 plugin will allow you to recover the data yourself via your form to insert them into a PDF built and prepared by you.
https://restezconnectes.fr/tutoriel-wordpress-lextension-send-pdf-for-contact-form-7/
GNU General Public License v3.0
15 stars 17 forks source link

Signature image size not working & header not showing #49

Closed pietervandenaarsen closed 11 months ago

pietervandenaarsen commented 11 months ago

Hi Florent,

I am amazed at how well this plugin is put together! On to the issues though.... ;-)

For reference, here's the actual resulting pdf: Machtiging-pieter20_20231104.pdf And here's the preview: Preview of machtiging-pdf

  1. Signature size

I use the signature addon (by Breitzstorm). When I insert the image in the pdf, the image is displayed super small. adjusting the size through width and/or height, doesn't work.

I've tested other images, they work fine. So it is specific to the signature images.

When I go to the image url, it shows in normal size (not small). (https://vdals.nl/wp-content/uploads/wpcf7_signatures/your-signature-1699056163.png)

I use this code for the image: image (I've also tried with '/>' at the end).

This is the result I get: image

  1. Header not showing

Also, there is no header showing. But the preview is showing the header.

Here's the top section of the preview: image

Here's the top section of the actual pdf: image

Also notice the difference in line breaks between the preview and the actual pdf.

I really hope this helps and would love to hear from you if I've made a mistake or if it is a bug.

Best regards,

Pieter

restezconnectes commented 11 months ago

Hi!

I checking that soon!

Thanks

restezconnectes commented 11 months ago

Hi!

You can testing my demo form: https://demo.restezconnectes.fr/send-pdf-for-contact-form-7-debug-form/

I've adding Signature field and header on each page.

Thanks

pietervandenaarsen commented 11 months ago

Tested it. Works fine, with normal signature size.

So is the conclusion that this sizing issue is something that only occurs with my particular Wordpress setup? And if yes, what should I look for to fix it?

Thanks!

restezconnectes commented 11 months ago

Hi!

My code is: <img src="[signature-853]" width="150" />

like your's.. but you can change width...

Thanks