Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@3ace
Copy link
Contributor

@3ace 3ace commented Oct 16, 2025

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 annotations
  • pdf_tag_form.go - Create PDFs with tagged form fields (text fields, buttons)
  • pdf_tag_grid.go - Create PDFs with tagged grid/table structures
  • pdf_tag_link_annot.go - Create accessible links following PDF/UA best practices
  • pdf_tag_list.go - Create PDFs with tagged nested list structures
  • pdf_tag_table.go - Create PDFs with properly tagged table elements

The README.md has also been updated to include all examples in alphabetical order with clear descriptions.

@3ace 3ace requested review from anovik, Copilot and sampila October 16, 2025 08:18
Copy link

Copilot AI left a 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.

Copy link
Contributor

@anovik anovik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anovik
Copy link
Contributor

anovik commented Oct 16, 2025

@3ace I think we also need to update documentation regarding accessibility and tagging, what do you think? Can you create tickets for this?

@3ace
Copy link
Contributor Author

3ace commented Oct 16, 2025

@anovik yes. I'll create the ticket for that

Copy link
Contributor

@sampila sampila left a 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

@sampila sampila merged commit 6aa396d into unidoc:master Oct 16, 2025
4 checks passed
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.

3 participants