GithubHelp home page GithubHelp logo

Exception in pikepdf findall about pikepdf HOT 5 CLOSED

pikepdf avatar pikepdf commented on June 14, 2024
Exception in pikepdf findall

from pikepdf.

Comments (5)

jbarlow83 avatar jbarlow83 commented on June 14, 2024 1

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.

jbarlow83 avatar jbarlow83 commented on June 14, 2024 1

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.

rsmuc avatar rsmuc commented on June 14, 2024

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.

impredicative avatar impredicative commented on June 14, 2024

This bug is affecting me too with the example file http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf

from pikepdf.

jbarlow83 avatar jbarlow83 commented on June 14, 2024

Fixed in v1.1.0

from pikepdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.