Aspose::Words::LowCode::Watermarker::SetText method

Watermarker::SetText(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat, const System::String&, const System::SharedPtr<Aspose::Words::TextWatermarkOptions>&) method

Adds a text watermark into the document from streams with options.

static void Aspose::Words::LowCode::Watermarker::SetText(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, Aspose::Words::SaveFormat saveFormat, const System::String &watermarkText, const System::SharedPtr<Aspose::Words::TextWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::TextWatermarkOptions>(nullptr))
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveFormatAspose::Words::SaveFormatThe save format.
watermarkTextconst System::String&Text that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::TextWatermarkOptions>&Defines additional options for the text watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), only the first page of the output will be saved to the specified stream.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF to the specified stream.

See Also

Watermarker::SetText(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&, const System::String&, const System::SharedPtr<Aspose::Words::TextWatermarkOptions>&) method

Adds a text watermark into the document from streams with options.

static void Aspose::Words::LowCode::Watermarker::SetText(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &saveOptions, const System::String &watermarkText, const System::SharedPtr<Aspose::Words::TextWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::TextWatermarkOptions>(nullptr))
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveOptionsconst System::SharedPtr<Aspose::Words::Saving::SaveOptions>&The save options.
watermarkTextconst System::String&Text that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::TextWatermarkOptions>&Defines additional options for the text watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), only the first page of the output will be saved to the specified stream.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF to the specified stream.

See Also

Watermarker::SetText(const System::String&, const System::String&, Aspose::Words::SaveFormat, const System::String&, const System::SharedPtr<Aspose::Words::TextWatermarkOptions>&) method

Adds a text watermark into the document with options and specified save format.

static void Aspose::Words::LowCode::Watermarker::SetText(const System::String &inputFileName, const System::String &outputFileName, Aspose::Words::SaveFormat saveFormat, const System::String &watermarkText, const System::SharedPtr<Aspose::Words::TextWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::TextWatermarkOptions>(nullptr))
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveFormatAspose::Words::SaveFormatThe save format.
watermarkTextconst System::String&Text that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::TextWatermarkOptions>&Defines additional options for the text watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also

Watermarker::SetText(const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::Saving::SaveOptions>&, const System::String&, const System::SharedPtr<Aspose::Words::TextWatermarkOptions>&) method

Adds a text watermark into the document with options and specified save format.

static void Aspose::Words::LowCode::Watermarker::SetText(const System::String &inputFileName, const System::String &outputFileName, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &saveOptions, const System::String &watermarkText, const System::SharedPtr<Aspose::Words::TextWatermarkOptions> &options=System::ExplicitCast<Aspose::Words::TextWatermarkOptions>(nullptr))
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveOptionsconst System::SharedPtr<Aspose::Words::Saving::SaveOptions>&The save options.
watermarkTextconst System::String&Text that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::TextWatermarkOptions>&Defines additional options for the text watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also

Watermarker::SetText(const System::String&, const System::String&, const System::String&) method

Adds a text watermark into the document.

static void Aspose::Words::LowCode::Watermarker::SetText(const System::String &inputFileName, const System::String &outputFileName, const System::String &watermarkText)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
watermarkTextconst System::String&Text that is displayed as a watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also

Watermarker::SetText(const System::String&, const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::TextWatermarkOptions>&) method

Adds a text watermark into the document with options.

static void Aspose::Words::LowCode::Watermarker::SetText(const System::String &inputFileName, const System::String &outputFileName, const System::String &watermarkText, const System::SharedPtr<Aspose::Words::TextWatermarkOptions> &options)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
watermarkTextconst System::String&Text that is displayed as a watermark.
optionsconst System::SharedPtr<Aspose::Words::TextWatermarkOptions>&Defines additional options for the text watermark.

Remarks

If the output format is an image (BMP, EMF, EPS, GIF, JPEG, PNG, or WebP), each page of the output will be saved as a separate file. The specified output file name will be used to generate file names for each part following the rule: outputFile_partIndex.extension.

If the output format is TIFF, the output will be saved as a single multi-frame TIFF file.

See Also