Joomla 6 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 14. Oktober 2025 alle unsere Joomla Erweiterungen mit Joomla 6 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 eigenständige Dokumentationen Visforms Joomla 4, Visforms Joomla 5 und Visforms Joomla 6.

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.

Wichtige Angaben für fast jede Frage:
V1: Welche Visforms-Version läuft?
V2: Welche Joomla-Version läuft?
V3: Welche PHP-Version läuft?

Background image size for PDF mail attachments

Mehr
5 Jahre 11 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
5 Jahre 11 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 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 6:
docs.joomla-6.visforms.vi-solutions.de/docs/
Bitte immer nur 1 Frage pro Thema stellen :-).

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

Mehr
5 Jahre 11 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
5 Jahre 11 Monate her - 5 Jahre 11 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 6:
docs.joomla-6.visforms.vi-solutions.de/en/docs/
Please ask only 1 question per topic :-).

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

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

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum