PdfFileEditorWeb

Inheritance: java.lang.Object, com.aspose.pdf.facades.PdfFileEditorWeb

All Implemented Interfaces: IPdfFileEditor

public final class PdfFileEditorWeb extends Object implements IPdfFileEditor

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

Constructors

ConstructorDescription
PdfFileEditorWebPdfFileEditorWeb constructor.

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.
addPageBreakAdds page breaks into document pages.
addPageBreakAdds page breaks into document pages.
addPageBreakAdds page breaks into document pages.
addPageBreakAdds page breaks into document pages.
appendAppends documents to source document and saves result into response object.
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 documents to source document and saves result into HttpServletResponse object.
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 and stores result into HttpServletResponse object.
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 and saves reslt into HttpResposnse object.
concatenateConcatenates files into one file.
concatenateConcatenates two files.
concatenateMerges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages.
createArrayWithExclusion
deleteDeletes specified pages from document and saves result into HttpServletResponse object.
deleteDeletes pages specified by number array from input file, saves as a new Pdf file.
deleteDeletes specified pages from document and stores result into HttpServletResponse object.
deleteDeletes pages specified by number array from input file, saves as a new Pdf file.
extractExtracts specified pages form source file and stores result into HttpServletResponse object.
extractExtracts pages specified by number array, saves as a new Pdf file.
extractExtracts pages from input file,saves as a new Pdf file.
extractExtracts specified pages from source file and stores result into HttpServletResponse object.
extractExtracts pages specified by number array, saves as a new PDF file.
extractExtracts pages from input file,saves as a new Pdf file.
getAllowConcatenateExceptionsDeprecated. This property is deprecated and can not be used to allow throwing 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.
getConcatenationPacketSizeNumber of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true.
getContentDispositionGets how content will be stored when result of operation is stored into HttpServletResponse object.
getConversionLogGets log of conversion process.
getCopyLogicalStructureIf true then logical structure of the file is copied when concatenation is performed.
getCopyOutlinesIf true then outlines will be copied.
getCorruptedFileActionThis property defines behavior when concatenating process met corrupted file.
getCorruptedItemsArray of encountered problems when concatenation was performed.
getCustomProgressConcatenationHandlerRepresentation of internal progress events processor that works during concatenation and translates concatenation events of internal concatenation stages into external customer’s code.
getIncrementalUpdatesIf true, incremental updates are made during concatenation.
getKeepActionsIf true actions will be copied from source documents.
getKeepFieldsUniqueIf true then field names will be made unique when forms are concatenated.
getLastExceptionGets last occurred 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.
getOptimizeSizeGets or sets optimization flag.
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 document into other document and stores result into response object.
insertInserts pages from an other file into the input Pdf file.
insertInserts pages from an other file into the input Pdf file.
insertInserts contents of file into source file and stores result into HttpServletResponse object.
insertInserts pages from an other file into the input Pdf file.
insertInserts pages from an other file into the Pdf file at a position.
isTryMergeAdjacentSameBackgroundImagesSometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other.
isUseDiskBufferIf this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates.
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 source file and stores result into HttpServletResponse.
makeBookletMake booklet from PDF file and stores it into HttpServletResponse.
makeBookletMakes booklet from source file and stores result into HttpServletResponse objects.
makeBookletMakes booklet from source file and stores result into HttpServletResponse objects.
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 and stores result into HttpServletResponse.
makeNUpMakes N-up document and stores result into HttpServletResponse object.
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 and stores result into HttpServletResponse.
makeNUpMakes N-up document and stores result into HttpServletResponse object.
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 pages of document.
resizeContentsResizes pages of document.
resizeContentsResizes contents of document pages.
resizeContentsResizes contents of pages of the document.
resizeContentsResizes contents of pages in document.
resizeContentsResizes contents of pages in document.
resizeContentsResizes contents of document pages.
resizeContentsResizes contents of pages in document.
resizeContentsPctResizes contents of document pages.
resizeContentsPctResizes contents of document pages.
resizeContentsWithNormalizationResizes pages of document.
resizeContentsWithNormalizationResizes pages of document.
setAllowConcatenateExceptionsDeprecated. This property is deprecated and can not be used to allow throwing exceptions.
setAttachmentNameSets name of attachment when result of operation is stored into HttpServletResponse objects as attachment.
setCloseConcatenatedStreamsIf set to true, streams are closed after operation.
setConcatenationPacketSizeNumber of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true.
setContentDispositionSets how content will be stored when result of operation is stored into HttpServletResponse object.
setConvertToSets PDF file format.
setCopyLogicalStructureIf true then logical structure of the file is copied when concatenation is performed.
setCopyOutlinesIf true then outlines will be copied.
setCorruptedFileActionThis property defines behavior when concatenating process met corrupted file.
setCustomProgressConcatenationHandlerRepresentation of internal progress events processor that works during concatenation and translates concatenation events of internal concatenation stages into external customer’s code.
setIncrementalUpdatesIf true, incremental updates are made during concatenation.
setKeepActionsIf true actions will be copied from source documents.
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.
setOptimizeSizeGets or sets optimization flag.
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.
setTryMergeAdjacentSameBackgroundImagesSometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other.
setUniqueSuffixSet format of the suffix which is added to field name to make it unique when forms are concatenated.
setUseDiskBufferIf this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates.
splitFromFirstSplits document from start to specified location and stores result into HttpServletResponse object.
splitFromFirstSplits from start to specified location,and saves the front part in output Stream.
splitFromFirstSplits document from first page to location and saves result into HttpServletResponse objects.
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 into HttpServletResponse object.
splitToEndSplits from specified location, and saves the rear part as a new file Stream.
splitToEndSplits from specified location, and saves the rear part into HttpServletResponse object.
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.

PdfFileEditorWeb

public PdfFileEditorWeb()

PdfFileEditorWeb constructor.

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.

addPageBreak

Adds page breaks into document pages.

addPageBreak

Adds page breaks into document pages.

addPageBreak

Adds page breaks into document pages.

addPageBreak

Adds page breaks into document pages.

append

Appends documents to source document and saves result into response object.

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 documents to source document and saves result into HttpServletResponse object.

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 and stores result into HttpServletResponse object.

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 and saves reslt into HttpResposnse object.

concatenate

Concatenates files into one file.

concatenate

Concatenates 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.

createArrayWithExclusion

public static Integer [] createArrayWithExclusion(int n, int y)

delete

Deletes specified pages from document and saves result into HttpServletResponse object.

delete

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

delete

Deletes specified pages from document and stores result into HttpServletResponse object.

delete

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

extract

Extracts specified pages form source file and stores result into HttpServletResponse object.

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 specified pages from source file and stores result into HttpServletResponse object.

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

@Deprecated public boolean getAllowConcatenateExceptions()

Deprecated. This property is deprecated and can not be used to allow throwing exceptions.

Returns: Boolean value

getAttachmentName

public String getAttachmentName()

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

Returns: string value

getCloseConcatenatedStreams

public boolean getCloseConcatenatedStreams()

If set to true, streams are closed after operation.

Returns: boolean value

getConcatenationPacketSize

public final int getConcatenationPacketSize()

Number of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true.

Returns: int value

getContentDisposition

public ContentDisposition getContentDisposition()

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

Returns: ContentDisposition element

getConversionLog

public String getConversionLog()

Gets log of conversion process.

Returns: string value

getCopyLogicalStructure

public boolean getCopyLogicalStructure()

If true then logical structure of the file is copied when concatenation is performed.

Returns: boolean value

getCopyOutlines

public boolean getCopyOutlines()

If true then outlines will be copied.

Returns: boolean value

getCorruptedFileAction

public int getCorruptedFileAction()

This property defines behavior when concatenating process met corrupted file.

Returns: ConcatenateCorruptedFileAction element

getCorruptedItems

public PdfFileEditor.CorruptedItem [] getCorruptedItems()

Array of encountered problems when concatenation was performed.

Returns: PdfFileEditor.CorruptedItem array

getCustomProgressConcatenationHandler

public PdfFileEditor.ConcatenationProgressHandler getCustomProgressConcatenationHandler()

Representation of internal progress events processor that works during concatenation and translates concatenation events of internal concatenation stages into external customer’s code.

Returns: ConcatenationProgressHandler instance

getIncrementalUpdates

public boolean getIncrementalUpdates()

If true, incremental updates are made during concatenation.

Returns: boolean value

getKeepActions

public final boolean getKeepActions()

If true actions will be copied from source documents.

Returns: boolean value

getKeepFieldsUnique

public boolean getKeepFieldsUnique()

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

Returns: boolean value

getLastException

public final RuntimeException getLastException()

Gets last occurred exception.

Returns: java.lang.Exception object

getMergeDuplicateLayers

public 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

public boolean getMergeDuplicateOutlines()

If true, duplicate outlines are merged.

Returns: boolean value

getOptimizeSize

public boolean getOptimizeSize()

Gets or sets optimization flag.

Returns: boolean value

getOwnerPassword

public String getOwnerPassword()

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

Returns: String object

getPreserveUserRights

public boolean getPreserveUserRights()

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

Returns: boolean value

getRemoveSignatures

public boolean getRemoveSignatures()

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

Returns: boolean value

getSaveOptions

public SaveOptions getSaveOptions()

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

Returns: SaveOptions object

getUniqueSuffix

public String getUniqueSuffix()

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

Returns: String object

insert

Inserts document into other document and stores result into response object.

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 contents of file into source file and stores result into HttpServletResponse object.

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.

isTryMergeAdjacentSameBackgroundImages

public boolean isTryMergeAdjacentSameBackgroundImages()

Sometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other.

Returns: boolean value

isUseDiskBuffer

public final boolean isUseDiskBuffer()

If this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates.

Returns: boolean value

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 source file and stores result into HttpServletResponse.

makeBooklet

Make booklet from PDF file and stores it into HttpServletResponse.

makeBooklet

Makes booklet from source file and stores result into HttpServletResponse objects.

makeBooklet

Makes booklet from source file and stores result into HttpServletResponse objects.

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 and stores result into HttpServletResponse.

makeNUp

Makes N-up document and stores result into HttpServletResponse object.

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 and stores result into HttpServletResponse.

makeNUp

Makes N-up document and stores result into HttpServletResponse object.

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 pages of document.

resizeContents

Resizes pages of document.

resizeContents

Resizes contents of document pages.

resizeContents

Resizes contents of pages of the document.

resizeContents

Resizes contents of pages in document.

resizeContents

Resizes contents of pages in document.

resizeContents

Resizes contents of document pages.

resizeContents

Resizes contents of pages in document.

resizeContentsPct

Resizes contents of document pages.

resizeContentsPct

Resizes contents of document pages.

resizeContentsWithNormalization

Resizes pages of document.

resizeContentsWithNormalization

Resizes pages of document.

setAllowConcatenateExceptions

@Deprecated public void setAllowConcatenateExceptions(boolean value)

Deprecated. This property is deprecated and can not be used to allow throwing exceptions.

Parameters:

ParameterTypeDescription
valueBoolean value

setAttachmentName

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

setCloseConcatenatedStreams

public void setCloseConcatenatedStreams(boolean value)

If set to true, streams are closed after operation.

Parameters:

ParameterTypeDescription
valueboolean value

setConcatenationPacketSize

public final void setConcatenationPacketSize(int value)

Number of documents concatenated before new incremental update was made during concatenation when UseDiskBuffer is set to true.

Parameters:

ParameterTypeDescription
valueint value

setContentDisposition

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

setConvertTo

Sets PDF file format.

setCopyLogicalStructure

public void setCopyLogicalStructure(boolean value)

If true then logical structure of the file is copied when concatenation is performed.

Parameters:

ParameterTypeDescription
valueboolean value

setCopyOutlines

public void setCopyOutlines(boolean value)

If true then outlines will be copied.

Parameters:

ParameterTypeDescription
valueboolean value

setCorruptedFileAction

public void setCorruptedFileAction(int value)

This property defines behavior when concatenating process met corrupted file.

Parameters:

ParameterTypeDescription
valueConcatenateCorruptedFileAction element

setCustomProgressConcatenationHandler

Representation of internal progress events processor that works during concatenation and translates concatenation events of internal concatenation stages into external customer’s code.

setIncrementalUpdates

public void setIncrementalUpdates(boolean value)

If true, incremental updates are made during concatenation.

Parameters:

ParameterTypeDescription
valueboolean value

setKeepActions

public final void setKeepActions(boolean value)

If true actions will be copied from source documents.

Parameters:

ParameterTypeDescription
valueboolean value

setKeepFieldsUnique

public void setKeepFieldsUnique(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean value

setMergeDuplicateLayers

public 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

public void setMergeDuplicateOutlines(boolean value)

If true, duplicate outlines are merged.

Parameters:

ParameterTypeDescription
valueboolean value

setOptimizeSize

public void setOptimizeSize(boolean value)

Gets or sets optimization flag.

Parameters:

ParameterTypeDescription
valueboolean value

setOwnerPassword

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

setPreserveUserRights

public void setPreserveUserRights(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean value

setRemoveSignatures

public 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.

setTryMergeAdjacentSameBackgroundImages

public void setTryMergeAdjacentSameBackgroundImages(boolean tryMergeAdjacentSameBackgroundImages)

Sometimes PDFs contain background images (of pages or table cells) constructed from several same tiling background images put one near other.

Parameters:

ParameterTypeDescription
tryMergeAdjacentSameBackgroundImagesboolean value

setUniqueSuffix

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

setUseDiskBuffer

public final void setUseDiskBuffer(boolean value)

If this option used then destination document will be saved on disk periodically and further concatenation will appllied to it as incremental updates.

Parameters:

ParameterTypeDescription
valueboolean value

splitFromFirst

Splits document from start to specified location and stores result into HttpServletResponse object.

splitFromFirst

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

splitFromFirst

Splits document from first page to location and saves result into HttpServletResponse objects.

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 into HttpServletResponse object.

splitToEnd

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

splitToEnd

Splits from specified location, and saves the rear part into HttpServletResponse object.

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.