Skip to content

Commit

Permalink
Merge pull request #11 from VikParuchuri/dev
Browse files Browse the repository at this point in the history
Fix bug with flattening
  • Loading branch information
VikParuchuri authored Oct 8, 2024
2 parents 56af2c1 + e4db3f0 commit 5915750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdftext/pdf/chars.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_pdfium_chars(pdf, page_range, flatten_pdf, fontname_sample_freq=settings

if flatten_pdf:
# Flatten form fields and annotations into page contents.
flatten(pdf, page)
flatten(page)

# Flattening invalidates existing handles to the page.
# It is necessary to re-initialize the page handle after flattening.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pdftext"
version = "0.3.12"
version = "0.3.13"
description = "Extract structured text from pdfs quickly"
authors = ["Vik Paruchuri <vik.paruchuri@gmail.com>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 5915750

Please sign in to comment.