Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Background image size for PDF mail attachments

Mehr
3 Jahre 10 Monate her #6896 von Oleg
Hello,
I need attach PDF document form with subscriber data to mail. But I can't to place Background image (A4 organization document form with header and footer) to fill the A4 page strictly; in result PDF Background image (jpeg or png file) stretches approximately 4 times. It not depends from Background image resolution. Is it technique to fill A4 page document with Background image?

Mehr
3 Jahre 10 Monate her #6900 von Administrator AV
Administrator AV antwortete auf Background image size for PDF mail attachments
Hi,

I'm sorry for your trouble.
I looks, as if maybe there is a problem with the scaling, because this is the second time, such a problem is reported.
The other user solved the problem the following way:
They created an image 7000 x 5000 Pixel and put the Background-Image with a resolution of 3508 x 2480 px (= A4) into the upper right corner. The rest was just filled with the background-color.
This obviously is a workaround, which hopefully will work for you, too.
I will try to check into the feature as soon as possible and provide a more adequate solution.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Mehr
3 Jahre 10 Monate her #6901 von Oleg
Hi,
I create this file (with black background-color). Result see in file.

Mehr
3 Jahre 10 Monate her #6913 von Oleg
After investigations on my site the temporary solution:
1) Image 7000 x 9800 (wight x height) pixels;
2) Background-Image with a resolution of 2480 x 3508 px into the upper LEFT corner.

Mehr
3 Jahre 10 Monate her - 3 Jahre 10 Monate her #6927 von Administrator AV
Administrator AV antwortete auf Background image size for PDF mail attachments
Hi,

I was finally able to look into this problem.
This actually is a bug in Visforms since Version 3.13.9.
For security reason, I switch to a newer version of the tcpdf library, then.
Because this newer version has modifitions to the way, how the page size is messured, I had to adapt my code.
Basically there is now a miscalculation in the page size, that effects the calculation of the background image size.

I will release a bugfix as soon as possible.
Here is the modified code.

Open administrator\components\com_visforms\helpers\pdf\visTCPDF.php
(please make sure that you have a backup of the file, before you make any modifications).

Replace the code at line 43 and 44
Code:
$this->pageSize[0] = (int) $this->pageSize[0]; $this->pageSize[1] = (int) $this->pageSize[1];

With
Code:
$this->pageSize[0] = (int) $this->pageSize[0] * 25.4 / 72; $this->pageSize[1] = (int) $this->pageSize[1] * 25.4 / 72 ;

After that, using the original background image with the proper 2480 x 3508 solution should work.


Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
Letzte Änderung: 3 Jahre 10 Monate her von Administrator AV.

Mehr
3 Jahre 10 Monate her #6939 von Oleg
Now all work fine. Thank you, Aicha.

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum