Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Delete pages Version 1 (Net)

Группа действийAction group: PDF 

Описание

Действие удаляет указанный диапазон страниц из PDF-документа.

...

Description

The action deletes the set range of pages from the PDF-document

Action icon

Image Modified

...

Parameters

Входные параметры

Контекст                        Контекст действия для работы с PDF-документом.

Input parameters

Context - action context for working with a PDF document.

Page range - range of pages to be removed from PDF document. The page range can be one or two numbers with a "-", with the second number being larger than the first. Example of fillingДиапазон страниц        Диапазон страниц, которые будут удалены из PDF-документа. Диапазоном страниц может быть число или два числа через "-", при этом второе число должно быть больше первого. Пример заполнения: "1-5" или or "6".

Имя файла                     Название файла PDF-документа с удаленными страницами. Если поле останется пустым, будет использовано имя исходного файла.

Путь к папке                  Путь к папке, в которую будет сохранен файл PDF-документа с удаленными страницами. Если поле останется пустым, то файл сохранится в исходной папке.

Перезаписать                Если значение «true», и в указанной папке существует PDF-документ с таким же именем, то новый файл его перезапишет. Если «false», документ перезаписан не будет и действие вернет ошибку.

Выходные параметры

Результат Путь к файлу PDF-документа с удаленными страницами.

...

File name - file name of PDF document with deleted pages. If the field is left empty, the name of the original file will be used.

Folder path - path to folder where PDF document file with deleted pages will be saved. If the field remains empty, the file will be saved in the original folder.

Overwrite - if the value is "true" and a PDF document with the same name exists in the specified folder, the new file will overwrite it. If "false", the document will not be overwritten and the action will return an error.

Output parameters

Result - path to PDF document file with deleted pages.

Settings

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for working with a PDF document.Robin.PDFPDF contextYes
File nameFile name of PDF document with deleted pages. If the field is left empty, the name of the original file will be used.Robin.String
No
Folder pathPath to folder where PDF document file with deleted pages will be saved. If the field remains empty, the file will be saved in the original folder.Robin.FolderPathC:\doc\imgNo
OverwriteIf the value is
«true»
"true" and a PDF document with the same name exists in the specified folder, the new file will overwrite it. If
«false»
"false", the document will not be overwritten and the action will return an error.Robin.BooleantrueNo
Page rangeRange of pages to be removed from PDF document. The page range can be one or two numbers with a
«
"-
«
", with the second number being larger than the first. Example of filling:
«1
"1-
5» or «6»
5" or "6".Robin.String
Yes
Results
ResultPath to PDF document file with deleted pages.Robin.FilePath

Особые условия использования



Special conditions of use

  1. If non-existent pages are specified in the range parameters, the action will remove pages from the first specified page to the last page of the document.
    1. Example: A document has 20 pages. The set range
    Если в параметрах диапазона указаны несуществующие страницы, то действие удалит страницы с первой указанной и по последнюю страницу из документа. 
    1. Пример: В документе 20 страниц. Указанный диапазон: "15-30". Действие удалит страницы с 15 по 20.
  2. Нельзя удалить все страницы PDF-документа - действие выдаст ошибку. 

Пример  использования 

Задача

Есть PDF-файл с 5 страницами:

Image Removed

Необходимо удалить первые две страницы, заменить имя файла на "New PDF" и сохранить его в другую папку.

Решение

Воспользоваться действиями "Open PDF" и "Delete pages".

Реализация

...

    1. The action will delete pages 15 through 20.
  1. You cannot delete all pages from the PDF-document - the action will return an error.

Example of use

Task

You have a PDF-file with five pages:

Image Added

Delete the first two pages, change file name to "New PDF", and save it to a different folder.

Solution

Use the "Open PDF", "Delete pages" actions.

Implementation

  1. Assemble a robot scheme with the actions:
    Image Added

  2. Set the "Open PDF" action parameters.
    Image Added

  3. Set the "Delete pages" action parameters.
    Image Added

  4. Start the robot by clicking "Start" in the top panel.

Result

The program robot completed successfully. The file name and path were changed.

Image Added

The first two pages were deleted from the file

Результат

Программный робот отработал успешно. Имя и путь файла были изменены.

Image Removed

Из файла были удалены первые 2 страницы: