On Tue, Jan 27, 2026 at 1:58 AM 尼古拉特斯拉 <
20021...@gmail.com> wrote:
> My Questions:
>
> 1. Reason for Removal: Why was this useful feature removed from the current version? Was it due to technical reasons or design decisions?
Hi,
You can look in the git history to answer this question yourself, but
to save you time,
https://pdfium-review.googlesource.com/5491 deleted
the code in question. The commit description explains why.
> 2. Restoration Plan: Is there a plan to restore this functionality in future versions?
No such plans as of now. You can file a feature request at
https://crbug.com/pdfium/new, but there's no guarantee anyone is going
to get to this in the near future.
> 3. Alternative Solutions: If there's no restoration plan, are there other ways to achieve similar object compression effects?
Run the output PDF through some other PDF optimizer?
> 4. Migration Path: If we need to implement this ourselves, are there API guidelines or code examples we could reference?
- See
https://pdfium.googlesource.com/pdfium/+/main/CONTRIBUTING.md
for general contribution guidelines.
- There's no new API here. Probably just add an additional parameter
to FPDF_SaveAsCopy().
- Wouldn't the deleted code serve as a good example in this case? It
probably won't work out of the box in modern PDFium though, as the
code base has changed.