|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.PdfDocumentBase
public abstract class PdfDocumentBase
Represent common PdfDocumentBase classes.
| Constructor Summary | |
|---|---|
PdfDocumentBase()
|
|
| Method Summary | |
|---|---|
abstract PdfForm |
_getForm()
Gets the proper PdfForm instance. |
void |
close()
Closes the document. |
void |
dispose()
Dispose all pending objects. |
abstract PdfAttachmentCollection |
getAttachments()
Get the attachments |
abstract PdfBookmarkCollection |
getBookmarks()
Gets the bookmarks. |
PdfColorSpace |
getColorSpace()
Gets the color space. |
PdfCompressionLevel |
getCompressionLevel()
Gets the desired level of stream compression. |
abstract PdfConformanceLevel |
getConformance()
Gets the Pdf document's Conformance-level |
PdfDocumentInformation |
getDocumentInformation()
Gets document's information and properties. |
PdfFileInfo |
getFileStructure()
Gets the internal structure of the PDF file. |
PdfDocumentActions |
getJavaScripts()
Gets the additional document's actions. |
PdfPageLabels |
getPageLabels()
Get page labels. |
PdfPageCollection |
getPages()
Gets the pages. |
PdfPageSettings |
getPageSettings()
Gets the setting of page. |
PdfSecurity |
getSecurity()
Deprecated. |
PdfDocumentTemplate |
getTemplate()
Gets a template that is applied to all pages in the document. |
PdfUsedFont[] |
getUsedFonts()
Gets the m_fonts which are available in the PDF document. |
PdfViewerPreferences |
getViewerPreferences()
Gets a viewer preferences object controlling the way the document is to be presented on the screen or in print. |
PdfPageBase |
importPage(PdfDocumentBase ldDoc,
int pageIndex)
Imports a page. |
PdfPageBase |
importPage(PdfDocumentBase ldDoc,
int pageIndex,
int resultPageIndex)
Imports a page. |
PdfPageBase |
importPage(PdfDocumentBase ldDoc,
PdfPageBase page)
Imports a page. |
PdfPageBase |
importPageRange(PdfDocumentBase ldDoc,
int startIndex,
int endIndex)
Imports a page range from a loaded document. |
PdfPageBase |
importPageRange(PdfDocumentBase ldDoc,
int startIndex,
int endIndex,
int resultPageIndex)
Imports a page range from a loaded document. |
static PdfDocumentBase |
merge(PdfDocumentBase dest,
java.lang.Object... sourceDocuments)
Merges the specified source documents and return destination document. |
void |
save(java.io.OutputStream stream)
Saves the document to the specified stream. |
void |
save(java.lang.String filename)
Saves the document to the specified filename. |
void |
save(java.lang.String fileName,
FileFormat fileformat)
|
void |
saveToXPS(java.lang.String filename)
Save the document to xps. |
void |
setColorSpace(PdfColorSpace value)
Sets the color space for page that will be created. |
void |
setCompressionLevel(PdfCompressionLevel value)
Desired level of the new stream compression |
abstract void |
setConformance(PdfConformanceLevel value)
Deprecated. |
void |
setFileStructure(PdfFileInfo value)
Sets the internal structure of the PDF file. |
void |
setPageLabels(PdfPageLabels value)
Set page labels. |
void |
setPageSettings(PdfPageSettings value)
Sets the setting of page. |
void |
setTemplate(PdfDocumentTemplate value)
Sets a template that is applied to all pages in the document. |
void |
setViewerPreferences(PdfViewerPreferences value)
Sets a viewer preferences object controlling the way the document is to be presented on the screen or in print. |
void |
split(java.lang.String destFilePattern)
Splits a PDF file to many PDF files, each of them consists of one page from the source file. |
void |
split(java.lang.String destFilePattern,
int startNumber)
Splits a PDF file to many PDF files, each of them consists of one page from the source file. |
| Constructor Detail |
|---|
public PdfDocumentBase()
| Method Detail |
|---|
public abstract PdfConformanceLevel getConformance()
@Deprecated public abstract void setConformance(PdfConformanceLevel value)
public abstract PdfAttachmentCollection getAttachments()
public PdfColorSpace getColorSpace()
public void setColorSpace(PdfColorSpace value)
value - The color space.public abstract PdfForm _getForm()
public PdfPageLabels getPageLabels()
public void setPageLabels(PdfPageLabels value)
public PdfUsedFont[] getUsedFonts()
public PdfPageSettings getPageSettings()
public void setPageSettings(PdfPageSettings value)
public PdfDocumentTemplate getTemplate()
public void setTemplate(PdfDocumentTemplate value)
public PdfPageCollection getPages()
@Deprecated public PdfSecurity getSecurity()
public PdfDocumentInformation getDocumentInformation()
/*virtual
public PdfViewerPreferences getViewerPreferences()
public void setViewerPreferences(PdfViewerPreferences value)
public PdfCompressionLevel getCompressionLevel()
All new objects should be compressed with this level of the compression.public void setCompressionLevel(PdfCompressionLevel value)
value - public PdfFileInfo getFileStructure()
public void setFileStructure(PdfFileInfo value)
public PdfDocumentActions getJavaScripts()
public abstract PdfBookmarkCollection getBookmarks()
public void split(java.lang.String destFilePattern)
destFilePattern - Template for destination file names.
public void split(java.lang.String destFilePattern,
int startNumber)
public static PdfDocumentBase merge(PdfDocumentBase dest,
java.lang.Object... sourceDocuments)
sourceDocuments - The source documents.
public void save(java.lang.String fileName,
FileFormat fileformat)
public void save(java.lang.String filename)
filename - The filename.public void save(java.io.OutputStream stream)
stream - The stream object where PDF document will be saved.public void saveToXPS(java.lang.String filename)
filename - A relative or absolute path for the xps file.public void close()
public PdfPageBase importPage(PdfDocumentBase ldDoc,
PdfPageBase page)
ldDoc - The loaded document.page - The page.
public PdfPageBase importPage(PdfDocumentBase ldDoc,
int pageIndex)
ldDoc - The loaded document.pageIndex - Index of the page.
public PdfPageBase importPage(PdfDocumentBase ldDoc,
int pageIndex,
int resultPageIndex)
ldDoc - The loaded document.pageIndex - Index of the page.resultPageIndex - The page index in the result document.
public PdfPageBase importPageRange(PdfDocumentBase ldDoc,
int startIndex,
int endIndex)
ldDoc - The loaded document.startIndex - The start page index.endIndex - The end page index.
public PdfPageBase importPageRange(PdfDocumentBase ldDoc,
int startIndex,
int endIndex,
int resultPageIndex)
ldDoc - The loaded document.startIndex - The start page index.endIndex - The end page index.resultPageIndex - The page index in the result document when startIndex == endIndex.
public void dispose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||