Aspose::Pdf::Facades::PdfFileStamp class
Contents
[
Hide
]PdfFileStamp class
Class for adding stamps (watermark or background) to PDF files.
class PdfFileStamp : public Aspose::Pdf::Facades::SaveableFacade
Methods
| Method | Description |
|---|---|
| AddFooter(const System::SharedPtr<FormattedText>&, float) | Adds footer to the pages of the document. |
| AddFooter(const System::SharedPtr<FormattedText>&, float, float, float) | Adds footer to the pages of the document. |
| AddFooter(const System::String&, float) | Adds image as footer to the pages of the document. |
| AddFooter(const System::String&, float, float, float) | Adds image as footer of the pages. |
| AddFooter(const System::SharedPtr<System::IO::Stream>&, float) | Adds image as footer of the page. |
| AddFooter(const System::SharedPtr<System::IO::Stream>&, float, float, float) | Adds image as footer of the page. |
| AddHeader(const System::SharedPtr<FormattedText>&, float) | Adds header to the page. |
| AddHeader(const System::SharedPtr<FormattedText>&, float, float, float) | Adds header to the pages of file. |
| AddHeader(const System::String&, float) | Adds image as header to the pages of the file. |
| AddHeader(const System::String&, float, float, float) | Adds image as header on the pages. |
| AddHeader(const System::SharedPtr<System::IO::Stream>&, float) | Adds image as header on the pages. |
| AddHeader(const System::SharedPtr<System::IO::Stream>&, float, float, float) | Adds image at the top of the page. |
| AddPageNumber(const System::String&) | Add page number to file. Page number text may contain # sign which will be replaced with number of the page. Page number is placed in the bottom of the page centered horizontally. |
| AddPageNumber(const System::SharedPtr<FormattedText>&) | Adds page number to the page. Page number may contain # sign which will be replaced with page number. Page number is placed in the bottom of the page centered horizontally. |
| AddPageNumber(const System::String&, int32_t, float, float, float, float) | Adds page number to the pages of document. |
| AddPageNumber(const System::String&, float, float) | Adds page number at the specified position on the page. |
| AddPageNumber(const System::SharedPtr<FormattedText>&, int32_t, float, float, float, float) | Adds page number to the pages of document. |
| AddPageNumber(const System::SharedPtr<FormattedText>&, float, float) | Adds page number at the specified position on the page. |
| AddPageNumber(const System::String&, int32_t) | Adds page number to the pages. |
| AddPageNumber(const System::SharedPtr<FormattedText>&, int32_t) | Adds page number to the pages. |
| AddStamp(const System::SharedPtr<Stamp>&) | Adds stamp to the file. |
| Close() override | Closes opened files and saves changes. Warning. If input or output streams are specified they are not closed by Close() method. |
| get_AttachmentName() const | Gets name of attachment when result of operation is stored into HttpResponse objects as attachment. |
| get_ContentDisposition() const | Gets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline. |
| get_InputFile() const | Gets name and path of input file. |
| get_InputStream() const | Gets input stream. |
| get_KeepSecurity() const | Keeps security if true. (This feature will be implemented in next versions). |
| get_NumberingStyle() const | Gets pabge numbering style. Possible values: NumeralsArabic, NumeralsRomanUppercase, NumeralsRomanLowercase, LettersAppercase, LettersLowercase. |
| get_OptimizeSize() const | Gets optimization flag. Equal resource streams in resultant file are merged into one PDF object if this flag set. This allows to decrease resultant file size but may cause slower execution and larger memory requirements. Default value: false. |
| get_OutputFile() const | Gets name and path of output file. |
| get_OutputStream() const | Gets output stream. |
| get_PageHeight() | Gets height of first page in souorce file. |
| get_PageNumberRotation() | Gets rotation of page number. Rotation is in degrees. Default is 0. |
| get_PageWidth() | Gets width of first page in input file. |
| get_Response() const | Gets Response object where result of operation will be stored. |
| get_SaveOptions() const | Gets save options when result is stored as HttpResponse. Default value: PdfSaveOptions. |
| get_StampId() const | Stamp ID of next added stamp (incluiding page headers/hooters/page numbers). |
| get_StartingNumber() const | Gets starting number for first page in input file. Next pages will be numbered starting from this value. For example if StartingNumber is set to 100, document pages will have numbers 100, 101, 102… |
| PdfFileStamp(const System::String&, const System::String&) | Constructor for PdfFileStamp. |
| PdfFileStamp(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&) | Constructor for PdfFileStamp. |
| PdfFileStamp(const System::String&, const System::String&, bool) | Constructor for PdfFileStamp. |
| PdfFileStamp(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, bool) | Constructor of PdfFileStamp. |
| PdfFileStamp() | Constructor of the PdfFileStamp. Input file and output file may be specified via corresponding properties. |
| PdfFileStamp(const System::SharedPtr<Aspose::Pdf::Document>&) | Initializes new PdfFileStamp object on base of the document . |
| PdfFileStamp(const System::SharedPtr<Aspose::Pdf::Document>&, const System::String&) | Initializes new PdfFileStamp object on base of the document . |
| PdfFileStamp(const System::SharedPtr<Aspose::Pdf::Document>&, const System::SharedPtr<System::IO::Stream>&) | Initializes new PdfFileStamp object on base of the document . |
| PdfFileStamp(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::Web::HttpResponse>&) | Creates PdfFileStamp which will save result into HttpResponse object. |
| PdfFileStamp(const System::String&, const System::SharedPtr<System::Web::HttpResponse>&) | Creates PdfFileStamp which will save result into HttpResponse object. |
| Save(System::String) override | Saves result into specified file. |
| Save(System::SharedPtr<System::IO::Stream>) override | Saves document into specified stream. |
| set_AttachmentName(const System::String&) | Sets name of attachment when result of operation is stored into HttpResponse objects as attachment. |
| set_ContentDisposition(Aspose::Pdf::ContentDisposition) | Sets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline. |
| set_ConvertTo(PdfFormat) | Sets PDF file format. Result file will be saved in specified file format. If this property is not specified then file will be save in default PDF format without conversion. |
| set_InputFile(const System::String&) | Sets name and path of input file. |
| set_InputStream(const System::SharedPtr<System::IO::Stream>&) | Sets input stream. |
| set_KeepSecurity(bool) | Keeps security if true. (This feature will be implemented in next versions). |
| set_NumberingStyle(Aspose::Pdf::NumberingStyle) | Sets pabge numbering style. Possible values: NumeralsArabic, NumeralsRomanUppercase, NumeralsRomanLowercase, LettersAppercase, LettersLowercase. |
| set_OptimizeSize(bool) | Sets optimization flag. Equal resource streams in resultant file are merged into one PDF object if this flag set. This allows to decrease resultant file size but may cause slower execution and larger memory requirements. Default value: false. |
| set_OutputFile(const System::String&) | Sets name and path of output file. |
| set_OutputStream(const System::SharedPtr<System::IO::Stream>&) | Sets output stream. |
| set_PageNumberRotation(float) | Sets rotation of page number. Rotation is in degrees. Default is 0. |
| set_Response(const System::SharedPtr<System::Web::HttpResponse>&) | Sets Response object where result of operation will be stored. |
| set_SaveOptions(const System::SharedPtr<Aspose::Pdf::SaveOptions>&) | Sets save options when result is stored as HttpResponse. Default value: PdfSaveOptions. |
| set_StampId(int32_t) | Stamp ID of next added stamp (incluiding page headers/hooters/page numbers). |
| set_StartingNumber(int32_t) | Sets starting number for first page in input file. Next pages will be numbered starting from this value. For example if StartingNumber is set to 100, document pages will have numbers 100, 101, 102… |
Fields
| Field | Description |
|---|---|
| static PosBottomLeft | Bottom left position. |
| static PosBottomMiddle | Bottom middle position. |
| static PosBottomRight | Bottom right position. |
| static PosSidesLeft | Left position. |
| static PosSidesRight | Right position. |
| static PosUpperLeft | Upper let position. |
| static PosUpperMiddle | Upper middle position. |
| static PosUpperRight | Right upper position. |
See Also
- Class SaveableFacade
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++