Comments (9)
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.
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.
Thanks, i'll give it a test tommorow.
from pdfpig.
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.
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.
Ok, that seems to work now, thanks.
Would you be interested in a PR for Numpsy@10dcbd0 to add a unit test?
from pdfpig.
from pdfpig.
Just doing some tidying up, are you happy to close this issue now?
from pdfpig.
Yes, it looks good now, i'll close the issue.
from pdfpig.
Related Issues (20)
- File exception: UglyToad.PdfPig.Core.PdfDocumentFormatException' was thrown. HOT 4
- ArgumentOutOfRangeException when reading a document HOT 7
- Add image to PDF with different coordinate origin
- Using DuplicateOverlappingTextProcessor in HOcrTextExporter
- Populate data catalog info without reading the rest of the pdf
- Read document structure and apply PDF accessibility tag? HOT 1
- "Object reference not set to an instance of an object." HOT 6
- PdfDocumentBuilder creates broken annotation elements when copying pages from specific source PDFs HOT 4
- IndexOutOfRangeException in ByteEncodingCMapTable.CharacterCodeToGlyphIndex Method HOT 3
- Failure to extract /Info data from the trailer when it is not an indirect reference
- Bounding Box Misalignment with Word 'Print as PDF' HOT 9
- Encryption strings stored as literal strings are read in an incorrect way, breaking decryption
- Failure to parse hexadecimal strings with odd number of characters
- [NET80] Some documents AES encrypted data only have initialization vector as the data for empty strings
- Rebuilding the object table when offsets are corrupted does not handle missing endobj
- Indirect reference to null for /Pages throws
- Lenient parsing fails when a cross reference table has more entries than its count value
- Parsing indirect objects does not support missing or garbage-prepended endobj or endstream HOT 5
- Exception when trying to recognize a non cross reference stream as a cross reference stream HOT 1
- Opening pdf file takes forever HOT 6
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 pdfpig.