Giter Site home page Giter Site logo

Comments (9)

EliotJones avatar EliotJones commented on September 17, 2024

That sounds like a good addition to the API, it would be fairly easy to add by providing access to the underlying DictionaryToken in the DocumentInformation object. I'll look into adding it when I get time.

from pdfpig.

EliotJones avatar EliotJones commented on September 17, 2024

This is in the latest master code now, it might be worth testing it out for your documents if you're able, I don't have any documents with custom info at the moment to test against. It should make it into the 0.0.7 release for which the timeline is "hopefully soonish".

from pdfpig.

Numpsy avatar Numpsy commented on September 17, 2024

Thanks, i'll give it a test tommorow.

from pdfpig.

Numpsy avatar Numpsy commented on September 17, 2024

Ok, I started adding a unit test @ Numpsy@db0f1c7, and i'm not sure if I've got another issue there.

The 'custom-properties.pdf' file attached to that commit contains multiple sets of document information, which have a few differences in the property values.
If I open the file in Firefox, it shows the Keywords property as being 'MoreKeywords' (which is what I was expecting), but when loading in PdfPig the value in Document.Information is 'TestKeywords', which is an old/previous value.

Possibly something else going wrong somewhere?

from pdfpig.

EliotJones avatar EliotJones commented on September 17, 2024

Thanks for the further bug report, I've pushed some changes which seem to work for this document (and not break the tests!). Let me know if you run into any more issues please, I think the code in that area needs a bit of a rewrite/tidy-up.

from pdfpig.

Numpsy avatar Numpsy commented on September 17, 2024

Ok, that seems to work now, thanks.

Would you be interested in a PR for Numpsy@10dcbd0 to add a unit test?

from pdfpig.

EliotJones avatar EliotJones commented on September 17, 2024

from pdfpig.

EliotJones avatar EliotJones commented on September 17, 2024

Just doing some tidying up, are you happy to close this issue now?

from pdfpig.

Numpsy avatar Numpsy commented on September 17, 2024

Yes, it looks good now, i'll close the issue.

from pdfpig.

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.