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 Value and this[string name] to PdfItem. #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Audionysos
Copy link

Adding Value property to PDFItem eliminates the need to cast an item to PDFReference and the need to check if it's actual reference (I believe in most scenarios the API users don't care if it's a reference or not).

Adding this[string] eliminates both, the need to use .Elements property and need of casting an item to PDFDictonary at every step.

This greatly simplifies traversing the objects trees as you can see in below image.
On both sides the code do the same thing.
Screenshot 2024-03-02 012231

Please ignore the first commit as it was from previous PR. Tell me what you think about that?

… read. Add some missing implementation method for CSequence and fixed it's Copy() method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant