Aspose::Pdf::Facades::PdfFileSanitization class
Contents
[
Hide
]PdfFileSanitization class
Represents sanitization and recovery API. Use it if you can’t create/open documents in any other way.
class PdfFileSanitization : public Aspose::Pdf::Facades::SaveableFacade,
public Aspose::Pdf::Sanitization::IRecovery
Methods
Method | Description |
---|---|
BindPdf(System::String) override | Binds a Pdf file for Sanitize. |
BindPdf(System::SharedPtr<System::IO::Stream>) override | Binds a Pdf stream for Sanitize. |
BindPdf(System::SharedPtr<Aspose::Pdf::Document>) override | Initializes the facade. |
Close() override | Closes the facade. |
get_Log() override | After file has Saved you can check what was done with file. |
get_UseRebuildXrefAndTrailer() const | Allows to generate new xref and trailer for document. |
get_UseTrimBottom() const | Allows to remove data after pdf data. |
get_UseTrimTop() const | Allows to remove data before pdf data. |
PdfFileSanitization() | Initializes a new instance. |
RebuildXrefAndTrailer() | Removes old xref with trailer and creates a new xref with trailer. |
Recover() override | Recovers document. Use properties to customize. |
Save(System::String) override | Saves the result PDF to file. |
Save(System::SharedPtr<System::IO::Stream>) override | Saves the result PDF to stream. |
set_UseRebuildXrefAndTrailer(bool) | Allows to generate new xref and trailer for document. |
set_UseTrimBottom(bool) | Allows to remove data after pdf data. |
set_UseTrimTop(bool) | Allows to remove data before pdf data. |
TrimBottom() override | Removes data after last %EOF. |
TrimTop() override | Removes data before PDF. |
See Also
- Class SaveableFacade
- Class IRecovery
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++