PDF Template- Logo in footer rotated #4984

Open
opened 2026-02-20 16:27:24 -05:00 by deekerman · 1 comment
Owner

Originally created by @SinergiaCRM on GitHub (Mar 27, 2023).

Issue

When generating a PDF document that uses a template with several pages, if the footer has an image, the image appears inverted on all pages except the last one. The module has the following behavior:

  • If margin footer < margin bottom -> The logo appears rotated.
  • If margin footer > margin bottom -> The logo appears well and the size of the logo on all pages (except the last one) is proportional to the difference between both margins.

Expected Behavior

The footer should look correct.

Possible Fix

Steps to Reproduce

  1. Go to PDF-Templates.
  2. Generate a template that has an image in the footer and plenty of text in the content.
  3. Go to a record and select Print as PDF.
  4. Check that the logo is rotated.

Context

High priority.

Your Environment

SuiteCRM Version used: 7.12.10
Environment name and version: MariaDB 10.6.5, PHP 7.4
Operating System and version: Ubuntu 20.04

Originally created by @SinergiaCRM on GitHub (Mar 27, 2023). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue When generating a PDF document that uses a template with several pages, if the footer has an image, the image appears inverted on all pages except the last one. The module has the following behavior: - If margin footer < margin bottom -> The logo appears rotated. - If margin footer > margin bottom -> The logo appears well and the size of the logo on all pages (except the last one) is proportional to the difference between both margins. #### Expected Behavior The footer should look correct. #### Possible Fix #### Steps to Reproduce 1. Go to PDF-Templates. 2. Generate a template that has an image in the footer and plenty of text in the content. 3. Go to a record and select Print as PDF. 4. Check that the logo is rotated. #### Context High priority. #### Your Environment SuiteCRM Version used: 7.12.10 Environment name and version: MariaDB 10.6.5, PHP 7.4 Operating System and version: Ubuntu 20.04
Author
Owner

@piciuriello commented on GitHub (Jul 25, 2025):

I have submitted a PR to TCPDF library that should fix this problem: [(https://github.com/tecnickcom/TCPDF/pull/823)].

@piciuriello commented on GitHub (Jul 25, 2025): I have submitted a PR to TCPDF library that should fix this problem: [(https://github.com/tecnickcom/TCPDF/pull/823)].
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4984
No description provided.