Aspose::Pdf::Facades::PdfContentEditor class

PdfContentEditor class

Представляет класс для редактирования содержимого PDF‑файла.

class PdfContentEditor : public Aspose::Pdf::Facades::SaveableFacade

Методы

МетодОписание
AddDocumentAdditionalAction(const System::String&, const System::String&)Добавляет дополнительное действие для события документа.
AddDocumentAttachment(const System::String&, const System::String&)Добавляет вложение документа без аннотации.
AddDocumentAttachment(const System::SharedPtr<System::IO::Stream>&, const System::String&, const System::String&)Добавляет вложение документа без аннотации.
BindPdf(System::String) overrideПривязывает PDF‑файл для редактирования.
BindPdf(System::SharedPtr<System::IO::Stream>) overrideПривязывает поток PDF для редактирования.
ChangeViewerPreference(int32_t)Изменяет предпочтения просмотра.
Close() overrideЗакрывает открытый документ.
CreateApplicationLink(System::Drawing::Rectangle, const System::String&, int32_t, System::Drawing::Color, const System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>&)Создаёт ссылку для запуска приложения в PDF‑документе.
CreateApplicationLink(System::Drawing::Rectangle, const System::String&, int32_t, System::Drawing::Color)Создаёт ссылку для запуска приложения в PDF‑документе.
CreateApplicationLink(System::Drawing::Rectangle, const System::String&, int32_t)Создаёт ссылку для запуска приложения в PDF‑документе.
CreateBookmarksAction(const System::String&, System::Drawing::Color, bool, bool, const System::String&, const System::String&, const System::String&)Создаёт закладку с указанным действием.
CreateCaret(int32_t, System::Drawing::Rectangle, System::Drawing::Rectangle, const System::String&, const System::String&, System::Drawing::Color)Создаёт аннотацию каретки.
CreateCustomActionLink(System::Drawing::Rectangle, int32_t, System::Drawing::Color, const System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>&)Создаёт ссылку на пользовательские действия в PDF‑документе.
CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::String&, int32_t, const System::String&)Создаёт аннотацию вложения файла.
CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::String&, int32_t, const System::String&, double)Создаёт аннотацию вложения файла.
CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::SharedPtr<System::IO::Stream>&, const System::String&, int32_t, const System::String&)Создаёт аннотацию вложения файла.
CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::SharedPtr<System::IO::Stream>&, const System::String&, int32_t, const System::String&, double)Создаёт аннотацию вложения файла.
CreateFreeText(System::Drawing::Rectangle, const System::String&, int32_t)Создаёт аннотацию свободного текста в PDF‑документе.
CreateJavaScriptLink(const System::String&, System::Drawing::Rectangle, int32_t, System::Drawing::Color)Создаёт ссылку на JavaScript в PDF‑документе.
CreateLine(System::Drawing::Rectangle, const System::String&, float, float, float, float, int32_t, int32_t, System::Drawing::Color, const System::String&, const System::ArrayPtr<int32_t>&, const System::ArrayPtr<System::String>&)Создаёт линейную аннотацию.
CreateLocalLink(System::Drawing::Rectangle, int32_t, int32_t, System::Drawing::Color, const System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>&)Создаёт локальную ссылку в PDF‑документе.
CreateLocalLink(System::Drawing::Rectangle, int32_t, int32_t, System::Drawing::Color)Создаёт локальную ссылку в PDF‑документе.
CreateLocalLink(System::Drawing::Rectangle, int32_t, int32_t)Создаёт локальную ссылку в PDF‑документе.
CreateMarkup(System::Drawing::Rectangle, const System::String&, int32_t, int32_t, System::Drawing::Color)Создаёт разметочную аннотацию в PDF‑документе.
CreateMovie(System::Drawing::Rectangle, const System::String&, int32_t)Создаёт Movie Annotations.
CreatePdfDocumentLink(System::Drawing::Rectangle, const System::String&, int32_t, int32_t, System::Drawing::Color, const System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>&)Создаёт ссылку на страницу другого PDF‑документа.
CreatePdfDocumentLink(System::Drawing::Rectangle, const System::String&, int32_t, int32_t, System::Drawing::Color)Создаёт ссылку на страницу другого PDF‑документа.
CreatePdfDocumentLink(System::Drawing::Rectangle, const System::String&, int32_t, int32_t)Создаёт ссылку на страницу другого PDF‑документа.
CreatePolygon(const System::SharedPtr<LineInfo>&, int32_t, System::Drawing::Rectangle, const System::String&)Создаёт полигональную аннотацию.
CreatePolyLine(const System::SharedPtr<LineInfo>&, int32_t, System::Drawing::Rectangle, const System::String&)Создаёт полилинейную аннотацию.
CreatePopup(System::Drawing::Rectangle, const System::String&, bool, int32_t)Создаёт всплывающую аннотацию в PDF‑документе.
CreateRubberStamp(int32_t, System::Drawing::Rectangle, const System::String&, const System::String&, System::Drawing::Color)Создаёт аннотацию штампа.
CreateRubberStamp(int32_t, System::Drawing::Rectangle, const System::String&, System::Drawing::Color, const System::String&)Создаёт аннотацию штампа.
CreateRubberStamp(int32_t, System::Drawing::Rectangle, const System::String&, System::Drawing::Color, const System::SharedPtr<System::IO::Stream>&)Создаёт аннотацию штампа.
CreateSound(System::Drawing::Rectangle, const System::String&, const System::String&, int32_t, const System::String&)Создаёт Sound Annotations.
CreateSquareCircle(System::Drawing::Rectangle, const System::String&, System::Drawing::Color, bool, int32_t, int32_t)Создает аннотацию квадрат‑круг.
CreateText(System::Drawing::Rectangle, const System::String&, const System::String&, bool, const System::String&, int32_t)Создает текстовую аннотацию в PDF‑документе.
CreateWebLink(System::Drawing::Rectangle, const System::String&, int32_t, System::Drawing::Color, const System::ArrayPtr<System::SharedPtr<System::BoxedValueBase>>&)Создает веб‑ссылку в PDF‑документе.
CreateWebLink(System::Drawing::Rectangle, const System::String&, int32_t, System::Drawing::Color)Создает веб‑ссылку в PDF‑документе.
CreateWebLink(System::Drawing::Rectangle, const System::String&, int32_t)Создает веб‑ссылку в PDF‑документе.
DeleteAttachments()Удаляет все вложения в PDF‑документе.
DeleteImage(int32_t, const System::ArrayPtr<int32_t>&)Удаляет указанные изображения на указанной странице.
DeleteImage()Удаляет все изображения из PDF‑документа.
DeleteStamp(int32_t, const System::ArrayPtr<int32_t>&)Удаляет несколько штампов на указанной странице по индексам штампов.
DeleteStampById(int32_t, int32_t)Удаляет штамп на указанной странице по ID штампа.
DeleteStampById(int32_t)Удаляет штамп по ID со всех страниц документа.
DeleteStampByIds(const System::ArrayPtr<int32_t>&)Удаляет штампы с указанными ID со всех страниц документа.
DeleteStampByIds(int32_t, const System::ArrayPtr<int32_t>&)Удаляет штампы на указанной странице по нескольким ID штампов.
DrawCurve(const System::SharedPtr<LineInfo>&, int32_t, System::Drawing::Rectangle, const System::String&)Создает аннотацию кривой.
ExtractLink()Извлекает коллекцию экземпляров Link, содержащихся в PDF‑документе.
get_ReplaceTextStrategy() constНабор параметров для операции замены текста.
get_TextEditOptions() constПолучает параметры редактирования текста.
get_TextReplaceOptions() constПолучает параметры замены текста.
get_TextSearchOptions() constПолучает параметры поиска текста.
GetStamps(int32_t)Возвращает массив штампов на странице.
GetViewerPreference()Возвращает предпочтение просмотра.
HideStampById(int32_t, int32_t)Скрывает штамп. После скрытия видимость штампа может быть восстановлена методом ShowStampById.
MoveStamp(int32_t, int32_t, double, double)Изменяет позицию штампа на странице.
MoveStampById(int32_t, int32_t, double, double)Изменяет позицию штампа на странице.
PdfContentEditor()Конструктор объекта PdfContentEditor.
PdfContentEditor(const System::SharedPtr<Aspose::Pdf::Document>&)Инициализирует новый объект PdfContentEditor на основе document.
RemoveDocumentOpenAction()Удаляет действие открытия из документа. Эта операция полезна при объединении нескольких документов, использующих явное действие ‘GoTo’ при запуске.
ReplaceImage(int32_t, int32_t, const System::String&)Заменяет указанное изображение на указанной странице PDF‑документа другим изображением.
ReplaceText(const System::String&, int32_t, const System::String&, const System::SharedPtr<Text::TextState>&)Заменяет текст в PDF‑файле на указанной странице. Объект TextState (семейство шрифтов, цвет) может быть указан для заменяемого текста.
ReplaceText(const System::String&, const System::String&)Заменяет текст в PDF‑файле.
ReplaceText(const System::String&, int32_t, const System::String&)Заменяет текст в PDF‑файле на указанной странице.
ReplaceText(const System::String&, const System::String&, const System::SharedPtr<Text::TextState>&)Заменяет текст в PDF‑файле, используя указанный объект TextState.
ReplaceText(const System::String&, const System::String&, int32_t)Заменяет текст в PDF‑файле и задаёт размер шрифта.
set_ReplaceTextStrategy(const System::SharedPtr<Aspose::Pdf::Facades::ReplaceTextStrategy>&)Набор параметров для операции замены текста.
set_TextEditOptions(const System::SharedPtr<Aspose::Pdf::Text::TextEditOptions>&)Устанавливает параметры редактирования текста.
set_TextReplaceOptions(const System::SharedPtr<Aspose::Pdf::Text::TextReplaceOptions>&)Устанавливает параметры замены текста.
set_TextSearchOptions(const System::SharedPtr<Aspose::Pdf::Text::TextSearchOptions>&)Устанавливает параметры поиска текста.
ShowStampById(int32_t, int32_t)Отображает штамп, скрытый с помощью HiddenStampById.

Поля

ПолеОписание
static DocumentCloseТип события документа. Закрывает документ.
static DocumentOpenТип события документа. Открывает документ.
static DocumentPrintedТип события документа. Выполняет действие после печати.
static DocumentSavedТип события документа. Выполняет действие после сохранения.
static DocumentWillPrintТип события документа. Выполняет действие перед печатью.
static DocumentWillSaveТип события документа. Выполняет действие перед сохранением.

См. также