Skip to content

Commit 20425af

Browse files
DOC: Document how to deal with large PDF files during writing (#3457)
Closes #3455.
1 parent f97e2c3 commit 20425af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/user/merging-pdfs.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ For more details, see an excellent answer on
1818
[StackOverflow](https://stackoverflow.com/questions/3444645/merge-pdf-files)
1919
by Paul Rooney.
2020

21+
```{note}
22+
Dealing with large PDF files might reach the recursion limit of the current
23+
Python interpreter. In these cases, increasing the limit might help:
24+
25+
```python
26+
import sys
27+
28+
# Example: Increase the current limit by factor 5.
29+
sys.setrecursionlimit(sys.getrecursionlimit() * 5)
30+
```
31+
```
32+
2133
## Showing more merging options
2234
2335
```python

0 commit comments

Comments
 (0)