v6.7: Printing Reports to PDF creates huge files (40 MB), blank first page and artefacts
Support guidelines
- I'm smart and I read the support guidelines
Use of AI
- I'm a real person and wrote this bug without assistance from AI.
I've found a bug and checked that ...
- ... the documentation does not mention anything about my problem
- ... there are no open or closed issues that are related to my problem
- ... it's definitely a Firefly III issue, not me
Description
Printing a report to PDF creates huge files. Printing a 70 page report in Firefox in v6.7 results in a 42MB document. That same report used to render in a few hundred KB in v6.6.6 before I updated a few hours ago.
In my PDF, there are four 374×17836px images on every page, ~160 KB each. They look like the table frame rendered around the report. Additionally, the options card with the column tickboxes prints and there is a blank first page on every report, neither of which happened in v6.6.6,
Injecting the following CSS into the page with the Stylus browser extension fixes the biggest problems I described and brings the PDF back down to 1.5MB:
@media print {
.no-print { display: none !important; }
* { box-shadow: none !important; }
html body .app-wrapper:not(.d-print-none) { display: block !important; }
a[href]::after { content: none !important; }
}(Disclosure, I did not write above CSS myself, but thought it might be helpful in reproducing quickly. It does not make the PDF look great, it just removes the worst offenders.)
Thank you for a wonderful project!
Debug information
Debug information generated at 2026-09-16 22:23:53 for Firefly III version v6.7.2.
| System information | |
|---|---|
| Item | Value |
| Firefly III | v6.7.2 |
| Build time | 2026-09-16 09:47:31 Europe/Amsterdam (1789544851) |
| PHP version | 8.5.9 (64bits) / fpm-fcgi / Linux x86_64 |
| BCscale | 12 |
| Error reporting | Display: Off, reporting: ALL errors |
| Max upload | 104857600 (104857600) |
| Database drivers | *mysql*, pgsql, sqlite |
| Firefly III information | |
|---|---|
| Item | Value |
| Timezone | |
| App environment | production, debug: false |
| Layout | v1 |
| Logging | notice, stack / audit_daily, audit_stdout |
| Cache driver, session driver | file, file |
| Default language and locale | en_US |
| Trusted proxies | ** |
| Login provider & user guard | eloquent / web |
| Login headers | N/A + N/A |
| Last cron job | 2026-06-03 22:00:00 (3 months ago) |
| Mailer | smtp |
| Exchange rates | Disabled, downloads disabled |
| RB-column | Disabled |
| User-specific information | |
|---|---|
| Item | Value |
| User | #1 of 1 |
| User flags | :credit_card: :wrench: :email: |
| Primary currency | USD |
| Convert to primary currency? | Disabled |
| Session start | 2023-01-01 00:00:00 |
| Session end | 2026-09-16 23:59:59 |
| View range | 1M |
| User language | |
| User locale | |
| Locale(s) supported | .utf8: :white_check_mark: .UTF-8: :white_check_mark: |
| User agent | Mozilla/5.0 (X11; Linux x86_64; rv:155.0) Gecko/20100101 Firefox/155.0 |
Steps to reproduce
- Create any long report (e.g. multi-year audit report)
- Ctrl-P in browser
- In print dialog, select "Save as PDF" and save.
Additional info
I am currently doing this on a Linux machine with Librewolf 155 (not Firefox), but I'm pretty sure it is purely a CSS issue.
Source: firefly-iii/firefly-iii