Comments (1)
As much as this is frustrating, the PDF is severely malformed - there's absolutely no support for a random font object being inserted at that position. The PDF generator went quite far off the rails of reasonableness and I imagine this is the only the first issue that came up. It's also not entirely out of line to raise a runtime error here - it's a total unexpected situation, and deleting the metadata isn't necessarily the right thing to do.
My policy for this kind of error is to wait and see if lightning strikes twice. I assume that if another user comes forward with the same issue, then it may be widespread enough to warrant mitigation. I'd also accept evidence that, for example, a particular application consistently generates files with this problem and so there's a reasonable expectation of finding other PDFs with the same issue. Until then, for the sake of my sanity, I'll have to wait till more data is available.
from pikepdf.
Related Issues (20)
- How to replace the value of an Object mapped to a variable HOT 1
- pikepdf, libjpeg, l HOT 1
- 8.11.0: pytest requires `conftest` HOT 5
- Add 2 overlaid images to page with transparency mask HOT 2
- Add type checking for setting XMP metadata HOT 1
- RDF/XMP generated by pikepdf is incorrect?
- Question on file compression. HOT 1
- Re-enable 32-bit wheels on Windows HOT 2
- While emplacing a pdf, it changes underlying page metadata incorrectly HOT 1
- The pdf doc has been linearized, but the property "fast web view" still is “no" HOT 1
- generic_type: type "ObjectStreamMode" is already registered! HOT 1
- `docinfo_from_xmp()` fails on reduced precision dates (`YYYY` / `YYYY-MM`) HOT 1
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 5: invalid continuation byte HOT 3
- [Feature] QPDFFormFieldObjectHelper setFormFieldName HOT 4
- pytest error: `-n` unknown HOT 2
- Specific Image with CCITT group 4 cannot be detected and treated HOT 2
- Missing sdist for 9.0.0 HOT 3
- pikepdf 9.0 fails to build on macOS HOT 3
- OSS-Fuzz Integration HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pikepdf.