-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document new behavior and how to switch back
- Loading branch information
1 parent
42a61ce
commit 28e96cd
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,3 +191,17 @@ writer = PdfWriter() | |
writer.add_page(page) | ||
writer.write("out-pg-transform.pdf") | ||
``` | ||
|
||
### pypdf._page.MERGE_CROP_BOX | ||
|
||
`pypdf<=3.4.0` used to merge the other page with `trimbox`. | ||
|
||
`pypdf>3.4.0` changes this behavior to `cropbox`. | ||
|
||
In case anybody has good reasons to use/expect `trimbox`, please let me know via | ||
[email protected] or via https://github.com/py-pdf/pypdf/pull/1622 | ||
In the mean time, you can add the following code to get the old behavior: | ||
|
||
```python | ||
pypdf._page.MERGE_CROP_BOX = "trimbox" | ||
``` |