Action performed when corrupted file was met in concatenation process. More...
Inherits Aspose::Pdf::LicenseManagement::IVentureLicenseTarget.
Classes | |
class | ContentsResizeParameters |
Class for specifing page resize parameters. Allow to set the following parameters: Size of result page (width, height) in default space units or in percents of initial pages size; Left, Top, Bottom and Right margins in default space units or in percents of initial page size; Some values may be left null for automatic calculation. These values will be calculated from rest of page size after calculation explicitly specified values. For example: if page width = 100 and new page width specified 60 units then left and right margins are automatically calculated: (100 - 60) / 2 = 15. This class is used in ResizeContents method. More... | |
class | ContentsResizeValue |
Value of margin or content size specified in percents of default space units. This class is used in ContentsResizeParameters. More... | |
class | CorruptedItem |
Class which provides information about corrupted files in time of concatenation. More... | |
class | PageBreak |
Data of page break position. More... | |
Public Types | |
enum | ConcatenateCorruptedFileAction { ConcatenateCorruptedFileAction::StopWithError, ConcatenateCorruptedFileAction::ConcatenateIgnoringCorrupted, ConcatenateCorruptedFileAction::ConcatenateIgnoringCorruptedObjects } |
Action performed when corrupted file was met in concatenation process. More... | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
typedef System::Details::SharedMembersType | shared_members_type |
structure to keep list of shared pointers contained in object. More... | |
Public Member Functions | |
System::String | get_ConversionLog () |
Gets log of conversion process. More... | |
bool | get_MergeDuplicateLayers () const |
Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true. Else, layers with equal names will be save as different layers in resultant document. More... | |
void | set_MergeDuplicateLayers (bool value) |
Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true. Else, layers with equal names will be save as different layers in resultant document. More... | |
bool | get_CopyOutlines () const |
If true then outlines will be copied. More... | |
void | set_CopyOutlines (bool value) |
If true then outlines will be copied. More... | |
bool | get_CopyLogicalStructure () const |
If true then logical structure of the file is copied when concatenation is performed. More... | |
void | set_CopyLogicalStructure (bool value) |
If true then logical structure of the file is copied when concatenation is performed. More... | |
bool | get_MergeDuplicateOutlines () const |
If true, duplicate outlines are merged. More... | |
void | set_MergeDuplicateOutlines (bool value) |
If true, duplicate outlines are merged. More... | |
bool | get_PreserveUserRights () const |
If true, user rights of first document are applied to concatenated document. User rights of all other documents are ignored. More... | |
void | set_PreserveUserRights (bool value) |
If true, user rights of first document are applied to concatenated document. User rights of all other documents are ignored. More... | |
bool | get_IncrementalUpdates () const |
If true, incremental updates are made during concatenation. More... | |
void | set_IncrementalUpdates (bool value) |
If true, incremental updates are made during concatenation. More... | |
bool | 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. More... | |
void | set_OptimizeSize (bool value) |
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. More... | |
System::ArrayPtr< System::SharedPtr< PdfFileEditor::CorruptedItem > > | get_CorruptedItems () |
Array of encountered problems when concatenation was performed. For every corrupted document from passed to Concatenate() function new CorruptedItem entry is created. This property may be used only when CorruptedFileAction is ConcatenateIgnoringCorrupted. //concatenate documents and show information about corrupted documents pfe.CorruptedFileAction = PdfFileEditor.ConcatenateCorruptedFileActions.ConcatenateIgnoringCorrupted; if (pfe.CorruptedItems.Length >0) { foreach(PdfFileEditor.CorruptedItem item in pfe.CorruptedItems) { Console.WriteLine(item.Index + " reason: " + item.Exception); } } | |
PdfFileEditor::ConcatenateCorruptedFileAction | get_CorruptedFileAction () const |
This property defines behavior when concatenating process met corrupted file. Possible values are: StopWithError and ConcatenateIgnoringCorrupted. More... | |
void | set_CorruptedFileAction (PdfFileEditor::ConcatenateCorruptedFileAction value) |
This property defines behavior when concatenating process met corrupted file. Possible values are: StopWithError and ConcatenateIgnoringCorrupted. More... | |
System::String | get_OwnerPassword () const |
Sets owner's password if the source input Pdf file is encrypted. This property is not implemented yet. More... | |
void | set_OwnerPassword (System::String value) |
Sets owner's password if the source input Pdf file is encrypted. This property is not implemented yet. More... | |
bool | get_AllowConcatenateExceptions () const |
If set to true, exceptions are thrown if error occured. Else excetion are not thrown and methods return false if failed. More... | |
void | set_AllowConcatenateExceptions (bool value) |
If set to true, exceptions are thrown if error occured. Else excetion are not thrown and methods return false if failed. More... | |
void | set_ConvertTo (PdfFormat value) |
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. More... | |
bool | get_CloseConcatenatedStreams () const |
If set to true, streams are closed after operation. More... | |
void | set_CloseConcatenatedStreams (bool value) |
If set to true, streams are closed after operation. More... | |
System::String | get_UniqueSuffix () const |
Format of the suffix which is added to field name to make it unique when forms are concatenated. This string must contain NUM% substring which will be replaced with numbers. For example if UniqueSuffix = "ABC%NUM%" then for field "fieldName" names will be: fieldNameABC1, fieldNameABC2, fieldNameABC3 etc. More... | |
void | set_UniqueSuffix (System::String value) |
Format of the suffix which is added to field name to make it unique when forms are concatenated. This string must contain NUM% substring which will be replaced with numbers. For example if UniqueSuffix = "ABC%NUM%" then for field "fieldName" names will be: fieldNameABC1, fieldNameABC2, fieldNameABC3 etc. More... | |
bool | get_KeepActions () const |
If true actions will be copied from source documents. Defaulkt value : true. More... | |
void | set_KeepActions (bool value) |
If true actions will be copied from source documents. Defaulkt value : true. More... | |
bool | get_KeepFieldsUnique () const |
If true then field names will be made unique when forms are concatenated. Suffixes will be added to field names, suffix template may be specified in UniqueSuffix property. More... | |
void | set_KeepFieldsUnique (bool value) |
If true then field names will be made unique when forms are concatenated. Suffixes will be added to field names, suffix template may be specified in UniqueSuffix property. More... | |
bool | get_UseDiskBuffer () |
If this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates. More... | |
void | set_UseDiskBuffer (bool value) |
If this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates. More... | |
int32_t | get_ConcatenationPacketSize () const |
Number of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true. More... | |
void | set_ConcatenationPacketSize (int32_t value) |
Number of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true. More... | |
System::Exception | get_LastException () const |
Gets last occured exception. May be used to check the reason of failure when AllowconcatenateExceptions = false. More... | |
Aspose::Pdf::ContentDisposition | get_ContentDisposition () const |
Gets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline. More... | |
void | set_ContentDisposition (Aspose::Pdf::ContentDisposition value) |
Sets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline. More... | |
System::SharedPtr< Aspose::Pdf::SaveOptions > | get_SaveOptions () const |
Gets save options when result is stored as HttpResponse. Default value: PdfSaveOptions. More... | |
void | set_SaveOptions (System::SharedPtr< Aspose::Pdf::SaveOptions > value) |
Sets save options when result is stored as HttpResponse. Default value: PdfSaveOptions. More... | |
System::String | get_AttachmentName () const |
Gets name of attachment when result of operation is stored into HttpResponse objects as attachment. More... | |
void | set_AttachmentName (System::String value) |
Sets name of attachment when result of operation is stored into HttpResponse objects as attachment. More... | |
void | SetVentureLicense (System::SharedPtr< Aspose::Pdf::LicenseManagement::VentureLicense > license) |
System::SharedPtr< Aspose::Pdf::LicenseManagement::VentureLicense > | GetVentureLicense () |
PdfFileEditor () | |
PdfFileEditor constructor. More... | |
bool | Concatenate (System::String firstInputFile, System::String secInputFile, System::String outputFile) |
Concatentates two files. More... | |
bool | Concatenate (System::SharedPtr< System::IO::Stream > firstInputStream, System::SharedPtr< System::IO::Stream > secInputStream, System::SharedPtr< System::IO::Stream > outputStream) |
Concatenates two files. More... | |
bool | Concatenate (System::ArrayPtr< System::SharedPtr< Document >> src, System::SharedPtr< Document > dest) |
Concatenates documents. More... | |
bool | Concatenate (System::ArrayPtr< System::String > inputFiles, System::String outputFile) |
Concatenates files into one file. More... | |
bool | Concatenate (System::ArrayPtr< System::SharedPtr< System::IO::Stream >> inputStream, System::SharedPtr< System::IO::Stream > outputStream) |
Concatenates files More... | |
bool | Concatenate (System::String firstInputFile, System::String secInputFile, System::String blankPageFile, System::String outputFile) |
Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1', p2', p3'. Merging the two Pdf document will produce the result document with pages:p1, p1', p2, p2', p3, p3', p4, blankpage, p5, blankpage. More... | |
bool | Concatenate (System::SharedPtr< System::IO::Stream > firstInputStream, System::SharedPtr< System::IO::Stream > secInputStream, System::SharedPtr< System::IO::Stream > blankPageStream, System::SharedPtr< System::IO::Stream > outputStream) |
Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1', p2', p3'. Merging the two Pdf document will produce the result document with pages:p1, p1', p2, p2', p3, p3', p4, blankpage, p5, blankpage. More... | |
bool | Append (System::SharedPtr< System::IO::Stream > inputStream, System::ArrayPtr< System::SharedPtr< System::IO::Stream >> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr< System::IO::Stream > outputStream) |
Appends pages, which are chosen from array of documents in portStreams. The result document includes firstInputFile and all portStreams documents pages in the range startPage to endPage. More... | |
bool | Append (System::String inputFile, System::ArrayPtr< System::String > portFiles, int32_t startPage, int32_t endPage, System::String outputFile) |
Appends pages, which are chosen from portFiles documents. The result document includes firstInputFile and all portFiles documents pages in the range startPage to endPage. More... | |
bool | Append (System::String inputFile, System::String portFile, int32_t startPage, int32_t endPage, System::String outputFile) |
Appends pages, which are chosen from portFile within the range from startPage to endPage, in portFile at the end of firstInputFile. More... | |
bool | Append (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::IO::Stream > portStream, int32_t startPage, int32_t endPage, System::SharedPtr< System::IO::Stream > outputStream) |
Appends pages,which are chosen from portStream within the range from startPage to endPage, in portStream at the end of firstInputStream. More... | |
bool | Insert (System::String inputFile, int32_t insertLocation, System::String portFile, int32_t startPage, int32_t endPage, System::String outputFile) |
Inserts pages from an other file into the Pdf file at a position. More... | |
bool | Insert (System::SharedPtr< System::IO::Stream > inputStream, int32_t insertLocation, System::SharedPtr< System::IO::Stream > portStream, int32_t startPage, int32_t endPage, System::SharedPtr< System::IO::Stream > outputStream) |
Inserts pages from an other file into the input Pdf file. More... | |
bool | Insert (System::String inputFile, int32_t insertLocation, System::String portFile, System::ArrayPtr< int32_t > pageNumber, System::String outputFile) |
Inserts pages from an other file into the input Pdf file. More... | |
bool | Insert (System::SharedPtr< System::IO::Stream > inputStream, int32_t insertLocation, System::SharedPtr< System::IO::Stream > portStream, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::IO::Stream > outputStream) |
Inserts pages from an other file into the input Pdf file. More... | |
bool | Delete (System::String inputFile, System::ArrayPtr< int32_t > pageNumber, System::String outputFile) |
Deletes pages specified by number array from input file, saves as a new Pdf file. More... | |
bool | Delete (System::SharedPtr< System::IO::Stream > inputStream, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::IO::Stream > outputStream) |
Deletes pages specified by number array from input file, saves as a new Pdf file. More... | |
bool | Extract (System::String inputFile, int32_t startPage, int32_t endPage, System::String outputFile) |
Extracts pages from input file,saves as a new Pdf file. More... | |
bool | Extract (System::String inputFile, System::ArrayPtr< int32_t > pageNumber, System::String outputFile) |
Extracts pages specified by number array, saves as a new PDF file. More... | |
bool | Extract (System::SharedPtr< System::IO::Stream > inputStream, int32_t startPage, int32_t endPage, System::SharedPtr< System::IO::Stream > outputStream) |
Extracts pages from input file,saves as a new Pdf file. More... | |
bool | Extract (System::SharedPtr< System::IO::Stream > inputStream, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::IO::Stream > outputStream) |
Extracts pages specified by number array, saves as a new Pdf file. More... | |
bool | SplitFromFirst (System::String inputFile, int32_t location, System::String outputFile) |
Splits Pdf file from first page to specified location,and saves the front part as a new file. More... | |
bool | SplitFromFirst (System::SharedPtr< System::IO::Stream > inputStream, int32_t location, System::SharedPtr< System::IO::Stream > outputStream) |
Splits from start to specified location,and saves the front part in output Stream. More... | |
bool | SplitToEnd (System::String inputFile, int32_t location, System::String outputFile) |
Splits from location, and saves the rear part as a new file. More... | |
bool | SplitToEnd (System::SharedPtr< System::IO::Stream > inputStream, int32_t location, System::SharedPtr< System::IO::Stream > outputStream) |
Splits from specified location, and saves the rear part as a new file Stream. More... | |
bool | MakeBooklet (System::String inputFile, System::String outputFile) |
Makes booklet from the input file to output file. More... | |
bool | MakeBooklet (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::IO::Stream > outputStream) |
Makes booklet from the InputStream to outputStream. More... | |
bool | MakeBooklet (System::String inputFile, System::String outputFile, System::SharedPtr< PageSize > pageSize) |
Makes booklet from the inputFile to outputFile. More... | |
bool | MakeBooklet (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::IO::Stream > outputStream, System::SharedPtr< PageSize > pageSize) |
Makes booklet from the input stream and save result into output stream. More... | |
bool | MakeBooklet (System::String inputFile, System::String outputFile, System::ArrayPtr< int32_t > leftPages, System::ArrayPtr< int32_t > rightPages) |
Makes customized booklet from the firstInputFile to outputFile. More... | |
bool | MakeBooklet (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::IO::Stream > outputStream, System::ArrayPtr< int32_t > leftPages, System::ArrayPtr< int32_t > rightPages) |
Makes customized booklet from the firstInputStream to outputStream. More... | |
bool | MakeBooklet (System::String inputFile, System::String outputFile, System::SharedPtr< PageSize > pageSize, System::ArrayPtr< int32_t > leftPages, System::ArrayPtr< int32_t > rightPages) |
Makes customized booklet from the firstInputFile to outputFile. More... | |
bool | MakeBooklet (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::IO::Stream > outputStream, System::SharedPtr< PageSize > pageSize, System::ArrayPtr< int32_t > leftPages, System::ArrayPtr< int32_t > rightPages) |
Makes booklet from the firstInputStream to outputStream. More... | |
bool | MakeNUp (System::String inputFile, System::String outputFile, int32_t x, int32_t y) |
Makes N-Up document from the firstInputFile to outputFile. More... | |
bool | MakeNUp (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::IO::Stream > outputStream, int32_t x, int32_t y) |
Makes N-Up document from the input stream and saves result into output stream. More... | |
bool | MakeNUp (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< System::IO::Stream > outputStream, int32_t x, int32_t y, System::SharedPtr< PageSize > pageSize) |
Makes N-Up document from the first input stream to output stream. More... | |
bool | MakeNUp (System::String firstInputFile, System::String secondInputFile, System::String outputFile) |
Makes N-Up document from the two input PDF files to outputFile. Each page of outputFile will contain two pages, one page is from the first input file and another is from the second input file. The two pages are piled up horizontally. More... | |
bool | MakeNUp (System::SharedPtr< System::IO::Stream > firstInputStream, System::SharedPtr< System::IO::Stream > secondInputStream, System::SharedPtr< System::IO::Stream > outputStream) |
Makes N-Up document from the two input PDF streams to outputStream. More... | |
bool | MakeNUp (System::ArrayPtr< System::String > inputFiles, System::String outputFile, bool isSidewise) |
Makes N-Up document from the multi input PDF files to outputFile. Each page of outputFile will contain multi pages, which are combination with pages in the input files of the same page number. The multi pages piled up horizontally if isSidewise is true and piled up vertically if isSidewise is false. More... | |
bool | MakeNUp (System::ArrayPtr< System::SharedPtr< System::IO::Stream >> inputStreams, System::SharedPtr< System::IO::Stream > outputStream, bool isSidewise) |
Makes N-Up document from the multi input PDF streams to outputStream. Each page of outputStream will contain multi pages, which are combination with pages in the input streams of the same page number. The multi-pages piled up horizontally if isSidewise is true and piled up vertically if isSidewise is false. More... | |
bool | MakeNUp (System::String inputFile, System::String outputFile, int32_t x, int32_t y, System::SharedPtr< PageSize > pageSize) |
Makes N-Up document from the input file to outputFile. More... | |
System::ArrayPtr< System::SharedPtr< System::IO::MemoryStream > > | SplitToPages (System::String inputFile) |
Splits the PDF file into single-page documents. More... | |
System::ArrayPtr< System::SharedPtr< System::IO::MemoryStream > > | SplitToPages (System::SharedPtr< System::IO::Stream > inputStream) |
Splits the Pdf file into single-page documents. More... | |
void | SplitToPages (System::String inputFile, System::String fileNameTemplate) |
Split the Pdf file into single-page documents and saves it into specified path. Path is specifield by field name temaplate. More... | |
void | SplitToPages (System::SharedPtr< System::IO::Stream > inputStream, System::String fileNameTemplate) |
Split the Pdf file into single-page documents and saves it into specified path. Path is specifield by field name temaplate. More... | |
System::ArrayPtr< System::SharedPtr< System::IO::MemoryStream > > | SplitToBulks (System::String inputFile, System::ArrayPtr< System::ArrayPtr< int32_t >> numberOfPage) |
Splits the Pdf file into several documents.The documents can be single-page or multi-pages. More... | |
System::ArrayPtr< System::SharedPtr< System::IO::MemoryStream > > | SplitToBulks (System::SharedPtr< System::IO::Stream > inputStream, System::ArrayPtr< System::ArrayPtr< int32_t >> numberOfPage) |
Splits the Pdf file into several documents.The documents can be single-page or multi-pages. More... | |
bool | ResizeContents (System::SharedPtr< System::IO::Stream > source, System::SharedPtr< System::IO::Stream > destination, System::ArrayPtr< int32_t > pages, System::SharedPtr< PdfFileEditor::ContentsResizeParameters > parameters) |
Resizes contents of pages of the document. More... | |
bool | ResizeContents (System::SharedPtr< System::IO::Stream > source, System::SharedPtr< System::IO::Stream > destination, System::ArrayPtr< int32_t > pages, double newWidth, double newHeight) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New size of contents is specified in default space units. More... | |
bool | ResizeContentsPct (System::SharedPtr< System::IO::Stream > source, System::SharedPtr< System::IO::Stream > destination, System::ArrayPtr< int32_t > pages, double newWidth, double newHeight) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New contents size is specified in percents. More... | |
bool | AddMargins (System::SharedPtr< System::IO::Stream > source, System::SharedPtr< System::IO::Stream > destination, System::ArrayPtr< int32_t > pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin) |
Resizes page contents and add specifed margins. Margins are specified in default space units. More... | |
bool | AddMarginsPct (System::SharedPtr< System::IO::Stream > source, System::SharedPtr< System::IO::Stream > destination, System::ArrayPtr< int32_t > pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin) |
Resizes page contents and add specified margins. Margins are specified in percents of intitial page size. More... | |
bool | ResizeContents (System::String source, System::String destination, System::ArrayPtr< int32_t > pages, double newWidth, double newHeight) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New size of contents is specified in default space units. More... | |
bool | ResizeContentsPct (System::String source, System::String destination, System::ArrayPtr< int32_t > pages, double newWidth, double newHeight) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New contents size is specified in percents. More... | |
bool | AddMargins (System::String source, System::String destination, System::ArrayPtr< int32_t > pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin) |
Resizes page contents and add specifed margins. Margins are specified in default space units. More... | |
bool | AddMarginsPct (System::String source, System::String destination, System::ArrayPtr< int32_t > pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin) |
Resizes page contents and add specified margins. Margins are specified in percents of intitial page size. More... | |
bool | ResizeContents (System::String source, System::String destination, System::ArrayPtr< int32_t > pages, System::SharedPtr< PdfFileEditor::ContentsResizeParameters > parameters) |
Resizes contents of pages in document. If page is shrinked blank margins are added around the page. More... | |
void | ResizeContents (System::SharedPtr< Document > source, System::ArrayPtr< int32_t > pages, System::SharedPtr< PdfFileEditor::ContentsResizeParameters > parameters) |
Resizes pages of document. Blank margins are added around of shrinked page. More... | |
void | ResizeContents (System::SharedPtr< Document > source, System::SharedPtr< PdfFileEditor::ContentsResizeParameters > parameters) |
Resizes pages of document. Blank margins are added around of shrinked page. More... | |
bool | Concatenate (System::ArrayPtr< System::String > inputFiles, System::SharedPtr< System::Web::HttpResponse > response) |
Concatenates files and saves reslt into HttpResposnse object. More... | |
bool | Concatenate (System::ArrayPtr< System::SharedPtr< System::IO::Stream >> inputStream, System::SharedPtr< System::Web::HttpResponse > response) |
Concatenates files and stores result into HttpResponse object. More... | |
bool | Append (System::SharedPtr< System::IO::Stream > inputStream, System::ArrayPtr< System::SharedPtr< System::IO::Stream >> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr< System::Web::HttpResponse > response) |
Appends documents to source document and saves result into response object. More... | |
bool | Append (System::String inputFile, System::ArrayPtr< System::String > portFiles, int32_t startPage, int32_t endPage, System::SharedPtr< System::Web::HttpResponse > response) |
Appends documents to source document and saves result into HttpResponse object. More... | |
bool | Insert (System::String inputFile, int32_t insertLocation, System::String portFile, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::Web::HttpResponse > response) |
Inserts contents of file into source file and stores result into HttpResponse object. More... | |
bool | Insert (System::SharedPtr< System::IO::Stream > inputStream, int32_t insertLocation, System::SharedPtr< System::IO::Stream > portStream, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::Web::HttpResponse > response) |
Inserts document into other document and stores result into response object. More... | |
bool | Delete (System::String inputFile, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::Web::HttpResponse > response) |
Deletes specified pages from document and stores result into HttpResponse object. More... | |
bool | Delete (System::SharedPtr< System::IO::Stream > inputStream, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::Web::HttpResponse > response) |
Deletes specified pages from document and saves result into HttpResponse object. More... | |
bool | Extract (System::SharedPtr< System::IO::Stream > inputStream, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::Web::HttpResponse > response) |
Extracts specified pages form source file and stores result into HttpResponse object. More... | |
bool | Extract (System::String inputFile, System::ArrayPtr< int32_t > pageNumber, System::SharedPtr< System::Web::HttpResponse > response) |
Extracts specified pages from source file and stores result into HttpResponse object. More... | |
bool | SplitFromFirst (System::String inputFile, int32_t location, System::SharedPtr< System::Web::HttpResponse > response) |
Splits document from first page to location and saves result into HttpResponse objects. More... | |
bool | SplitFromFirst (System::SharedPtr< System::IO::Stream > inputStream, int32_t location, System::SharedPtr< System::Web::HttpResponse > response) |
Splits document from start to specified location and stores result into HttpResponse object. More... | |
bool | SplitToEnd (System::SharedPtr< System::IO::Stream > inputStream, int32_t location, System::SharedPtr< System::Web::HttpResponse > response) |
Splits from specified location, and saves the rear part into HttpResponse object. More... | |
bool | SplitToEnd (System::String inputFile, int32_t location, System::SharedPtr< System::Web::HttpResponse > response) |
Splits from specified location, and saves the rear part into HttpResponse object. More... | |
bool | MakeBooklet (System::String inputFile, System::SharedPtr< PageSize > pageSize, System::ArrayPtr< int32_t > leftPages, System::ArrayPtr< int32_t > rightPages, System::SharedPtr< System::Web::HttpResponse > response) |
Makes booklet from source file and stores result into HttpResponse objects. More... | |
bool | MakeBooklet (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< PageSize > pageSize, System::ArrayPtr< int32_t > leftPages, System::ArrayPtr< int32_t > rightPages, System::SharedPtr< System::Web::HttpResponse > response) |
Make booklet from PDF file and stores it into HttpResponse. More... | |
bool | MakeBooklet (System::String inputFile, System::SharedPtr< PageSize > pageSize, System::SharedPtr< System::Web::HttpResponse > response) |
Makes booklet from source file and stores result into HttpResponse objects. More... | |
bool | MakeBooklet (System::SharedPtr< System::IO::Stream > inputStream, System::SharedPtr< PageSize > pageSize, System::SharedPtr< System::Web::HttpResponse > response) |
Makes booklet from source file and stores result into HttpResponse. More... | |
bool | MakeNUp (System::SharedPtr< System::IO::Stream > inputStream, int32_t x, int32_t y, System::SharedPtr< PageSize > pageSize, System::SharedPtr< System::Web::HttpResponse > response) |
Makes N-up document and stores result into HttpResponse object. More... | |
bool | MakeNUp (System::String inputFile, int32_t x, int32_t y, System::SharedPtr< PageSize > pageSize, System::SharedPtr< System::Web::HttpResponse > response) |
Makes N-up document and stores result into HttpResponse object. More... | |
bool | MakeNUp (System::String inputFile, int32_t x, int32_t y, System::SharedPtr< System::Web::HttpResponse > response) |
Makes N-up document and stores result into HttpResponse. More... | |
bool | MakeNUp (System::SharedPtr< System::IO::Stream > inputStream, int32_t x, int32_t y, System::SharedPtr< System::Web::HttpResponse > response) |
Makes N-up document and stores result into HttpResponse. More... | |
bool | ResizeContents (System::String source, System::ArrayPtr< int32_t > pages, System::SharedPtr< PdfFileEditor::ContentsResizeParameters > parameters, System::SharedPtr< System::Web::HttpResponse > response) |
Resizes contents of pages in document. If page is shrinked blank margins are added around the page.Result is stored into HttpResponse object. More... | |
bool | ResizeContents (System::SharedPtr< System::IO::Stream > source, System::ArrayPtr< int32_t > pages, System::SharedPtr< PdfFileEditor::ContentsResizeParameters > parameters, System::SharedPtr< System::Web::HttpResponse > response) |
Resizes contents of pages in document. If page is shrinked blank margins are added around the page.Result is stored into HttpResponse object. More... | |
void | AddPageBreak (System::SharedPtr< Document > src, System::SharedPtr< Document > dest, System::ArrayPtr< System::SharedPtr< PdfFileEditor::PageBreak >> pageBreaks) |
Adds page breaks into document pages. More... | |
void | AddPageBreak (System::String src, System::String dest, System::ArrayPtr< System::SharedPtr< PdfFileEditor::PageBreak >> pageBreaks) |
Adds page breaks into document pages. More... | |
void | AddPageBreak (System::SharedPtr< System::IO::Stream > src, System::SharedPtr< System::IO::Stream > dest, System::ArrayPtr< System::SharedPtr< PdfFileEditor::PageBreak >> pageBreaks) |
Adds page breaks into document pages. More... | |
![]() | |
virtual void | SetVentureLicense (System::SharedPtr< VentureLicense > license)=0 |
![]() | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared refernce counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (unsigned int argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Protected Member Functions | |
bool | get__IsObjectLicensed () |
Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise. More... | |
void | ResizeContents (System::SharedPtr< Document > source, System::SharedPtr< Document > dest, System::ArrayPtr< int32_t > pages, System::SharedPtr< PdfFileEditor::ContentsResizeParameters > parameters) |
Resizes pages of document. Blank margins are added around of shrinked page. More... | |
Static Protected Attributes | |
static const System::String | E_EMPTY_PAGE_RANGE |
static const System::String | E_SMALL_PAGE_RANGE |
static const System::String | E_WRONG_PAGE_RANGE |
Additional Inherited Members | |
![]() | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Impleemnts C# typeof(System.Object) construct. More... | |
Action performed when corrupted file was met in concatenation process.
Action performed when corrupted file was met in concatenation process.
Aspose::Pdf::Facades::PdfFileEditor::PdfFileEditor | ( | ) |
PdfFileEditor constructor.
bool Aspose::Pdf::Facades::PdfFileEditor::AddMargins | ( | System::SharedPtr< System::IO::Stream > | source, |
System::SharedPtr< System::IO::Stream > | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | leftMargin, | ||
double | rightMargin, | ||
double | topMargin, | ||
double | bottomMargin | ||
) |
Resizes page contents and add specifed margins. Margins are specified in default space units.
source | Stream which contains source document. |
destination | Stream where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
leftMargin | Left margin. |
rightMargin | Right margin. |
topMargin | Top margin. |
bottomMargin | Bottom margin. |
bool Aspose::Pdf::Facades::PdfFileEditor::AddMargins | ( | System::String | source, |
System::String | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | leftMargin, | ||
double | rightMargin, | ||
double | topMargin, | ||
double | bottomMargin | ||
) |
Resizes page contents and add specifed margins. Margins are specified in default space units.
source | Path to source document. |
destination | Path where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
leftMargin | Left margin. |
rightMargin | Right margin. |
topMargin | Top margin. |
bottomMargin | Bottom margin. |
bool Aspose::Pdf::Facades::PdfFileEditor::AddMarginsPct | ( | System::SharedPtr< System::IO::Stream > | source, |
System::SharedPtr< System::IO::Stream > | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | leftMargin, | ||
double | rightMargin, | ||
double | topMargin, | ||
double | bottomMargin | ||
) |
Resizes page contents and add specified margins. Margins are specified in percents of intitial page size.
source | Stream which contains source document. |
destination | Stream where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
leftMargin | Left margin in percents of initial page size. |
rightMargin | Right margin in percents of initial page size. |
topMargin | Top margin in percents of initial page size. |
bottomMargin | Bottom margin in percents of initial page size. |
bool Aspose::Pdf::Facades::PdfFileEditor::AddMarginsPct | ( | System::String | source, |
System::String | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | leftMargin, | ||
double | rightMargin, | ||
double | topMargin, | ||
double | bottomMargin | ||
) |
Resizes page contents and add specified margins. Margins are specified in percents of intitial page size.
source | Path to source document. |
destination | Path where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
leftMargin | Left margin in percents of initial page size. |
rightMargin | Right margin in percents of initial page size. |
topMargin | Top margin in percents of initial page size. |
bottomMargin | Bottom margin in percents of initial page size. |
void Aspose::Pdf::Facades::PdfFileEditor::AddPageBreak | ( | System::SharedPtr< Document > | src, |
System::SharedPtr< Document > | dest, | ||
System::ArrayPtr< System::SharedPtr< PdfFileEditor::PageBreak >> | pageBreaks | ||
) |
Adds page breaks into document pages.
src | Source document. |
dest | Destination document. |
pageBreaks | Array of PageBreak objects which describe places of page breaks. |
void Aspose::Pdf::Facades::PdfFileEditor::AddPageBreak | ( | System::String | src, |
System::String | dest, | ||
System::ArrayPtr< System::SharedPtr< PdfFileEditor::PageBreak >> | pageBreaks | ||
) |
Adds page breaks into document pages.
src | Path to source document. |
dest | Path to destination document. |
pageBreaks | Array of PageBreak object describing pages and places where page break will be added. |
void Aspose::Pdf::Facades::PdfFileEditor::AddPageBreak | ( | System::SharedPtr< System::IO::Stream > | src, |
System::SharedPtr< System::IO::Stream > | dest, | ||
System::ArrayPtr< System::SharedPtr< PdfFileEditor::PageBreak >> | pageBreaks | ||
) |
Adds page breaks into document pages.
src | Source which contains source document. |
dest | Source where destination document will be saved. |
pageBreaks | Array of PageBreak object describing pages and places where page break will be added. |
bool Aspose::Pdf::Facades::PdfFileEditor::Append | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::ArrayPtr< System::SharedPtr< System::IO::Stream >> | portStreams, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Appends pages, which are chosen from array of documents in portStreams. The result document includes firstInputFile and all portStreams documents pages in the range startPage to endPage.
inputStream | Input Pdf stream. |
portStreams | Documents to copy pages from. |
startPage | Page starts in portStreams documents. |
endPage | Page ends in portStreams documents . |
outputStream | Output Pdf stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::Append | ( | System::String | inputFile, |
System::ArrayPtr< System::String > | portFiles, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::String | outputFile | ||
) |
Appends pages, which are chosen from portFiles documents. The result document includes firstInputFile and all portFiles documents pages in the range startPage to endPage.
inputFile | Input Pdf file. |
portFiles | Documents to copy pages from. |
startPage | Page starts in portFiles documents. |
endPage | Page ends in portFiles documents . |
outputFile | Output Pdf document. |
bool Aspose::Pdf::Facades::PdfFileEditor::Append | ( | System::String | inputFile, |
System::String | portFile, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::String | outputFile | ||
) |
Appends pages, which are chosen from portFile within the range from startPage to endPage, in portFile at the end of firstInputFile.
inputFile | Input Pdf file. |
portFile | Pages from Pdf file. |
startPage | Page starts in portFile. |
endPage | Page ends in portFile. |
outputFile | Output Pdf document. |
bool Aspose::Pdf::Facades::PdfFileEditor::Append | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< System::IO::Stream > | portStream, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Appends pages,which are chosen from portStream within the range from startPage to endPage, in portStream at the end of firstInputStream.
inputStream | Input file Stream. |
portStream | Pages from Pdf file Stream. |
startPage | Page starts in portFile Stream. |
endPage | Page ends in portFile Stream. |
outputStream | Output Pdf file Stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::Append | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::ArrayPtr< System::SharedPtr< System::IO::Stream >> | portStreams, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Appends documents to source document and saves result into response object.
inputStream | Stream which contains source document. |
portStreams | Array of streams with documents to be appended. |
startPage | Start page of appended page. |
endPage | End page of appended pages. |
response | Response object where document will be saved. |
bool Aspose::Pdf::Facades::PdfFileEditor::Append | ( | System::String | inputFile, |
System::ArrayPtr< System::String > | portFiles, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Appends documents to source document and saves result into HttpResponse object.
inputFile | Name of file containing source document. |
portFiles | Array of file names containing appended documents |
startPage | Start page of appended pages. |
endPage | End page of appended pages. |
response | Response object where document will be saved. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::String | firstInputFile, |
System::String | secInputFile, | ||
System::String | outputFile | ||
) |
Concatentates two files.
firstInputFile | First file to concatenate. |
secInputFile | Second file to concatenate. |
outputFile | Output file. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::SharedPtr< System::IO::Stream > | firstInputStream, |
System::SharedPtr< System::IO::Stream > | secInputStream, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Concatenates two files.
firstInputStream | Stream of first file. |
secInputStream | Stream of second file. |
outputStream | Stream where result file will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::ArrayPtr< System::SharedPtr< Document >> | src, |
System::SharedPtr< Document > | dest | ||
) |
Concatenates documents.
src | Array of source documents. |
dest | Destination document. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::ArrayPtr< System::String > | inputFiles, |
System::String | outputFile | ||
) |
Concatenates files into one file.
inputFiles | Array of files to concatenate. |
outputFile | Name of output file. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::ArrayPtr< System::SharedPtr< System::IO::Stream >> | inputStream, |
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Concatenates files
inputStream | Array of streams to be concatenated. |
outputStream | Stream where result file will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::String | firstInputFile, |
System::String | secInputFile, | ||
System::String | blankPageFile, | ||
System::String | outputFile | ||
) |
Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1', p2', p3'. Merging the two Pdf document will produce the result document with pages:p1, p1', p2, p2', p3, p3', p4, blankpage, p5, blankpage.
firstInputFile | First file. |
secInputFile | Second file. |
blankPageFile | PDF file with blank page. |
outputFile | Result file. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::SharedPtr< System::IO::Stream > | firstInputStream, |
System::SharedPtr< System::IO::Stream > | secInputStream, | ||
System::SharedPtr< System::IO::Stream > | blankPageStream, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1', p2', p3'. Merging the two Pdf document will produce the result document with pages:p1, p1', p2, p2', p3, p3', p4, blankpage, p5, blankpage.
firstInputStream | The first Pdf Stream. |
secInputStream | The second Pdf Stream. |
blankPageStream | The Pdf Stream with blank page |
outputStream | Output Pdf Stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::ArrayPtr< System::String > | inputFiles, |
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Concatenates files and saves reslt into HttpResposnse object.
inputFiles | Array of files to concatenate. |
response | Response object. |
bool Aspose::Pdf::Facades::PdfFileEditor::Concatenate | ( | System::ArrayPtr< System::SharedPtr< System::IO::Stream >> | inputStream, |
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Concatenates files and stores result into HttpResponse object.
inputStream | Streams array which contain files to concatenate. |
response | Response object/ |
bool Aspose::Pdf::Facades::PdfFileEditor::Delete | ( | System::String | inputFile, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::String | outputFile | ||
) |
Deletes pages specified by number array from input file, saves as a new Pdf file.
inputFile | Input file path. |
pageNumber | Index of page out of the input file. |
outputFile | Output file path. |
bool Aspose::Pdf::Facades::PdfFileEditor::Delete | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Deletes pages specified by number array from input file, saves as a new Pdf file.
inputStream | Input file Stream. |
pageNumber | Index of page out of the input file. |
outputStream | Output file stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::Delete | ( | System::String | inputFile, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Deletes specified pages from document and stores result into HttpResponse object.
inputFile | Path of source file. |
pageNumber | Array of page numbers which must be deleted. |
response | Response object where result document will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::Delete | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Deletes specified pages from document and saves result into HttpResponse object.
inputStream | Source document stream. |
pageNumber | Array of page numbers which will be deleted. |
response | HttpResponse object |
bool Aspose::Pdf::Facades::PdfFileEditor::Extract | ( | System::String | inputFile, |
int32_t | startPage, | ||
int32_t | endPage, | ||
System::String | outputFile | ||
) |
bool Aspose::Pdf::Facades::PdfFileEditor::Extract | ( | System::String | inputFile, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::String | outputFile | ||
) |
Extracts pages specified by number array, saves as a new PDF file.
inputFile | Input file path. |
pageNumber | Index of page out of the input file. |
outputFile | Output file path. |
bool Aspose::Pdf::Facades::PdfFileEditor::Extract | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | startPage, | ||
int32_t | endPage, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
bool Aspose::Pdf::Facades::PdfFileEditor::Extract | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Extracts pages specified by number array, saves as a new Pdf file.
inputStream | Input file Stream. |
pageNumber | Index of page out of the input file. |
outputStream | Output file stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::Extract | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Extracts specified pages form source file and stores result into HttpResponse object.
inputStream | Stream of source document. |
pageNumber | Array of page numbers which will be extracted. |
response | HttpResponse object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::Extract | ( | System::String | inputFile, |
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Extracts specified pages from source file and stores result into HttpResponse object.
inputFile | Source file path. |
pageNumber | Array of page numbers which will be extracted. |
response | HttpResponse object where result will be stored. |
|
protected |
Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise.
bool Aspose::Pdf::Facades::PdfFileEditor::get_AllowConcatenateExceptions | ( | ) | const |
If set to true, exceptions are thrown if error occured. Else excetion are not thrown and methods return false if failed.
System::String Aspose::Pdf::Facades::PdfFileEditor::get_AttachmentName | ( | ) | const |
Gets name of attachment when result of operation is stored into HttpResponse objects as attachment.
bool Aspose::Pdf::Facades::PdfFileEditor::get_CloseConcatenatedStreams | ( | ) | const |
If set to true, streams are closed after operation.
int32_t Aspose::Pdf::Facades::PdfFileEditor::get_ConcatenationPacketSize | ( | ) | const |
Number of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true.
Aspose::Pdf::ContentDisposition Aspose::Pdf::Facades::PdfFileEditor::get_ContentDisposition | ( | ) | const |
Gets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline.
System::String Aspose::Pdf::Facades::PdfFileEditor::get_ConversionLog | ( | ) |
Gets log of conversion process.
bool Aspose::Pdf::Facades::PdfFileEditor::get_CopyLogicalStructure | ( | ) | const |
If true then logical structure of the file is copied when concatenation is performed.
bool Aspose::Pdf::Facades::PdfFileEditor::get_CopyOutlines | ( | ) | const |
If true then outlines will be copied.
PdfFileEditor::ConcatenateCorruptedFileAction Aspose::Pdf::Facades::PdfFileEditor::get_CorruptedFileAction | ( | ) | const |
This property defines behavior when concatenating process met corrupted file. Possible values are: StopWithError and ConcatenateIgnoringCorrupted.
System::ArrayPtr<System::SharedPtr<PdfFileEditor::CorruptedItem> > Aspose::Pdf::Facades::PdfFileEditor::get_CorruptedItems | ( | ) |
Array of encountered problems when concatenation was performed. For every corrupted document from passed to Concatenate() function new CorruptedItem entry is created. This property may be used only when CorruptedFileAction is ConcatenateIgnoringCorrupted.
bool Aspose::Pdf::Facades::PdfFileEditor::get_IncrementalUpdates | ( | ) | const |
If true, incremental updates are made during concatenation.
bool Aspose::Pdf::Facades::PdfFileEditor::get_KeepActions | ( | ) | const |
If true actions will be copied from source documents. Defaulkt value : true.
bool Aspose::Pdf::Facades::PdfFileEditor::get_KeepFieldsUnique | ( | ) | const |
If true then field names will be made unique when forms are concatenated. Suffixes will be added to field names, suffix template may be specified in UniqueSuffix property.
System::Exception Aspose::Pdf::Facades::PdfFileEditor::get_LastException | ( | ) | const |
Gets last occured exception. May be used to check the reason of failure when AllowconcatenateExceptions = false.
bool Aspose::Pdf::Facades::PdfFileEditor::get_MergeDuplicateLayers | ( | ) | const |
Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true. Else, layers with equal names will be save as different layers in resultant document.
bool Aspose::Pdf::Facades::PdfFileEditor::get_MergeDuplicateOutlines | ( | ) | const |
If true, duplicate outlines are merged.
bool Aspose::Pdf::Facades::PdfFileEditor::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.
System::String Aspose::Pdf::Facades::PdfFileEditor::get_OwnerPassword | ( | ) | const |
Sets owner's password if the source input Pdf file is encrypted. This property is not implemented yet.
bool Aspose::Pdf::Facades::PdfFileEditor::get_PreserveUserRights | ( | ) | const |
If true, user rights of first document are applied to concatenated document. User rights of all other documents are ignored.
System::SharedPtr<Aspose::Pdf::SaveOptions> Aspose::Pdf::Facades::PdfFileEditor::get_SaveOptions | ( | ) | const |
Gets save options when result is stored as HttpResponse. Default value: PdfSaveOptions.
System::String Aspose::Pdf::Facades::PdfFileEditor::get_UniqueSuffix | ( | ) | const |
Format of the suffix which is added to field name to make it unique when forms are concatenated. This string must contain NUM% substring which will be replaced with numbers. For example if UniqueSuffix = "ABC%NUM%" then for field "fieldName" names will be: fieldNameABC1, fieldNameABC2, fieldNameABC3 etc.
bool Aspose::Pdf::Facades::PdfFileEditor::get_UseDiskBuffer | ( | ) |
If this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates.
|
virtual |
bool Aspose::Pdf::Facades::PdfFileEditor::Insert | ( | System::String | inputFile, |
int32_t | insertLocation, | ||
System::String | portFile, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::String | outputFile | ||
) |
Inserts pages from an other file into the Pdf file at a position.
inputFile | Input Pdf file. |
insertLocation | Position in input file. |
portFile | The porting Pdf file. |
startPage | Start position in portFile. |
endPage | End position in portFile. |
outputFile | Output Pdf file. |
bool Aspose::Pdf::Facades::PdfFileEditor::Insert | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | insertLocation, | ||
System::SharedPtr< System::IO::Stream > | portStream, | ||
int32_t | startPage, | ||
int32_t | endPage, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Inserts pages from an other file into the input Pdf file.
inputStream | Input Stream of Pdf file. |
insertLocation | Insert position in input file. |
portStream | Stream of Pdf file for pages. |
startPage | From which page to start. |
endPage | To which page to end. |
outputStream | Output Stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::Insert | ( | System::String | inputFile, |
int32_t | insertLocation, | ||
System::String | portFile, | ||
System::ArrayPtr< int32_t > | pageNumber, | ||
System::String | outputFile | ||
) |
Inserts pages from an other file into the input Pdf file.
inputFile | Input Pdf file. |
insertLocation | Insert position in input file. |
portFile | Pages from the Pdf file. |
pageNumber | The page number of the ported in portFile. |
outputFile | Output Pdf file. |
bool Aspose::Pdf::Facades::PdfFileEditor::Insert | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | insertLocation, | ||
System::SharedPtr< System::IO::Stream > | portStream, | ||
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Inserts pages from an other file into the input Pdf file.
inputStream | Input Stream of Pdf file. |
insertLocation | Insert position in input file. |
portStream | Stream of Pdf file for pages. |
pageNumber | The page number of the ported in portFile. |
outputStream | Output Stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::Insert | ( | System::String | inputFile, |
int32_t | insertLocation, | ||
System::String | portFile, | ||
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Inserts contents of file into source file and stores result into HttpResponse object.
inputFile | Source file name. |
insertLocation | Page number where second file will be inserted. |
portFile | Path to file which will be inserted. |
pageNumber | Array of page numbers in source file wihich will be inserted. |
response | Response object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::Insert | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | insertLocation, | ||
System::SharedPtr< System::IO::Stream > | portStream, | ||
System::ArrayPtr< int32_t > | pageNumber, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Inserts document into other document and stores result into response object.
inputStream | Stream with source document |
insertLocation | Location where other document will be inserted. |
portStream | Document to be inserted. |
pageNumber | Array of page numbers in second document which will be inserted. |
response | Response object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::String | inputFile, |
System::String | outputFile | ||
) |
Makes booklet from the input file to output file.
inputFile | Input pdf file path and name. |
outputFile | Output pdf file path and name. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Makes booklet from the InputStream to outputStream.
inputStream | Input pdf stream. |
outputStream | output pdf stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::String | inputFile, |
System::String | outputFile, | ||
System::SharedPtr< PageSize > | pageSize | ||
) |
Makes booklet from the inputFile to outputFile.
inputFile | Input pdf file path and name. |
outputFile | Output pdf file path and name. |
pageSize | The page size of the output pdf file. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< System::IO::Stream > | outputStream, | ||
System::SharedPtr< PageSize > | pageSize | ||
) |
Makes booklet from the input stream and save result into output stream.
inputStream | Input PDF stream. |
outputStream | output pdf stream. |
pageSize | The page size of the output pdf file. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::String | inputFile, |
System::String | outputFile, | ||
System::ArrayPtr< int32_t > | leftPages, | ||
System::ArrayPtr< int32_t > | rightPages | ||
) |
Makes customized booklet from the firstInputFile to outputFile.
inputFile | The input file. |
outputFile | Output pdf file path and name. |
leftPages | The left pages of the booklet. |
rightPages | The right pages of the booklet. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< System::IO::Stream > | outputStream, | ||
System::ArrayPtr< int32_t > | leftPages, | ||
System::ArrayPtr< int32_t > | rightPages | ||
) |
Makes customized booklet from the firstInputStream to outputStream.
inputStream | The input stream. |
outputStream | output pdf stream. |
leftPages | The left pages. |
rightPages | The right pages. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::String | inputFile, |
System::String | outputFile, | ||
System::SharedPtr< PageSize > | pageSize, | ||
System::ArrayPtr< int32_t > | leftPages, | ||
System::ArrayPtr< int32_t > | rightPages | ||
) |
Makes customized booklet from the firstInputFile to outputFile.
inputFile | The input file. |
outputFile | Output pdf file path and name. |
pageSize | The page size of the output pdf file. |
leftPages | The left pages. |
rightPages | The right pages. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< System::IO::Stream > | outputStream, | ||
System::SharedPtr< PageSize > | pageSize, | ||
System::ArrayPtr< int32_t > | leftPages, | ||
System::ArrayPtr< int32_t > | rightPages | ||
) |
Makes booklet from the firstInputStream to outputStream.
inputStream | The input stream. |
outputStream | output pdf stream. |
pageSize | The page size of the output pdf file. |
leftPages | The left pages. |
rightPages | The right pages. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::String | inputFile, |
System::SharedPtr< PageSize > | pageSize, | ||
System::ArrayPtr< int32_t > | leftPages, | ||
System::ArrayPtr< int32_t > | rightPages, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Makes booklet from source file and stores result into HttpResponse objects.
inputFile | Source file path. |
pageSize | Desired page size. |
leftPages | Aray of page numbers to be placed in left. |
rightPages | Array of page numbers to be placed in right. |
response | HttpResponse object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< PageSize > | pageSize, | ||
System::ArrayPtr< int32_t > | leftPages, | ||
System::ArrayPtr< int32_t > | rightPages, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Make booklet from PDF file and stores it into HttpResponse.
inputStream | Input document stream. |
pageSize | Desired page size. |
leftPages | Array of page numbers which will be placed in left. |
rightPages | Array of page numbers which will b eplaced in right. |
response | HttpResponse object. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::String | inputFile, |
System::SharedPtr< PageSize > | pageSize, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Makes booklet from source file and stores result into HttpResponse objects.
inputFile | Source file path. |
pageSize | Desired page size in output file. |
response | HttpResponse object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeBooklet | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< PageSize > | pageSize, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Makes booklet from source file and stores result into HttpResponse.
inputStream | Input document stream. |
pageSize | Desired page size in output file. |
response | Respose object where resut will be saved. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::String | inputFile, |
System::String | outputFile, | ||
int32_t | x, | ||
int32_t | y | ||
) |
Makes N-Up document from the firstInputFile to outputFile.
inputFile | Input pdf file path and name. |
outputFile | Output pdf file path and name. |
x | Number of columns. |
y | Number of rows. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< System::IO::Stream > | outputStream, | ||
int32_t | x, | ||
int32_t | y | ||
) |
Makes N-Up document from the input stream and saves result into output stream.
inputStream | Input pdf stream. |
outputStream | Output pdf stream. |
x | Number of columns. |
y | Number of rows. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::SharedPtr< System::IO::Stream > | outputStream, | ||
int32_t | x, | ||
int32_t | y, | ||
System::SharedPtr< PageSize > | pageSize | ||
) |
Makes N-Up document from the first input stream to output stream.
inputStream | Input pdf stream. |
outputStream | Output pdf stream. |
x | Number of columns. |
y | Number of rows. |
pageSize | The page size of the output pdf file. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::String | firstInputFile, |
System::String | secondInputFile, | ||
System::String | outputFile | ||
) |
Makes N-Up document from the two input PDF files to outputFile. Each page of outputFile will contain two pages, one page is from the first input file and another is from the second input file. The two pages are piled up horizontally.
firstInputFile | first input file. |
secondInputFile | second input file. |
outputFile | Output pdf file path and name. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::SharedPtr< System::IO::Stream > | firstInputStream, |
System::SharedPtr< System::IO::Stream > | secondInputStream, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Makes N-Up document from the two input PDF streams to outputStream.
firstInputStream | first input stream. |
secondInputStream | second input stream. |
outputStream | Output pdf stream. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::ArrayPtr< System::String > | inputFiles, |
System::String | outputFile, | ||
bool | isSidewise | ||
) |
Makes N-Up document from the multi input PDF files to outputFile. Each page of outputFile will contain multi pages, which are combination with pages in the input files of the same page number. The multi pages piled up horizontally if isSidewise is true and piled up vertically if isSidewise is false.
inputFiles | Input Pdf files. |
outputFile | Output pdf file path and name. |
isSidewise | Piled up way, true for horizontally and flase for vertically. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::ArrayPtr< System::SharedPtr< System::IO::Stream >> | inputStreams, |
System::SharedPtr< System::IO::Stream > | outputStream, | ||
bool | isSidewise | ||
) |
Makes N-Up document from the multi input PDF streams to outputStream. Each page of outputStream will contain multi pages, which are combination with pages in the input streams of the same page number. The multi-pages piled up horizontally if isSidewise is true and piled up vertically if isSidewise is false.
inputStreams | Input Pdf streams. | ||
outputStream | Output pdf stream.
|
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::String | inputFile, |
System::String | outputFile, | ||
int32_t | x, | ||
int32_t | y, | ||
System::SharedPtr< PageSize > | pageSize | ||
) |
Makes N-Up document from the input file to outputFile.
inputFile | Input pdf file path and name. |
outputFile | Output pdf file path and name. |
x | Number of columns. |
y | Number of rows. |
pageSize | The page size of the output pdf file. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | x, | ||
int32_t | y, | ||
System::SharedPtr< PageSize > | pageSize, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Makes N-up document and stores result into HttpResponse object.
inputStream | Stream of source document. |
x | Number of columns. |
y | Number of rows. |
pageSize | Page size in result file. |
response | HttpResponse object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::String | inputFile, |
int32_t | x, | ||
int32_t | y, | ||
System::SharedPtr< PageSize > | pageSize, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Makes N-up document and stores result into HttpResponse object.
inputFile | Path to source file. |
x | Number of columns. |
y | Number of rows. |
pageSize | Page size in result file. |
response | HttpResponse object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::String | inputFile, |
int32_t | x, | ||
int32_t | y, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Makes N-up document and stores result into HttpResponse.
inputFile | Source file name. |
x | Number of columns. |
y | Number of rows. |
response | HttpResponse object where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::MakeNUp | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | x, | ||
int32_t | y, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Makes N-up document and stores result into HttpResponse.
inputStream | Stream of input document. |
x | Number of columns. |
y | Number of rows. |
response | HttpResponse where result will be stored. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::SharedPtr< System::IO::Stream > | source, |
System::SharedPtr< System::IO::Stream > | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
System::SharedPtr< PdfFileEditor::ContentsResizeParameters > | parameters | ||
) |
Resizes contents of pages of the document.
source | Stream with source document. |
destination | Stream with the destination document. |
pages | Array of page indexes. |
parameters | Resize parameters. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::SharedPtr< System::IO::Stream > | source, |
System::SharedPtr< System::IO::Stream > | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | newWidth, | ||
double | newHeight | ||
) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New size of contents is specified in default space units.
source | Stream which contains source document. |
destination | Stream where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
newWidth | New width of page contents in default space units. |
newHeight | New height of page contents in default space units. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::String | source, |
System::String | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | newWidth, | ||
double | newHeight | ||
) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New size of contents is specified in default space units.
source | Path to source document. |
destination | Path where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
newWidth | New width of page contents in default space units. |
newHeight | New height of page contents in default space units. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::String | source, |
System::String | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
System::SharedPtr< PdfFileEditor::ContentsResizeParameters > | parameters | ||
) |
Resizes contents of pages in document. If page is shrinked blank margins are added around the page.
source | Source document path. |
destination | Destination document path. |
pages | Array of page indexes (page index starts from 1). |
parameters | Parameters of page resize. |
void Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::SharedPtr< Document > | source, |
System::ArrayPtr< int32_t > | pages, | ||
System::SharedPtr< PdfFileEditor::ContentsResizeParameters > | parameters | ||
) |
Resizes pages of document. Blank margins are added around of shrinked page.
source | Source document. |
pages | List of page indexes. |
parameters | Resize parameters. |
void Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::SharedPtr< Document > | source, |
System::SharedPtr< PdfFileEditor::ContentsResizeParameters > | parameters | ||
) |
Resizes pages of document. Blank margins are added around of shrinked page.
source | Source document. |
parameters | Resize parameters. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::String | source, |
System::ArrayPtr< int32_t > | pages, | ||
System::SharedPtr< PdfFileEditor::ContentsResizeParameters > | parameters, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Resizes contents of pages in document. If page is shrinked blank margins are added around the page.Result is stored into HttpResponse object.
source | Path to source file. |
pages | Array of pages to be resized. |
parameters | Resize parameters. |
response | HttpResponse object where result is saved. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents | ( | System::SharedPtr< System::IO::Stream > | source, |
System::ArrayPtr< int32_t > | pages, | ||
System::SharedPtr< PdfFileEditor::ContentsResizeParameters > | parameters, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Resizes contents of pages in document. If page is shrinked blank margins are added around the page.Result is stored into HttpResponse object.
source | Stream of source file. |
pages | Array of pages to be resized. |
parameters | Resize parameters. |
response | HttpResponse object where result is saved. |
|
protected |
Resizes pages of document. Blank margins are added around of shrinked page.
source | Source document. |
dest | Destinalion document. |
pages | List of page indexes. |
parameters | Resize parameters. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContentsPct | ( | System::SharedPtr< System::IO::Stream > | source, |
System::SharedPtr< System::IO::Stream > | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | newWidth, | ||
double | newHeight | ||
) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New contents size is specified in percents.
source | Stream which contains source document. |
destination | Stream where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
newWidth | New width of page contents in percents. |
newHeight | New height of page contents in percetns. |
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContentsPct | ( | System::String | source, |
System::String | destination, | ||
System::ArrayPtr< int32_t > | pages, | ||
double | newWidth, | ||
double | newHeight | ||
) |
Resizes contents of document pages. Shrinks contents of page and adds margins. New contents size is specified in percents.
source | Path to source document. |
destination | Path where resultant document will be saved. |
pages | Array of page indexes. If null then all document pages will be processed. |
newWidth | New width of page contents in percents. |
newHeight | New height of page contents in percetns. |
void Aspose::Pdf::Facades::PdfFileEditor::set_AllowConcatenateExceptions | ( | bool | value | ) |
If set to true, exceptions are thrown if error occured. Else excetion are not thrown and methods return false if failed.
void Aspose::Pdf::Facades::PdfFileEditor::set_AttachmentName | ( | System::String | value | ) |
Sets name of attachment when result of operation is stored into HttpResponse objects as attachment.
void Aspose::Pdf::Facades::PdfFileEditor::set_CloseConcatenatedStreams | ( | bool | value | ) |
If set to true, streams are closed after operation.
void Aspose::Pdf::Facades::PdfFileEditor::set_ConcatenationPacketSize | ( | int32_t | value | ) |
Number of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true.
void Aspose::Pdf::Facades::PdfFileEditor::set_ContentDisposition | ( | Aspose::Pdf::ContentDisposition | value | ) |
Sets how content will be stored when result of operation is stored into HttpResponse object. Possible value: inline / attachment. Default: inline.
void Aspose::Pdf::Facades::PdfFileEditor::set_ConvertTo | ( | PdfFormat | value | ) |
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.
void Aspose::Pdf::Facades::PdfFileEditor::set_CopyLogicalStructure | ( | bool | value | ) |
If true then logical structure of the file is copied when concatenation is performed.
void Aspose::Pdf::Facades::PdfFileEditor::set_CopyOutlines | ( | bool | value | ) |
If true then outlines will be copied.
void Aspose::Pdf::Facades::PdfFileEditor::set_CorruptedFileAction | ( | PdfFileEditor::ConcatenateCorruptedFileAction | value | ) |
This property defines behavior when concatenating process met corrupted file. Possible values are: StopWithError and ConcatenateIgnoringCorrupted.
void Aspose::Pdf::Facades::PdfFileEditor::set_IncrementalUpdates | ( | bool | value | ) |
If true, incremental updates are made during concatenation.
void Aspose::Pdf::Facades::PdfFileEditor::set_KeepActions | ( | bool | value | ) |
If true actions will be copied from source documents. Defaulkt value : true.
void Aspose::Pdf::Facades::PdfFileEditor::set_KeepFieldsUnique | ( | bool | value | ) |
If true then field names will be made unique when forms are concatenated. Suffixes will be added to field names, suffix template may be specified in UniqueSuffix property.
void Aspose::Pdf::Facades::PdfFileEditor::set_MergeDuplicateLayers | ( | bool | value | ) |
Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true. Else, layers with equal names will be save as different layers in resultant document.
void Aspose::Pdf::Facades::PdfFileEditor::set_MergeDuplicateOutlines | ( | bool | value | ) |
If true, duplicate outlines are merged.
void Aspose::Pdf::Facades::PdfFileEditor::set_OptimizeSize | ( | bool | value | ) |
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.
void Aspose::Pdf::Facades::PdfFileEditor::set_OwnerPassword | ( | System::String | value | ) |
Sets owner's password if the source input Pdf file is encrypted. This property is not implemented yet.
void Aspose::Pdf::Facades::PdfFileEditor::set_PreserveUserRights | ( | bool | value | ) |
If true, user rights of first document are applied to concatenated document. User rights of all other documents are ignored.
void Aspose::Pdf::Facades::PdfFileEditor::set_SaveOptions | ( | System::SharedPtr< Aspose::Pdf::SaveOptions > | value | ) |
Sets save options when result is stored as HttpResponse. Default value: PdfSaveOptions.
void Aspose::Pdf::Facades::PdfFileEditor::set_UniqueSuffix | ( | System::String | value | ) |
Format of the suffix which is added to field name to make it unique when forms are concatenated. This string must contain NUM% substring which will be replaced with numbers. For example if UniqueSuffix = "ABC%NUM%" then for field "fieldName" names will be: fieldNameABC1, fieldNameABC2, fieldNameABC3 etc.
void Aspose::Pdf::Facades::PdfFileEditor::set_UseDiskBuffer | ( | bool | value | ) |
If this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates.
void Aspose::Pdf::Facades::PdfFileEditor::SetVentureLicense | ( | System::SharedPtr< Aspose::Pdf::LicenseManagement::VentureLicense > | license | ) |
bool Aspose::Pdf::Facades::PdfFileEditor::SplitFromFirst | ( | System::String | inputFile, |
int32_t | location, | ||
System::String | outputFile | ||
) |
Splits Pdf file from first page to specified location,and saves the front part as a new file.
bool Aspose::Pdf::Facades::PdfFileEditor::SplitFromFirst | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | location, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Splits from start to specified location,and saves the front part in output Stream.
inputStream | Source Pdf file Stream. |
location | The splitting point. |
outputStream | Output file Stream. |
The streams are NOT closed after this operation.
bool Aspose::Pdf::Facades::PdfFileEditor::SplitFromFirst | ( | System::String | inputFile, |
int32_t | location, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Splits document from first page to location and saves result into HttpResponse objects.
inputFile | Source file name. |
location | Split point. |
response | HttpResponse objects. |
bool Aspose::Pdf::Facades::PdfFileEditor::SplitFromFirst | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | location, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Splits document from start to specified location and stores result into HttpResponse object.
inputStream | Stream of source document. |
location | The splitting point. |
response | HttpResponse object where result will be stored. |
System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream> > Aspose::Pdf::Facades::PdfFileEditor::SplitToBulks | ( | System::String | inputFile, |
System::ArrayPtr< System::ArrayPtr< int32_t >> | numberOfPage | ||
) |
Splits the Pdf file into several documents.The documents can be single-page or multi-pages.
inputFile | Input PDF file. |
numberOfPage | Array which contains array of double elements, which is start and end pages of document. |
System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream> > Aspose::Pdf::Facades::PdfFileEditor::SplitToBulks | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::ArrayPtr< System::ArrayPtr< int32_t >> | numberOfPage | ||
) |
Splits the Pdf file into several documents.The documents can be single-page or multi-pages.
inputStream | Input PDF stream. |
numberOfPage | The start page and the end page of each document. |
bool Aspose::Pdf::Facades::PdfFileEditor::SplitToEnd | ( | System::String | inputFile, |
int32_t | location, | ||
System::String | outputFile | ||
) |
bool Aspose::Pdf::Facades::PdfFileEditor::SplitToEnd | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | location, | ||
System::SharedPtr< System::IO::Stream > | outputStream | ||
) |
Splits from specified location, and saves the rear part as a new file Stream.
inputStream | Source Pdf file Stream. |
location | The splitting position. |
outputStream | Output Pdf file Stream. |
The streams are NOT closed after this operation unless CloseConcatedStreams is specified.
bool Aspose::Pdf::Facades::PdfFileEditor::SplitToEnd | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
int32_t | location, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Splits from specified location, and saves the rear part into HttpResponse object.
inputStream | Source document stream. |
location | Split point. |
response | HttpResponse object. |
bool Aspose::Pdf::Facades::PdfFileEditor::SplitToEnd | ( | System::String | inputFile, |
int32_t | location, | ||
System::SharedPtr< System::Web::HttpResponse > | response | ||
) |
Splits from specified location, and saves the rear part into HttpResponse object.
inputFile | source file name. |
location | Split point. |
response | HttpResponse objects. |
System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream> > Aspose::Pdf::Facades::PdfFileEditor::SplitToPages | ( | System::String | inputFile | ) |
Splits the PDF file into single-page documents.
inputFile | Input PDF file name. |
System::ArrayPtr<System::SharedPtr<System::IO::MemoryStream> > Aspose::Pdf::Facades::PdfFileEditor::SplitToPages | ( | System::SharedPtr< System::IO::Stream > | inputStream | ) |
void Aspose::Pdf::Facades::PdfFileEditor::SplitToPages | ( | System::String | inputFile, |
System::String | fileNameTemplate | ||
) |
Split the Pdf file into single-page documents and saves it into specified path. Path is specifield by field name temaplate.
inputFile | Input file name. |
fileNameTemplate | Template of resultant file name. Must contain NUM% which is replaced with page number. For example, if c:/dir/pageNUM%.pdf is specified, resultant files will have the following names: c:/dir/page1.pdf, c:/dir/page2.pdf etc. |
void Aspose::Pdf::Facades::PdfFileEditor::SplitToPages | ( | System::SharedPtr< System::IO::Stream > | inputStream, |
System::String | fileNameTemplate | ||
) |
Split the Pdf file into single-page documents and saves it into specified path. Path is specifield by field name temaplate.
inputStream | Stream of the soruce document. |
fileNameTemplate | Template of resultant file name. Must contain NUM% which is replaced with page number. For example, if c:/dir/pageNUM%.pdf is specified, resultant files will have the following names: c:/dir/page1.pdf, c:/dir/page2.pdf etc. |
|
staticprotected |
|
staticprotected |
|
staticprotected |