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

DOC: Small improvements to Markdown files #2695

Merged
merged 9 commits into from
May 30, 2024

Conversation

j-t-1
Copy link
Contributor

@j-t-1 j-t-1 commented May 30, 2024

Including sorting imports of Python examples

docs/user/forms.md Outdated Show resolved Hide resolved
Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.12%. Comparing base (4c99de8) to head (811318c).

Current head 811318c differs from pull request most recent head 461bb1d

Please upload reports for the commit 461bb1d to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2695   +/-   ##
=======================================
  Coverage   95.12%   95.12%           
=======================================
  Files          51       51           
  Lines        8521     8521           
  Branches     1700     1700           
=======================================
  Hits         8106     8106           
  Misses        261      261           
  Partials      154      154           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@j-t-1
Copy link
Contributor Author

j-t-1 commented May 30, 2024

In order to ease locating page fields you can use get_pages_showing_field of PdfReader or PdfWriter. This method accepts a field object, a PdfObject that represents a field (as extracted from _root_object["/AcroForm"]["/Fields"]). The method returns a list of pages, because a field can have multiple widgets as mentioned previously (e.g. radio buttons or text displayed on multiple pages).

Identify pages where fields are used

_root_object["/AcroForm"]["/Fields"]) -> root_object["/AcroForm"]["/Fields"])?

docs/user/forms.md Outdated Show resolved Hide resolved
docs/user/forms.md Outdated Show resolved Hide resolved
j-t-1 and others added 4 commits May 30, 2024 11:24
Co-authored-by: Stefan <96178532+stefan6419846@users.noreply.github.com>
Co-authored-by: Stefan <96178532+stefan6419846@users.noreply.github.com>
@stefan6419846 stefan6419846 merged commit c091cd3 into py-pdf:main May 30, 2024
14 checks passed
@j-t-1 j-t-1 deleted the documentation branch May 31, 2024 06:02
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.

None yet

2 participants