https://github.com/iron-software/pdfiumissue1893
Pdfium issue 1893
https://github.com/iron-software/pdfiumissue1893
Last synced: 3 months ago
JSON representation
Pdfium issue 1893
- Host: GitHub
- URL: https://github.com/iron-software/pdfiumissue1893
- Owner: iron-software
- Created: 2022-11-30T04:15:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T06:02:33.000Z (about 3 years ago)
- Last Synced: 2025-03-21T20:39:11.270Z (10 months ago)
- Language: C
- Size: 1.63 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PdfiumIssue1893
For https://bugs.chromium.org/p/pdfium/issues/detail?id=1893
## Description
Issue: Page content matrices are broken after removing an object
Input: elvis.pdf
Output: result.pdf
## Process
1. open document
2. load page & object
3. remove object
4. generate content
5. close page
6. save doc bytes to disk
## Before and After

## Which Object is Being Removed?

## Workaround
Invoke FPDFPage_TransFormWithClip() and FPDFPage_SetMediaBox() upon opening a document (without actually changing its size) in order to "reset" or re-calculate the apperance streams.
Set use_fix=true to demonstrate the workaround.