Skip to content

Better ways to manipulate PDF raw object? #836

@user202729

Description

@user202729

Is your feature request related to a problem? Please describe.
Currently it's necessary to manipulate the dict with string operations manually to modify the objects given the xref. (get the string with xrefObject, modify it with regex/something, put it back with updateObject)

The library could provide functions for that.

Describe the solution you'd like
Perhaps something like Document.{add,set,del}_object_dict(xref: int, key: str[, value: Any]); or make some function to convert the PDF object string to Python object and back.

Describe alternatives you've considered

Additional context
(no context.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions