Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for getting/setting values in the document catalog dictionary #67

Closed
michaelrsweet opened this issue Jun 24, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request priority-high
Milestone

Comments

@michaelrsweet
Copy link
Owner

Right now there is no way to access the catalog (root) object for a PDF file. Proposed API:

pdfio_dict_t *pdfioFileGetCatalog(pdfio_file_t *pdf);

This should work for both reading and writing PDFs, and setting dictionary keys will result in them showing up in the written file.

@michaelrsweet michaelrsweet self-assigned this Jun 24, 2024
@michaelrsweet michaelrsweet added enhancement New feature or request priority-high labels Jun 24, 2024
@michaelrsweet michaelrsweet added this to the Future milestone Jun 24, 2024
@michaelrsweet
Copy link
Owner Author

[master 2388326] Add pdfioFileGetCatalog function (Issue #67)

@michaelrsweet michaelrsweet modified the milestones: Future, 1.3 Jun 24, 2024
michaelrsweet added a commit that referenced this issue Jun 24, 2024
Refactor the pdfioFileCreateXxx functions to use a common (private) function to
handle creating/initializing the pdfio_file_t object and base file objects.

Update unit tests to display the filename for the pdfioFileClose test.
michaelrsweet added a commit that referenced this issue Jun 24, 2024
Fix pdfioDictGetString to convert (formerly) encrypted binary strings to
regular strings.
@michaelrsweet
Copy link
Owner Author

[master 63a7a2c] Add unit tests for new pdfioFileGetCatalog API (Issue #67)

[master a81907b] Refactor get_info_string to rely on pdfioDictGetString to convert binary strings to regular ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-high
Projects
None yet
Development

No branches or pull requests

1 participant