IPdfFileEditor

public interface IPdfFileEditor

Implements operations with PDF file: concatenation, splitting, extracting pages, making booklet, etc.

Methods

MethodDescription
addMarginsResizes page contents and add specifed margins.
addMarginsResizes page contents and add specifed margins.
addMarginsPctResizes page contents and add specified margins.
addMarginsPctResizes page contents and add specified margins.
appendAppends pages, which are chosen from array of documents in portStreams.
appendAppends pages,which are chosen from portStream within the range from startPage to endPage, in portStream at the end of firstInputStream.
appendAppends pages, which are chosen from portFiles documents.
appendAppends pages, which are chosen from portFile within the range from startPage to endPage, in portFile at the end of firstInputFile.
concatenateConcatenates documents.
concatenateConcatenates files
concatenateMerges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages.
concatenateConcatenates two files.
concatenateConcatenates files into one file.
concatenateConcatentates two files.
concatenateMerges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages.
deleteDeletes pages specified by number array from input file, saves as a new Pdf file.
deleteDeletes pages specified by number array from input file, saves as a new Pdf file.
extractExtracts pages specified by number array, saves as a new Pdf file.
extractExtracts pages from input file,saves as a new Pdf file.
extractExtracts pages specified by number array, saves as a new PDF file.
extractExtracts pages from input file,saves as a new Pdf file.
getAllowConcatenateExceptionsis Allow Concatenate Exceptions
getAttachmentNameGets name of attachment when result of operation is stored into HttpServletResponse objects as attachment.
getCloseConcatenatedStreamsIf set to true, streams are closed after operation.
getContentDispositionGets how content will be stored when result of operation is stored into HttpServletResponse object.
getConversionLogGets log of conversion process.
getCorruptedFileActionThis property defines behavior when concatenating process met corrupted file.
getIncrementalUpdatesIf true, incremental updates are made during concatenation.
getKeepFieldsUniqueIf true then field names will be made unique when forms are concatenated.
getLastExceptionGets last occured exception.
getMergeDuplicateLayersOptional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true.
getMergeDuplicateOutlinesIf true, duplicate outlines are merged.
getOwnerPasswordGets owner’s password if the source input Pdf file is encrypted.
getPreserveUserRightsIf true, user rights of first document are applied to concatenated document.
getRemoveSignaturesIf true, all signatures will be removed from fields (fields will remain); otherwise, you can get invalid signatures.
getSaveOptionsGets or sets save options when result is stored as HttpServletResponse.
getUniqueSuffixGet format of the suffix which is added to field name to make it unique when forms are concatenated.
insertInserts pages from an other file into the input Pdf file.
insertInserts pages from an other file into the input Pdf file.
insertInserts pages from an other file into the input Pdf file.
insertInserts pages from an other file into the Pdf file at a position.
makeBookletMakes booklet from the InputStream to outputStream.
makeBookletMakes customized booklet from the firstInputStream to outputStream.
makeBookletMakes booklet from the input stream and save result into output stream.
makeBookletMakes booklet from the firstInputStream to outputStream.
makeBookletMakes booklet from the input file to output file.
makeBookletMakes customized booklet from the firstInputFile to outputFile.
makeBookletMakes booklet from the inputFile to outputFile.
makeBookletMakes customized booklet from the firstInputFile to outputFile.
makeNUpMakes N-Up document from the multi input PDF streams to outputStream.
makeNUpMakes N-Up document from the two input PDF streams to outputStream.
makeNUpMakes N-Up document from the input stream and saves result into output stream.
makeNUpMakes N-Up document from the first input stream to output stream.
makeNUpMakes N-Up document from the multi input PDF files to outputFile.
makeNUpMakes N-Up document from the firstInputFile to outputFile.
makeNUpMakes N-Up document from the input file to outputFile.
makeNUpMakes N-Up document from the two input PDF files to outputFile.
resizeContentsResizes contents of document pages.
resizeContentsResizes contents of document pages.
resizeContentsPctResizes contents of document pages.
resizeContentsPctResizes contents of document pages.
setAllowConcatenateExceptionsIf set to true, exceptions are thrown if error occured.
setAttachmentNameSets name of attachment when result of operation is stored into HttpServletResponse objects as attachment.
setCloseConcatenatedStreamsIf set to true, streams are closed after operation.
setContentDispositionSets how content will be stored when result of operation is stored into HttpServletResponse object.
setConvertToSets PDF file format.
setCorruptedFileActionThis property defines behavior when concatenating process met corrupted file.
setIncrementalUpdatesIf true, incremental updates are made during concatenation.
setKeepFieldsUniqueIf true then field names will be made unique when forms are concatenated.
setMergeDuplicateLayersOptional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true.
setMergeDuplicateOutlinesIf true, duplicate outlines are merged.
setOwnerPasswordSets owner’s password if the source input Pdf file is encrypted.
setPreserveUserRightsIf true, user rights of first document are applied to concatenated document.
setRemoveSignaturesIf true, all signatures will be removed from fields (fields will remain); otherwise, you can get invalid signatures.
setSaveOptionsSets save options when result is stored as HttpServletResponse.
setUniqueSuffixSet format of the suffix which is added to field name to make it unique when forms are concatenated.
splitFromFirstSplits from start to specified location,and saves the front part in output Stream.
splitFromFirstSplits Pdf file from first page to specified location,and saves the front part as a new file.
splitToBulksSplits the Pdf file into several documents.The documents can be single-page or multi-pages.
splitToBulksSplits the Pdf file into several documents.The documents can be single-page or multi-pages.
splitToEndSplits from specified location, and saves the rear part as a new file Stream.
splitToEndSplits from location, and saves the rear part as a new file.
splitToPagesSplits the Pdf file into single-page documents.
splitToPagesSplit the Pdf file into single-page documents and saves it into specified path.
splitToPagesSplits the PDF file into single-page documents.
splitToPagesSplit the Pdf file into single-page documents and saves it into specified path.

addMargins

Resizes page contents and add specifed margins.

addMargins

Resizes page contents and add specifed margins.

addMarginsPct

Resizes page contents and add specified margins.

addMarginsPct

Resizes page contents and add specified margins.

append

Appends pages, which are chosen from array of documents in portStreams.

append

Appends pages,which are chosen from portStream within the range from startPage to endPage, in portStream at the end of firstInputStream.

append

Appends pages, which are chosen from portFiles documents.

append

Appends pages, which are chosen from portFile within the range from startPage to endPage, in portFile at the end of firstInputFile.

concatenate

Concatenates documents.

concatenate

Concatenates files

concatenate

Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages.

concatenate

Concatenates two files.

concatenate

Concatenates files into one file.

concatenate

Concatentates two files.

concatenate

Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages.

delete

Deletes pages specified by number array from input file, saves as a new Pdf file.

delete

Deletes pages specified by number array from input file, saves as a new Pdf file.

extract

Extracts pages specified by number array, saves as a new Pdf file.

extract

Extracts pages from input file,saves as a new Pdf file.

extract

Extracts pages specified by number array, saves as a new PDF file.

extract

Extracts pages from input file,saves as a new Pdf file.

getAllowConcatenateExceptions

boolean getAllowConcatenateExceptions()

is Allow Concatenate Exceptions

Returns: boolean value

getAttachmentName

String getAttachmentName()

Gets name of attachment when result of operation is stored into HttpServletResponse objects as attachment.

Returns: string value

getCloseConcatenatedStreams

boolean getCloseConcatenatedStreams()

If set to true, streams are closed after operation.

Returns: boolean value

getContentDisposition

ContentDisposition getContentDisposition()

Gets how content will be stored when result of operation is stored into HttpServletResponse object.

Returns: ContentDisposition element

getConversionLog

String getConversionLog()

Gets log of conversion process.

Returns: string value

getCorruptedFileAction

int getCorruptedFileAction()

This property defines behavior when concatenating process met corrupted file.

Returns: ConcatenateCorruptedFileAction element

getIncrementalUpdates

boolean getIncrementalUpdates()

If true, incremental updates are made during concatenation.

Returns: boolean value

getKeepFieldsUnique

boolean getKeepFieldsUnique()

If true then field names will be made unique when forms are concatenated.

Returns: boolean value

getLastException

Exception getLastException()

Gets last occured exception.

Returns: java.lang.Exception object

getMergeDuplicateLayers

boolean getMergeDuplicateLayers()

Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true.

Returns: boolean value

getMergeDuplicateOutlines

boolean getMergeDuplicateOutlines()

If true, duplicate outlines are merged.

Returns: boolean value

getOwnerPassword

String getOwnerPassword()

Gets owner’s password if the source input Pdf file is encrypted.

Returns: string value

getPreserveUserRights

boolean getPreserveUserRights()

If true, user rights of first document are applied to concatenated document.

Returns: boolean value

getRemoveSignatures

boolean getRemoveSignatures()

If true, all signatures will be removed from fields (fields will remain); otherwise, you can get invalid signatures.

Returns: boolean value

getSaveOptions

SaveOptions getSaveOptions()

Gets or sets save options when result is stored as HttpServletResponse.

Returns: SaveOptions object

getUniqueSuffix

String getUniqueSuffix()

Get format of the suffix which is added to field name to make it unique when forms are concatenated.

Returns: string value

insert

Inserts pages from an other file into the input Pdf file.

insert

Inserts pages from an other file into the input Pdf file.

insert

Inserts pages from an other file into the input Pdf file.

insert

Inserts pages from an other file into the Pdf file at a position.

makeBooklet

Makes booklet from the InputStream to outputStream.

makeBooklet

Makes customized booklet from the firstInputStream to outputStream.

makeBooklet

Makes booklet from the input stream and save result into output stream.

makeBooklet

Makes booklet from the firstInputStream to outputStream.

makeBooklet

Makes booklet from the input file to output file.

makeBooklet

Makes customized booklet from the firstInputFile to outputFile.

makeBooklet

Makes booklet from the inputFile to outputFile.

makeBooklet

Makes customized booklet from the firstInputFile to outputFile.

makeNUp

Makes N-Up document from the multi input PDF streams to outputStream.

makeNUp

Makes N-Up document from the two input PDF streams to outputStream.

makeNUp

Makes N-Up document from the input stream and saves result into output stream.

makeNUp

Makes N-Up document from the first input stream to output stream.

makeNUp

Makes N-Up document from the multi input PDF files to outputFile.

makeNUp

Makes N-Up document from the firstInputFile to outputFile.

makeNUp

Makes N-Up document from the input file to outputFile.

makeNUp

Makes N-Up document from the two input PDF files to outputFile.

resizeContents

Resizes contents of document pages.

resizeContents

Resizes contents of document pages.

resizeContentsPct

Resizes contents of document pages.

resizeContentsPct

Resizes contents of document pages.

setAllowConcatenateExceptions

void setAllowConcatenateExceptions(boolean value)

If set to true, exceptions are thrown if error occured.

Parameters:

ParameterTypeDescription
valueboolean value

setAttachmentName

Sets name of attachment when result of operation is stored into HttpServletResponse objects as attachment.

setCloseConcatenatedStreams

void setCloseConcatenatedStreams(boolean value)

If set to true, streams are closed after operation.

Parameters:

ParameterTypeDescription
valueboolean value

setContentDisposition

Sets how content will be stored when result of operation is stored into HttpServletResponse object.

setConvertTo

Sets PDF file format.

setCorruptedFileAction

void setCorruptedFileAction(int value)

This property defines behavior when concatenating process met corrupted file.

Parameters:

ParameterTypeDescription
valueConcatenateCorruptedFileAction element

setIncrementalUpdates

void setIncrementalUpdates(boolean value)

If true, incremental updates are made during concatenation.

Parameters:

ParameterTypeDescription
valueboolean value

setKeepFieldsUnique

void setKeepFieldsUnique(boolean value)

If true then field names will be made unique when forms are concatenated.

Parameters:

ParameterTypeDescription
valueboolean value

setMergeDuplicateLayers

void setMergeDuplicateLayers(boolean value)

Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true.

Parameters:

ParameterTypeDescription
valueboolean value

setMergeDuplicateOutlines

void setMergeDuplicateOutlines(boolean value)

If true, duplicate outlines are merged.

Parameters:

ParameterTypeDescription
valueboolean value

setOwnerPassword

Sets owner’s password if the source input Pdf file is encrypted.

setPreserveUserRights

void setPreserveUserRights(boolean value)

If true, user rights of first document are applied to concatenated document.

Parameters:

ParameterTypeDescription
valueboolean value

setRemoveSignatures

void setRemoveSignatures(boolean value)

If true, all signatures will be removed from fields (fields will remain); otherwise, you can get invalid signatures.

Parameters:

ParameterTypeDescription
valueboolean value

setSaveOptions

Sets save options when result is stored as HttpServletResponse.

setUniqueSuffix

Set format of the suffix which is added to field name to make it unique when forms are concatenated.

splitFromFirst

Splits from start to specified location,and saves the front part in output Stream.

splitFromFirst

Splits Pdf file from first page to specified location,and saves the front part as a new file.

splitToBulks

Splits the Pdf file into several documents.The documents can be single-page or multi-pages.

splitToBulks

Splits the Pdf file into several documents.The documents can be single-page or multi-pages.

splitToEnd

Splits from specified location, and saves the rear part as a new file Stream.

splitToEnd

Splits from location, and saves the rear part as a new file.

splitToPages

Splits the Pdf file into single-page documents.

splitToPages

Split the Pdf file into single-page documents and saves it into specified path.

splitToPages

Splits the PDF file into single-page documents.

splitToPages

Split the Pdf file into single-page documents and saves it into specified path.