-
Notifications
You must be signed in to change notification settings - Fork 104
[US-1113] Add document tagging code examples #292
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds new accessibility examples demonstrating how to create tagged PDFs with UniPDF, covering tables/grids, lists, links, annotations, and forms, and updates the README to list the new samples.
- New example programs: tagged tables, grids, lists, link annotations, text annotations, and forms
- README updated to reference the new accessibility examples
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| accessibility/pdf_tag_table.go | Example for creating and tagging a table in a PDF |
| accessibility/pdf_tag_list.go | Example for creating nested lists with proper tagging |
| accessibility/pdf_tag_link_annot.go | Example for accessible link annotations with tagging and MCIDs |
| accessibility/pdf_tag_grid.go | Example for creating and tagging a grid (table) |
| accessibility/pdf_tag_form.go | Example for form fields (text, submit, reset) with tagging and labels |
| accessibility/pdf_tag_annots.go | Example for text annotations with tagging |
| accessibility/README.md | Adds the new examples to the index and fixes a typo |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@3ace I think we also need to update documentation regarding accessibility and tagging, what do you think? Can you create tickets for this? |
|
@anovik yes. I'll create the ticket for that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
This PR adds 6 new code examples to the accessibility folder demonstrating various PDF tagging techniques for accessibility compliance:
pdf_tag_annots.go- Create PDFs with properly tagged text annotationspdf_tag_form.go- Create PDFs with tagged form fields (text fields, buttons)pdf_tag_grid.go- Create PDFs with tagged grid/table structurespdf_tag_link_annot.go- Create accessible links following PDF/UA best practicespdf_tag_list.go- Create PDFs with tagged nested list structurespdf_tag_table.go- Create PDFs with properly tagged table elementsThe README.md has also been updated to include all examples in alphabetical order with clear descriptions.