Comments (5)
Any chance you can provide the input file? I can easily fix the problem, but I'd like to see why your file causes this issue.
If you can't share the whole PDF, could you extract the XMP metadata object?
import pikepdf
p = pikepdf.open('1.pdf')
data = p.Root.Metadata.read_bytes()
from pikepdf.
I already have the fix for this in the master branch (commit d31ea8f), but I have not released it because my test suite currently fails on macOS for some arcane reason (exception handling with subclasses across library boundaries in the C++ ABI) that I haven't been able to figure out yet. I'm a little reluctant to create a release that won't work everywhere.
If this is a showstopper for you feel free to pull. You should be able to cherrypick the aforementioned commit without needing to recompile the C++ side since it's a Python only fix.
from pikepdf.
Seems to happen with every file created with SimpleScan on Linux. Here is an example file:
https://codeberg.org/rsmuc/temp/src/branch/master/example.pdf
from pikepdf.
This bug is affecting me too with the example file http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf
from pikepdf.
Fixed in v1.1.0
from pikepdf.
Related Issues (20)
- Mypy implicit reexport HOT 2
- First tutorial example is unclear: new_pdf?
- The password param in method βopenβ HOT 1
- PackagesNotFoundError in Conda HOT 2
- image and its caption HOT 1
- Deterministic PDF generation HOT 1
- How to access OCR-data? HOT 1
- Import/Export annotations to FDF/JSON format HOT 1
- cannot install
- Accessibility Settings Issue HOT 1
- [ISSUE] Missing XMP Metadata HOT 1
- Traverse PDF layers and classes HOT 1
- Instalation errors
- 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
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.