Foxit PDF SDK
com.foxit.sdk.pdf.SplitPDFDoc Class Reference
Inheritance diagram for com.foxit.sdk.pdf.SplitPDFDoc:
com.foxit.sdk.common.Base

Public Member Functions

synchronized void delete ()
 Clean up related resources immediately. More...
 

Static Public Member Functions

static Progressive startSplitByFileSize (float max_file_size, SplitOutputSettingData setting_data, SplitDocumentInfoArray split_doc_array, SplitPDFDocCallback split_callback)
 Start to split a PDF document into multiple PDF documents.
More...
 

Detailed Description

This class can be used to split a PDF document into multiple PDF documents.

See also
PDFDoc

Member Function Documentation

◆ delete()

synchronized void com.foxit.sdk.pdf.SplitPDFDoc.delete ( )

Clean up related resources immediately.

Returns
None.
Note
Once this function is called, current object cannot be used anymore.

Reimplemented from com.foxit.sdk.common.Base.

◆ startSplitByFileSize()

static Progressive com.foxit.sdk.pdf.SplitPDFDoc.startSplitByFileSize ( float  max_file_size,
SplitOutputSettingData  setting_data,
SplitDocumentInfoArray  split_doc_array,
SplitPDFDocCallback  split_callback 
)
static

Start to split a PDF document into multiple PDF documents.

The specific information of the PDF documents after splitting will be returned in the callback function SplitPDFDocCallback.resultNotify .

Parameters
[in]max_file_sizeThe maximum file size of the PDF document generated by splitting (unit is Megabytes). If the file size of the PDF document to be split is smaller than the value of this parameter, the PDF document cannot be split and status com.foxit.sdk.pdf.SplitFileResult.e_SplitFileErrSizeTooSmall will be returned. The lower limit of this parameter's value is 0.5 Megabytes.
[in]setting_dataSetting data used for splitting.
[in]split_doc_arrayAn array of PDF documents to be split.
[in]split_callbackA SplitPDFDocCallback object which is implemented by user to pause and notify the splitting progress during the splitting process, as well as to notify the result of the split. This can be null which means not to pause and notify the splitting progress. If this is not null, it should be a valid SplitPDFDocCallback object implemented by user.

Returns
A progressive object. Please check the rate of current progress by function common.Progressive.getRateOfProgress . If the rate is not 100 yet, call function common.Progressive.resume to continue the progress until the progress is finished.