Summary: | Saving PDF form data multiples times, increases PDF size (possible leak / not removing previous form data) | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Andrew Rembrandt <public> |
Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | aacid |
Priority: | NOR | ||
Version First Reported In: | 24.08.3 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Blank form with no saves
Form after 1st save Form after 50 saves (in Okular) |
Description
Andrew Rembrandt
2024-11-17 10:16:09 UTC
Created attachment 175876 [details]
Form after 1st save
Created attachment 175877 [details]
Form after 50 saves (in Okular)
P.S. The https://github.com/pdfcpu/pdfcpu cli-util allows resetting the PDF data and you'll see the file size return to 45KB: > pdfcpu form reset 'Sample Form Test - 50 or so saves.pdf' 'Sample Form Test - Reset 50 saves Form Data.pdf' This is almost by definition given how PDF files work, we're not rewriting the file, only appending to it so yeah, each time you change the thing and save it, the file grows. rewriting it is too dangerous so this is not going to change. |