IPdfFileEditor
public interface IPdfFileEditor
Implements operations with PDF file: concatenation, splitting, extracting pages, making booklet, etc.
Methods
| Method | Description |
|---|---|
| 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 | is Allow Concatenate Exceptions |
| getAttachmentName | Gets name of attachment when result of operation is stored into HttpServletResponse objects as attachment. |
| getCloseConcatenatedStreams | If set to true, streams are closed after operation. |
| getContentDisposition | Gets how content will be stored when result of operation is stored into HttpServletResponse object. |
| getConversionLog | Gets log of conversion process. |
| getCorruptedFileAction | This property defines behavior when concatenating process met corrupted file. |
| getIncrementalUpdates | If true, incremental updates are made during concatenation. |
| getKeepFieldsUnique | If true then field names will be made unique when forms are concatenated. |
| getLastException | Gets last occured exception. |
| getMergeDuplicateLayers | Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true. |
| getMergeDuplicateOutlines | If true, duplicate outlines are merged. |
| getOwnerPassword | Gets owner’s password if the source input Pdf file is encrypted. |
| getPreserveUserRights | If true, user rights of first document are applied to concatenated document. |
| getRemoveSignatures | If true, all signatures will be removed from fields (fields will remain); otherwise, you can get invalid signatures. |
| getSaveOptions | Gets or sets save options when result is stored as HttpServletResponse. |
| getUniqueSuffix | Get format of the suffix which is added to field name to make it unique when forms are concatenated. |
| 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 | If set to true, exceptions are thrown if error occured. |
| setAttachmentName | Sets name of attachment when result of operation is stored into HttpServletResponse objects as attachment. |
| setCloseConcatenatedStreams | If set to true, streams are closed after operation. |
| setContentDisposition | Sets how content will be stored when result of operation is stored into HttpServletResponse object. |
| setConvertTo | Sets PDF file format. |
| setCorruptedFileAction | This property defines behavior when concatenating process met corrupted file. |
| setIncrementalUpdates | If true, incremental updates are made during concatenation. |
| setKeepFieldsUnique | If true then field names will be made unique when forms are concatenated. |
| setMergeDuplicateLayers | Optional contents of concatentated documents with equal names will be merged into one layer in resulstant document if this property is true. |
| setMergeDuplicateOutlines | If true, duplicate outlines are merged. |
| setOwnerPassword | Sets owner’s password if the source input Pdf file is encrypted. |
| setPreserveUserRights | If true, user rights of first document are applied to concatenated document. |
| setRemoveSignatures | If true, all signatures will be removed from fields (fields will remain); otherwise, you can get invalid signatures. |
| 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. |
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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean 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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean 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:
| Parameter | Type | Description |
|---|---|---|
| value | ConcatenateCorruptedFileAction element |
setIncrementalUpdates
void setIncrementalUpdates(boolean value)
If true, incremental updates are made during concatenation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setKeepFieldsUnique
void setKeepFieldsUnique(boolean value)
If true then field names will be made unique when forms are concatenated.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean 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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setMergeDuplicateOutlines
void setMergeDuplicateOutlines(boolean value)
If true, duplicate outlines are merged.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean 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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean 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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean 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.