Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api-minor] Refactor/simplify the
PDFObject
class
First of all, note how there's currently *two* methods for checking if a certain object exists, which seems completely unwarranted. Furthermore, the rarely used `getData` method (only one callsite) was renamed/rewritten to simply extend the `get` method instead. Also, there will now be a warning printed if it's used before the data is ready, which may be useful for debugging purposes. Finally, the methods were rearranged slightly, to bring the most important ones (for an API user) to the top of the class.
- Loading branch information