Closed jasondunsmore closed 6 months ago
Confirmed via further testing with the demo:
~$ pdfinfo Directory-20240502-31943.pdf
Producer: FPDF 1.86
CreationDate: Thu May 2 09:19:43 2024 SAST
Custom Metadata: no
Metadata Stream: no
Tagged: no
UserProperties: no
Suspects: no
Form: none
JavaScript: no
Pages: 1
Encrypted: no
Page size: 612 x 1008 pts
Page rot: 0
File size: 1725 bytes
Optimized: no
PDF version: 1.3
Further testing shows that the page size selector does not change the result for any of the page sizes options available.
This line somehow always results in a zero value:
And so this always defaults to 'legal':
Description
When generating a PDF people directory, if a user selects the Letter page size, the report is generated with Legal page size instead.
I reproduced this with version 5.7.0 on the demo site: https://demos6.softaculous.com/ChurchCRMll4mjungns/DirectoryReports.php
Steps To Reproduce
Steps to reproduce the behavior:
Navigate to "People" -> "Dashboard" -> "People Directory" (under "Reports"). Select "Letter" Paper Size and click "Create Directory". A report is generated with the "Legal" paper size.
Expected behavior
The report should be generated with the selected "Letter" paper size.
Screenshots and/or logs