Skip to content

Commit

Permalink
[autorelease] update changelog and version file
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 10, 2022
1 parent 16b5bb8 commit ba76f9b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
10 changes: 0 additions & 10 deletions docs/devel/changelog_staging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,3 @@
<!-- List character: dash (-) -->

# Changelog for next release
- Disruption: `PdfPage.insert_text()` does not generate page content automatically anymore. The new `PdfPage.generate_content()` method now needs to be called to apply changes, to avoid generating content repeatedly.
- Disruption: In `PdfTextPage.get_text()`, the boundary values are now only set to defaults if they're `None`, not 0. This change was necessary because the underlying PDFium function requires PDF box values rather than normalised values.
- pypdfium2 finally implements automatic object finalisation. Calling the `close()` methods is not mandatory anymore. The context manager API of `PdfDocument` is retained for backwards compatibility, but exiting the context manager does not close the document anymore, since this would increase the risk of closing objects in wrong order.
- A new text extraction method `get_text_range()` was added. `get_text()` was renamed to `get_text_bounded()` but is still available as deprecated alias.
- Text pages now have an `n_chars` attribute. `count_chars()` is still available as deprecated alias.
- Added a helper class for transform matrices.
- Added support models to capture pages as XObjects, to get page objects for XObjects, to transform them with matrices, and to insert page objects into a page. This may be used to implement a custom N-up compositor, for instance.
- The document level renderer now uses a shortcut if processing just a single page.
- When rendering, pypdfium2 now checks if the document has forms before initialising/exiting a form environment.
- The Sphinx documentation now includes the Readme file.
15 changes: 15 additions & 0 deletions docs/source/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
# Changelog


## 3.3.0 (2022-10-10)

- Updated PDFium from `5337` to `5351` (autorelease).
- Disruption: `PdfPage.insert_text()` does not generate page content automatically anymore. The new `PdfPage.generate_content()` method now needs to be called to apply changes, to avoid generating content repeatedly.
- Disruption: In `PdfTextPage.get_text()`, the boundary values are now only set to defaults if they're `None`, not 0. This change was necessary because the underlying PDFium function requires PDF box values rather than normalised values.
- pypdfium2 finally implements automatic object finalisation. Calling the `close()` methods is not mandatory anymore. The context manager API of `PdfDocument` is retained for backwards compatibility, but exiting the context manager does not close the document anymore, since this would increase the risk of closing objects in wrong order.
- A new text extraction method `get_text_range()` was added. `get_text()` was renamed to `get_text_bounded()` but is still available as deprecated alias.
- Text pages now have an `n_chars` attribute. `count_chars()` is still available as deprecated alias.
- Added a helper class for transform matrices.
- Added support models to capture pages as XObjects, to get page objects for XObjects, to transform them with matrices, and to insert page objects into a page. This may be used to implement a custom N-up compositor, for instance.
- The document level renderer now uses a shortcut if processing just a single page.
- When rendering, pypdfium2 now checks if the document has forms before initialising/exiting a form environment.
- The Sphinx documentation now includes the Readme file.


## 3.2.0 (2022-10-03)

- Updated PDFium from `5323` to `5337` (autorelease).
Expand Down
4 changes: 2 additions & 2 deletions src/pypdfium2/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__all__ = ["V_PYPDFIUM2", "V_LIBPDFIUM", "IS_SOURCEBUILD"]

V_MAJOR = 3
V_MINOR = 2
V_MINOR = 3
V_PATCH = 0
V_BETA = None

Expand All @@ -14,7 +14,7 @@
V_PYPDFIUM2 += "b%s" % V_BETA

#: PDFium library version string (git tag or commit hash).
V_LIBPDFIUM = "5337"
V_LIBPDFIUM = "5351"

#: Whether the included PDFium binary was built from source locally (:data:`True`) or downloaded from pdfium-binaries (:data:`False`).
IS_SOURCEBUILD = False

0 comments on commit ba76f9b

Please sign in to comment.