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

Set key name checks #2725

Merged
merged 2 commits into from
Oct 8, 2023
Merged

Set key name checks #2725

merged 2 commits into from
Oct 8, 2023

Conversation

JorjMcKie
Copy link
Collaborator

This change uses the new PDF name verification to confirm that exclusively valid PDF names are specified as parameters inDocument.xref_set_key() for the key and the value parameter.

Introduce check for valid names in Document xref_set_key() method.
The parameter "key" must be a valid PDF name (except "/" is allowed for name hierarchy support).
If parameter "value" must also be a valid PDF name if it starts with "/".
@JorjMcKie
Copy link
Collaborator Author

Thank you!

@JorjMcKie JorjMcKie merged commit 50d6eff into main Oct 8, 2023
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2023
@JorjMcKie JorjMcKie deleted the set-key-name-checks branch October 8, 2023 18:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants