Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .codex-temp.json

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -244,4 +244,5 @@ src/
logs/
reports/
.doctranslate/
node_modules/
node_modules/
.codex-temp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ title: Extract XFA Form
linktitle: Extract XFA Form
type: docs
weight: 30
url: /php-java/extract-form/
url: /php-java/extract-xfa-form/
description: This section explains how to extract forms from your PDF document with Aspose.PDF for PHP via Java.
lastmod: "2024-06-05"
sitemap:
changefreq: "weekly"
changefreq: "monthly"
priority: 0.7
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Fill AcroForms
linktitle: Fill AcroForms
type: docs
weight: 20
url: /php-java/fill-form/
url: /php-java/fill-xfa-form/
description: This section explains how to fill form field in a PDF document with Aspose.PDF for PHP via Java.
lastmod: "2024-06-05"
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion en/python-net/basic-operations/merge-pdf/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Merge PDF Files in Python
linktitle: Merge PDF files
type: docs
weight: 50
url: /python-net/merge-pdf-documents/
url: /python-net/merge-pdf/
description: Learn how to merge multiple PDF files into a single document in Python.
lastmod: "2026-04-15"
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion en/python-net/basic-operations/split-pdf/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Split PDF Files in Python
linktitle: Split PDF files
type: docs
weight: 60
url: /python-net/split-pdf-document/
url: /python-net/split-pdf/
description: Learn how to split PDF pages into separate PDF files in Python.
lastmod: "2026-04-15"
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion en/python-net/overview/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The Aspose.PDF for Python supports a wide variety of functions such as:

In addition, Aspose.PDF for Python via .NET can be applied to easily convert EPUB, Markdown, Text, XPS, PostScript, XML, LaTex to PDF and convert PDF to various document formats with excellent performance and good quality.

Try our [Free Online Apps](https://products.aspose.app/pdf/applications) demonstrating some of the most popular Aspose.PDF functionality.
Try our [Online Apps](https://products.aspose.app/pdf/applications) that demonstrate some of the most popular Aspose.PDF functionality.

Learn more about:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Annotations
type: docs
weight: 10
url: /python-net/annotations/
url: /python-net/annotations-facades/
description:
lastmod: "2026-03-20"
sitemap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Attachments
type: docs
weight: 20
url: /python-net/attachments/
url: /python-net/attachments-facades/
description:
lastmod: "2026-03-20"
sitemap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Links and Navigation
type: docs
weight: 70
url: /python-net/links-and-navigation/
url: /python-net/links-and-navigation-facades/
description:
lastmod: "2026-03-20"
sitemap:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
---
title: Move Stamp By Index
title: Delete Stamp By Index
type: docs
weight: 50
url: /python-net/move-stamp-by-index/
description: This example creates two rubber stamps on page 2. After that, a stamp can be moved by specifying its index and new coordinates.
url: /python-net/delete-stamp-by-index/
description: This example creates two rubber stamps on page 2. After that, a stamp can be deleted by specifying its index.
lastmod: "2026-03-20"
sitemap:
changefreq: "weekly"
priority: 0.7
TechArticle: true
AlternativeHeadline: Move a Rubber Stamp by Index in a PDF Using PdfContentEditor in Python
Abstract: This example demonstrates how to reposition a rubber stamp annotation in a PDF using its index with Aspose.PDF for Python via the Facades API. It shows how to add multiple stamps and then move one of them based on its order on the page.
AlternativeHeadline: Delete a Rubber Stamp by Index in a PDF Using PdfContentEditor in Python
Abstract: This example demonstrates how to delete a rubber stamp annotation in a PDF using its index with Aspose.PDF for Python via the Facades API. It shows how to add multiple stamps and then delete one of them based on its order on the page.
---

When multiple rubber stamps exist on a page, you can move a specific one using its index. The move_stamp() method allows repositioning annotations according to their sequence, which is useful when you don’t track stamp IDs but know their order.
When multiple rubber stamps exist on a page, you can delete a specific one using its index. The delete_stamp() method allows removing annotations according to their sequence, which is useful when you don’t track stamp IDs but know their order.

1. Create a [PdfContentEditor](https://reference.aspose.com/pdf/python-net/aspose.pdf.facades/pdfcontenteditor/) instance.
1. Bind the input PDF document.
1. Add two rubber stamp annotations on the same page.
1. Demonstrate how to move a stamp using its index.
1. Save the updated PDF document.
1. Bind the input PDF file to the PdfContentEditor instance using bind_pdf(infile).
1. Call 'delete_stamp(1, [2, 3])' to remove the stamp with index 1 from pages 2 and 3.
1. Save the modified PDF document to the output file using save(outfile).

```python
import aspose.pdf.facades as pdf_facades
Expand All @@ -33,31 +33,12 @@ sys.path.append(path.join(path.dirname(__file__), ".."))
from config import set_license, initialize_data_dir


def move_stamp_by_index(infile, outfile):
def delete_stamp_by_index(infile, outfile):
# Create PdfContentEditor object
content_editor = pdf_facades.PdfContentEditor()
# Bind document to PdfContentEditor
content_editor.bind_pdf(infile)

content_editor.create_rubber_stamp(
2,
apd.Rectangle(200, 380, 180, 60),
"Draft",
"Draft stamp for ID-based operations",
apd.Color.orange,
)

content_editor.create_rubber_stamp(
2,
apd.Rectangle(200, 480, 180, 60),
"Draft",
"Draft stamp for ID-based operations",
apd.Color.orange,
)
content_editor.save(outfile)

# Move first stamp on page 1 by index
# content_editor.move_stamp(1, 1, 10, 10)
content_editor.delete_stamp(1, [2, 3])
# Save updated document
content_editor.save(outfile)
```
2 changes: 1 addition & 1 deletion es/python-net/basic-operations/merge-pdf/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Combinar archivos PDF en Python
linktitle: Combinar archivos PDF
type: docs
weight: 50
url: /es/python-net/merge-pdf-documents/
url: /es/python-net/merge-pdf/
description: Aprenda cómo combinar varios archivos PDF en un solo documento en Python.
lastmod: "2026-05-08"
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion es/python-net/basic-operations/split-pdf/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Dividir archivos PDF en Python
linktitle: Dividir archivos PDF
type: docs
weight: 60
url: /es/python-net/split-pdf-document/
url: /es/python-net/split-pdf/
description: Aprenda cómo dividir páginas PDF en archivos PDF separados en Python.
lastmod: "2026-04-15"
sitemap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Anotaciones
linktitle: Anotaciones
type: docs
weight: 10
url: /es/python-net/annotations/
url: /es/python-net/annotations-facades/
description:
lastmod: "2026-03-20"
sitemap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Adjuntos
linktitle: Adjuntos
type: docs
weight: 20
url: /es/python-net/attachments/
url: /es/python-net/attachments-facades/
description:
lastmod: "2026-03-20"
sitemap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Enlaces y navegación
linktitle: Enlaces y navegación
type: docs
weight: 70
url: /es/python-net/links-and-navigation/
url: /es/python-net/links-and-navigation-facades/
description:
lastmod: "2026-03-20"
sitemap:
Expand Down
102 changes: 22 additions & 80 deletions ru/python-net/advanced-operations/_index.md
Original file line number Diff line number Diff line change
@@ -1,93 +1,35 @@
---
title: Advanced operations
linktitle: Advanced operations
title: Расширенные операции
linktitle: Расширенные операции
type: docs
weight: 90
url: /ru/python-net/advanced-operations/
description: Aspose.PDF for Python via .NET может выполнять простые и легкие задачи, а также справляться с более сложными целями. Ознакомьтесь со следующим разделом для продвинутых пользователей и разработчиков.
lastmod: "2023-04-17"
description: Aspose.PDF for Python via .NET может выполнять простые и лёгкие задачи и справляться с более сложными целями. Ознакомьтесь с следующим разделом для продвинутых пользователей и разработчиков.
lastmod: "2025-02-27"
sitemap:
changefreq: "monthly"
priority: 0.7
TechArticle: true
AlternativeHeadline: Раздел «Расширенные операции» с Python
Abstract: Раздел «Расширенные операции» предоставляет всестороннее руководство по программной работе с существующими PDF‑файлами, независимо от их происхождения, с использованием различных инструментов и методов. Этот раздел расширяет базовые навыки, обсуждаемые в разделе «Basic Operations», исследуя расширенные функции.
---
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "Продвинутые операции с PDF через Python",
"alternativeHeadline": "Использование расширенных функций при работе с PDF через Python",
"author": {
"@type": "Person",
"name":"Anastasiia Holub",
"givenName": "Anastasiia",
"familyName": "Holub",
"url":"https://www.linkedin.com/in/anastasiia-holub-750430225/"
},
"genre": "генерация PDF документов",
"keywords": "pdf, python, продвинутые операции с pdf, создание pdf, удаление pdf, манипуляция pdf",
"wordcount": "302",
"proficiencyLevel":"Начинающий",
"publisher": {
"@type": "Organization",
"name": "Aspose.PDF Doc Team",
"url": "https://products.aspose.com/pdf",
"logo": "https://www.aspose.cloud/templates/aspose/img/products/pdf/aspose_pdf-for-python-net.svg",
"alternateName": "Aspose",
"sameAs": [
"https://facebook.com/aspose.pdf/",
"https://twitter.com/asposepdf",
"https://www.youtube.com/channel/UCmV9sEg_QWYPi6BJJs7ELOg/featured",
"https://www.linkedin.com/company/aspose",
"https://stackoverflow.com/questions/tagged/aspose",
"https://aspose.quora.com/",
"https://aspose.github.io/"
],
"contactPoint": [
{
"@type": "ContactPoint",
"telephone": "+1 903 306 1676",
"contactType": "sales",
"areaServed": "US",
"availableLanguage": "en"
},
{
"@type": "ContactPoint",
"telephone": "+44 141 628 8900",
"contactType": "sales",
"areaServed": "GB",
"availableLanguage": "en"
},
{
"@type": "ContactPoint",
"telephone": "+61 2 8006 6987",
"contactType": "sales",
"areaServed": "AU",
"availableLanguage": "en"
}
]
},
"url": "/python-net/advanced-operations/",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "/python-net/advanced-operations/"
},
"dateModified": "2023-04-13",
"description": "Aspose.PDF может выполнять не только простые и легкие задачи, но и справляться с более сложными целями. Ознакомьтесь со следующим разделом для продвинутых пользователей и разработчиков, использующих Python через .NET."
}
</script>


**Расширенные операции** — это раздел о том, как программно работать с существующими PDF-файлами, будь то документы, созданные с помощью Aspose.PDF, как обсуждалось в [Основных операциях](/pdf/ru/python-net/basic-operations/), или PDF, созданные с помощью Adobe Acrobat, Google Docs, Microsoft Office, Open Office или любого другого средства создания PDF.
**Advanced Operations** — это раздел, посвящённый тому, как программно работать с существующими PDF‑файлами, будь то документы, созданные с помощью Aspose.PDF, как обсуждалось в [Базовые операции](/pdf/ru/python-net/basic-operations/), или PDF, созданные в Adobe Acrobat, Google Docs, Microsoft Office, Open Office или любом другом PDF‑производителе.

Вы узнаете разные способы:

- [Работа с документами](/pdf/ru/python-net/working-with-documents/) - сжимать, разделять и объединять документы и выполнять другие операции с целым документом.
- [Работа с страницами](/pdf/ru/python-net/working-with-pages/) - добавлять, перемещать или удалять, обрезать страницы, добавлять водяные знаки, штампы и т.д.
- [Работа с изображениями](/pdf/ru/python-net/working-with-images/) - добавлять, извлекать или удалять изображения из PDF-документов.
- [Работа с документами](/pdf/ru/python-net/working-with-documents/) - сжимать, разбивать и объединять документы, а также выполнять другие операции с полным документом.
- [Работа со страницами](/pdf/ru/python-net/working-with-pages/) - добавлять, перемещать или удалять, обрезать страницы, добавлять водяные знаки, штампы и т.д.
- [Работа с изображениями](/pdf/ru/python-net/working-with-images/) - добавить, извлечь или удалить изображения из PDFдокументов.
- [Вложения](/pdf/ru/python-net/attachments/) - вы узнаете, как программно добавлять и удалять вложения из PDF с помощью Python.
- [Навигация и взаимодействие](/pdf/ru/python-net/navigation-and-interaction/) - работать с действиями, закладками, навигацией по страницам.
- [Аннотации](/pdf/ru/python-net/annotations/) - аннотации позволяют пользователям добавлять пользовательский контент на страницы PDF.
Вы можете добавлять, удалять и изменять аннотации в PDF-документах.
- [Работа с таблицами](/pdf/ru/python-net/working-with-tables/) - вставка, оформление таблиц в PDF, извлечение табличных данных.
- [Работа с формами](/pdf/ru/python-net/working-with-forms/) - работа с интерактивными PDF-документами, добавление полей форм, извлечение данных.
- [Работа с текстом](/pdf/ru/python-net/working-with-text/) - добавление, форматирование, поиск и замена текста в PDF.
- [Навигация и взаимодействие](/pdf/ru/python-net/navigation-and-interaction/) - работать с действиями, закладками, перемещаться по страницам.
- [Аннотации](/pdf/ru/python-net/annotations/) - аннотации позволяют пользователям добавлять пользовательский контент на страницы PDF. Вы можете добавлять, удалять и изменять аннотации в PDF‑документах.
- [Работа с таблицами](/pdf/ru/python-net/working-with-tables/) - вставлять, оформлять таблицы в PDF, извлекать табличные данные.
- [Работа с формами](/pdf/ru/python-net/working-with-forms/) - работать с интерактивными PDF‑документами, добавлять поля форм, извлекать данные.
- [Работа с текстом](/pdf/ru/python-net/working-with-text/) - добавлять, форматировать, искать и заменять текст в PDF.
- [Сравнение PDF документов](/pdf/ru/python-net/compare-pdf-documents/) - возможно сравнивать содержимое PDF документов.
- [Метаданные в PDFs](/pdf/ru/python-net/pdf-file-metadata/) - получать или задавать метаданные в документах, работать с данными XMP.
- [Работа с графиками](/pdf/ru/python-net/working-with-graphs/) - манипулировать формами на странице.
- [Работа с операторами](/pdf/ru/python-net/working-with-operators/) - выполнять низкоуровневые операции в PDF.
- [Артефакты](/pdf/ru/python-net/artifacts/) - работать с водяными знаками и другими специальными объектами в PDF.
- [Работа со слоями PDF](/python-net/work-with-pdf-layers/) - блокировать уровни, извлекать элементы, уплощать и объединять уровни PDF.
2 changes: 1 addition & 1 deletion ru/python-net/basic-operations/merge-pdf/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Объединение PDF-файлов в Python
linktitle: Объединение PDF-файлов
type: docs
weight: 50
url: /ru/python-net/merge-pdf-documents/
url: /ru/python-net/merge-pdf/
description: Узнайте, как объединить несколько PDF-файлов в один документ в Python.
lastmod: "2026-04-15"
sitemap:
Expand Down
2 changes: 1 addition & 1 deletion ru/python-net/basic-operations/split-pdf/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Разделить PDF-файлы в Python
linktitle: Разделить PDF-файлы
type: docs
weight: 60
url: /ru/python-net/split-pdf-document/
url: /ru/python-net/split-pdf/
description: Узнайте, как разделить страницы PDF на отдельные PDF-файлы в Python.
lastmod: "2026-04-15"
sitemap:
Expand Down
Loading
Loading