You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[`fpdf2`](https://pypi.org/project/fpdf2/) or document conversion tools like
64
64
[`pdfkit`](https://pypi.org/project/pdfkit/).
65
-
***Replacing words within a PDF**: [Extracting text from PDF is hard](https://pypdf.readthedocs.io/en/stable/user/extract-text.html#why-text-extraction-is-hard).
65
+
***Replacing words within a PDF**: [Extracting text from PDF is hard](../user/extract-text.md#why-text-extraction-is-hard).
66
66
Replacing text in a reliable way is even harder. For example, one word might
67
67
be split into multiple tokens. Hence it's not a simple "search and replace"
Copy file name to clipboardExpand all lines: docs/user/add-watermark.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ background of the document.
8
8
9
9
The process of stamping and watermarking is the same, you just need to set `over` parameter to `True` for stamping and `False` for watermarking.
10
10
11
-
You can use `merge_page()` if you don't need to transform the stamp:
11
+
You can use {func}`~pypdf._page.PageObject.merge_page` if you don't need to transform the stamp:
12
12
13
13
```python
14
14
from pypdf import PdfReader, PdfWriter
@@ -21,7 +21,7 @@ for page in writer.pages:
21
21
writer.write("out.pdf")
22
22
```
23
23
24
-
Otherwise use `merge_transformed_page()` with `Transformation()` if you need to translate, rotate, scale, etc. the stamp before merging it to the content page.
24
+
Otherwise use {func}`~pypdf._page.PageObject.merge_transformed_page` with {class}`~pypdf.Transformation` if you need to translate, rotate, scale, etc. the stamp before merging it to the content page.
0 commit comments