|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.Document com.cete.dynamicpdf.merger.MergeDocument
public class MergeDocument
This is the primary class used to merge or append entire PDF documents or certain pages from existing documents. The merge document can be output to any object derived from the java.io.* class that supports writing and can easily be integrated with SERVLETS/JSP to stream the document to Internet Information Server's HTTP output stream.
Licensing:
This class is a DynamicPDF Merger Standard Edition feature.
One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
MergeDocument()
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(PdfDocument pdfDocument)
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(PdfDocument pdfDocument,
int startPage,
int pageCount)
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(PdfDocument pdfDocument,
int startPage,
int pageCount,
MergeOptions options)
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(PdfDocument pdfDocument,
MergeOptions options)
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(java.lang.String filePath)
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(java.lang.String filePath,
int startPage,
int pageCount)
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(java.lang.String filePath,
int startPage,
int pageCount,
MergeOptions options)
Initializes a new instance of the MergeDocument class. |
|
MergeDocument(java.lang.String filePath,
MergeOptions options)
Initializes a new instance of the MergeDocument class. |
Method Summary | |
---|---|
AppendedPage[] |
append(PdfDocument pdfDocument)
Appends a PDF document to the current document. |
AppendedPage[] |
append(PdfDocument pdfDocument,
int startPage,
int pageCount)
Appends a PDF document to the current document. |
AppendedPage[] |
append(PdfDocument pdfDocument,
int startPage,
int pageCount,
MergeOptions options)
Appends a PDF document to the current document. |
AppendedPage[] |
append(PdfDocument pdfDocument,
MergeOptions options)
Appends a PDF document to the current document. |
AppendedPage[] |
append(java.lang.String filePath)
Appends a PDF document to the current document. |
AppendedPage[] |
append(java.lang.String filePath,
int startPage,
int pageCount)
Appends a PDF document to the current document. |
AppendedPage[] |
append(java.lang.String filePath,
int startPage,
int pageCount,
MergeOptions options)
Appends a PDF document to the current document. |
AppendedPage[] |
append(java.lang.String filePath,
MergeOptions options)
Appends a PDF document to the current document. |
protected void |
drawRootEntries(DocumentWriter writer)
Outputs the catalog entries to the |
int |
getInitialPage()
Gets a value indicating the initial page of the Document. |
PageZoom |
getInitialPageZoom()
Gets or sets a value indicating the initial zoom of the Document. |
XmpMetadata |
getXmpMetadata()
Gets the Xmp metadata for the PDF document. |
static MergeDocument |
merge(PdfDocument firstDocument,
MergeOptions firstDocumentOptions,
PdfDocument secondDocument,
MergeOptions secondDocumentOptions)
Merges two PDF documents together. |
static MergeDocument |
merge(PdfDocument firstDocument,
PdfDocument secondDocument)
Merges two PDF documents together. |
static MergeDocument |
merge(java.lang.String firstDocumentFilePath,
MergeOptions firstDocumentOptions,
java.lang.String secondDocumentFilePath,
MergeOptions secondDocumentOptions)
Merges two PDF documents together. |
static MergeDocument |
merge(java.lang.String firstDocumentFilePath,
java.lang.String secondDocumentFilePath)
Merges two PDF documents together. |
void |
setInitialPage(int value)
Sets a value indicating the initial page of the Document. |
void |
setInitialPageZoom(PageZoom value)
Sets a value indicating the initial zoom of the Document. |
void |
setXmpMetadata(XmpMetadata value)
Sets the Xmp metadata for the PDF document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MergeDocument()
MergeDocument
class.
public MergeDocument(java.lang.String filePath)
MergeDocument
class.
filePath
- The physical file path of the PDF to import.public MergeDocument(PdfDocument pdfDocument)
MergeDocument
class.
pdfDocument
- The PdfDocument
to import.PdfDocument
public MergeDocument(java.lang.String filePath, MergeOptions options)
MergeDocument
class.
filePath
- The physical file path of the PDF to import.options
- A MergeOptions
object specifying
the merge options.MergeOptions
public MergeDocument(PdfDocument pdfDocument, MergeOptions options)
MergeDocument
class.
pdfDocument
- The PdfDocument
to import.options
- A MergeOptions
object specifying the
merge options.PdfDocument
,
MergeOptions
public MergeDocument(java.lang.String filePath, int startPage, int pageCount)
MergeDocument
class.
filePath
- The physical file path of the PDF to import.startPage
- The page to start importing from.pageCount
- The number of pages to import.public MergeDocument(PdfDocument pdfDocument, int startPage, int pageCount)
MergeDocument
class.
pdfDocument
- The PdfDocument
to import.startPage
- The page to start importing from.pageCount
- The number of pages to import.PdfDocument
public MergeDocument(java.lang.String filePath, int startPage, int pageCount, MergeOptions options)
MergeDocument
class.
filePath
- The physical file path of the PDF to import.startPage
- The page to start importing from.pageCount
- The number of pages to import.options
- A MergeOptions
object specifying the
merge options.MergeOptions
public MergeDocument(PdfDocument pdfDocument, int startPage, int pageCount, MergeOptions options)
MergeDocument
class.
pdfDocument
- The PdfDocument
to import.startPage
- The page to start importing from.pageCount
- The number of pages to import.options
- A MergeOptions
object specifying the
merge options.PdfDocument
,
MergeOptions
Method Detail |
---|
public AppendedPage[] append(java.lang.String filePath)
filePath
- The physical file path of the PDF to import.
com.cete.dynamicpdf.Page
s that were
appended to the document.ImportedPage
public AppendedPage[] append(PdfDocument pdfDocument)
pdfDocument
- The PdfDocument
to import.
com.cete.dynamicpdf.Page
s that were
appended to the document.PdfDocument
,
ImportedPage
public AppendedPage[] append(java.lang.String filePath, MergeOptions options)
filePath
- The physical file path of the PDF to import.options
- A MergeOptions
object specifying the
merge options.
com.cete.dynamicpdf.Page
s that were
appended to the document.MergeOptions
,
ImportedPage
public AppendedPage[] append(PdfDocument pdfDocument, MergeOptions options)
pdfDocument
- The PdfDocument
to import.options
- A MergeOptions
object specifying the
merge options.
com.cete.dynamicpdf.Page
s that were
appended to the document.PdfDocument
,
MergeOptions
,
ImportedPage
public AppendedPage[] append(java.lang.String filePath, int startPage, int pageCount)
filePath
- The physical file path of the PDF to import.startPage
- The page to start importing from.pageCount
- The number of pages to import.
com.cete.dynamicpdf.Page
s that were
appended to the document.ImportedPage
public AppendedPage[] append(PdfDocument pdfDocument, int startPage, int pageCount)
pdfDocument
- The PdfDocument
to import.startPage
- The page to start appending from.pageCount
- The number of pages to append.
com.cete.dynamicpdf.Page
s that were
appended to the document.PdfDocument
,
ImportedPage
public AppendedPage[] append(java.lang.String filePath, int startPage, int pageCount, MergeOptions options)
filePath
- The physical file path of the PDF to import.startPage
- The page to start importing from.pageCount
- The number of pages to import.options
- A MergeOptions
object specifying the
merge options.
com.cete.dynamicpdf.Page
s that were
appended to the document.MergeOptions
,
ImportedPage
public AppendedPage[] append(PdfDocument pdfDocument, int startPage, int pageCount, MergeOptions options)
pdfDocument
- The PdfDocument
to import.startPage
- The page to start appending from.pageCount
- The number of pages to append.options
- Specifies the merge options.
com.cete.dynamicpdf.merger.ImportedPage
s
that were appended to the document.PdfDocument
,
MergeOptions
,
ImportedPage
public static MergeDocument merge(java.lang.String firstDocumentFilePath, java.lang.String secondDocumentFilePath)
firstDocumentFilePath
- The physical file path to the first
PDF document.secondDocumentFilePath
- The physical file path to the second
PDF document.
MergeDocument
containing the pages from both
PDF documents.public static MergeDocument merge(PdfDocument firstDocument, PdfDocument secondDocument)
firstDocument
- A PdfDocument
class representing the
first PDF document.secondDocument
- A PdfDocument
class representing the
second PDF document.
MergeDocument
containing the pages from
both PDF documents.PdfDocument
public static MergeDocument merge(java.lang.String firstDocumentFilePath, MergeOptions firstDocumentOptions, java.lang.String secondDocumentFilePath, MergeOptions secondDocumentOptions)
firstDocumentFilePath
- The physical file path to the first
PDF document.firstDocumentOptions
- A MergeOptions
object specifying
the merge options for the first PDF document.secondDocumentFilePath
- The physical file path to the second
PDF document.secondDocumentOptions
- A MergeOptions
object specifying
the merge options for the second PDF document.
MergeDocument
containing the pages from both
PDF documents.MergeOptions
public static MergeDocument merge(PdfDocument firstDocument, MergeOptions firstDocumentOptions, PdfDocument secondDocument, MergeOptions secondDocumentOptions)
firstDocument
- A PdfDocument
class representing the
first PDF document.firstDocumentOptions
- A MergeOptions
object specifying
the merge options for the first PDF document.secondDocument
- A PdfDocument
class representing the
second PDF document.secondDocumentOptions
- A MergeOptions
object specifying
the merge options for the second PDF document.
MergeDocument
containing the pages from both
PDF documents.PdfDocument
,
MergeOptions
public int getInitialPage()
getInitialPage
in class Document
public void setInitialPage(int value)
setInitialPage
in class Document
value
- the initial page of the Document.public PageZoom getInitialPageZoom()
getInitialPageZoom
in class Document
PageZoom
public void setInitialPageZoom(PageZoom value)
setInitialPageZoom
in class Document
value
- the initial zoom of the Document.PageZoom
public XmpMetadata getXmpMetadata()
Licensing:
This class is a DynamicPDF Merger Enterprise Edition
feature. One of the following licenses is required for non-evaluation usage:
getXmpMetadata
in class Document
public void setXmpMetadata(XmpMetadata value)
Licensing:
This class is a DynamicPDF Merger Enterprise Edition
feature. One of the following licenses is required for non-evaluation usage:
setXmpMetadata
in class Document
value
- protected void drawRootEntries(DocumentWriter writer)
drawRootEntries
in class Document
writer
- DocumentWriter
object to write the catalog entries.DocumentWriter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |