Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment method

PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::SharedPtr<System::IO::Stream>&, const System::String&, int32_t, const System::String&) method

Creates file attachment annotation.

void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle rect, const System::String &contents, const System::SharedPtr<System::IO::Stream> &attachmentStream, const System::String &attachmentName, int32_t page, const System::String &name)
ParameterTypeDescription
rectSystem::Drawing::RectangleThe annotation rectangle defining the location of the annotation on the page.
contentsconst System::String&The contents of the annotation.
attachmentStreamconst System::SharedPtr<System::IO::Stream>&The attachment file stream.
attachmentNameconst System::String&The attachment name.
pageint32_tThe number of original page where the annotation will be created.
nameconst System::String&The name of an icon will be used in displaying the annotation. This value can be: “Graph”, “PushPin”, “Paperclip”, “Tag”.

See Also

PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::SharedPtr<System::IO::Stream>&, const System::String&, int32_t, const System::String&, double) method

Creates file attachment annotation.

void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle rect, const System::String &contents, const System::SharedPtr<System::IO::Stream> &attachmentStream, const System::String &attachmentName, int32_t page, const System::String &name, double opacity)
ParameterTypeDescription
rectSystem::Drawing::RectangleThe annotation rectangle defining the location of the annotation on the page.
contentsconst System::String&The contents of the annotation.
attachmentStreamconst System::SharedPtr<System::IO::Stream>&The attachment file stream.
attachmentNameconst System::String&The attachment name.
pageint32_tThe number of original page where the annotation will be created.
nameconst System::String&The name of an icon will be used in displaying the annotation. This value can be: “Graph”, “PushPin”, “Paperclip”, “Tag”.
opacitydoubleIcon’s opacity from 0 to 1: 0 - completely transparant, 1 - completely opaque.

See Also

PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::String&, int32_t, const System::String&) method

Creates file attachment annotation.

void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle rect, const System::String &contents, const System::String &filePath, int32_t page, const System::String &name)
ParameterTypeDescription
rectSystem::Drawing::RectangleThe annotation rectangle defining the location of the annotation on the page.
contentsconst System::String&The contents of the annotation.
filePathconst System::String&The path of the file will be attached.
pageint32_tThe number of original page where the annotation will be created.
nameconst System::String&The name of an icon will be used in displaying the annotation. This value can be: “Graph”, “PushPin”, “Paperclip”, “Tag”.

See Also

PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle, const System::String&, const System::String&, int32_t, const System::String&, double) method

Creates file attachment annotation.

void Aspose::Pdf::Facades::PdfContentEditor::CreateFileAttachment(System::Drawing::Rectangle rect, const System::String &contents, const System::String &filePath, int32_t page, const System::String &name, double opacity)
ParameterTypeDescription
rectSystem::Drawing::RectangleThe annotation rectangle defining the location of the annotation on the page.
contentsconst System::String&The contents of the annotation.
filePathconst System::String&The path of the file will be attached.
pageint32_tThe number of original page where the annotation will be created.
nameconst System::String&The name of an icon will be used in displaying the annotation. This value can be: “Graph”, “PushPin”, “Paperclip”, “Tag”.
opacitydoubleIcon’s opacity from 0 to 1: 0 - completely transparant, 1 - completely opaque.

See Also