pdfdocumentbase-ag凯发旗舰厅



com.spire.pdf
class pdfdocumentbase

java.lang.object
  extended by com.spire.pdf.pdfdocumentbase
direct known subclasses:
pdfdocumentwidget, pdfnewdocument

public abstract class pdfdocumentbase
extends java.lang.object

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.
abstract   getcolorspace()
          get 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.
  getjavascripts()
          gets the additional document's actions.
abstract  pdfpagenumber getpagelabel()
          gets page labels of one of the sections.
 pdfpagecollection getpages()
          gets the pages.
 pdfpagesettings getpagesettings()
          gets the setting of page.
 pdfsecurity getsecurity()
          gets the security parameters of the document.
 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, pdfpagebase page)
          imports a page.
 pdfpagebase importpagerange(pdfdocumentbase lddoc, int startindex, int endindex)
          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.lang.string filename)
          saves the document to the specified filename.
 void save(java.lang.string filename, fileformat fileformat)
           
 void savetoxps(java.lang.string savefilename)
           
abstract  void setcolorspace( value)
           
 void setcompressionlevel(pdfcompressionlevel value)
          desired level of the new stream compression
abstract  void setconformance(pdfconformancelevel value)
          set the pdf document's conformance-level
 void setfilestructure(pdffileinfo value)
          sets the internal structure of the pdf file.
abstract  void setpagelabel(pdfpagenumber value)
          sets page labels of one of the sections.
 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

pdfdocumentbase

public pdfdocumentbase()
method detail

getconformance

public abstract pdfconformancelevel getconformance()
gets the pdf document's conformance-level

setconformance

public abstract void setconformance(pdfconformancelevel value)
set the pdf document's conformance-level

getattachments

public abstract pdfattachmentcollection getattachments()
get the attachments

getcolorspace

public abstract  getcolorspace()
get the color space

setcolorspace

public abstract void setcolorspace( value)

_getform

public abstract pdfform _getform()
gets the proper pdfform instance.

getpagelabel

public abstract pdfpagenumber getpagelabel()
gets page labels of one of the sections.

setpagelabel

public abstract void setpagelabel(pdfpagenumber value)
sets page labels of one of the sections.

getusedfonts

public pdfusedfont[] getusedfonts()
gets the m_fonts which are available in the pdf document.

getpagesettings

public pdfpagesettings getpagesettings()
gets the setting of page.

setpagesettings

public void setpagesettings(pdfpagesettings value)
sets the setting of page.

gettemplate

public pdfdocumenttemplate gettemplate()
gets a template that is applied to all pages in the document.

settemplate

public void settemplate(pdfdocumenttemplate value)
sets a template that is applied to all pages in the document.

getpages

public pdfpagecollection getpages()
gets the pages.

getsecurity

public pdfsecurity getsecurity()
gets the security parameters of the document.

getdocumentinformation

public pdfdocumentinformation getdocumentinformation()
gets document's information and properties.

getviewerpreferences

public pdfviewerpreferences getviewerpreferences()
gets a viewer preferences object controlling the way the document is to be presented on the screen or in print.

setviewerpreferences

public void setviewerpreferences(pdfviewerpreferences value)
sets a viewer preferences object controlling the way the document is to be presented on the screen or in print.

getcompressionlevel

public pdfcompressionlevel getcompressionlevel()
gets the desired level of stream compression.
see also:
all new objects should be compressed with this level of the compression.

setcompressionlevel

public void setcompressionlevel(pdfcompressionlevel value)
desired level of the new stream compression
parameters:
value -

getfilestructure

public pdffileinfo getfilestructure()
gets the internal structure of the pdf file.

setfilestructure

public void setfilestructure(pdffileinfo value)
sets the internal structure of the pdf file.

getjavascripts

public  getjavascripts()
gets the additional document's actions.

getbookmarks

public abstract pdfbookmarkcollection getbookmarks()
gets the bookmarks.

split

public 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.
parameters:
destfilepattern - template for destination file names. each destination file will have 'destfilename{0***}' name, where *** is an optional format string for the number of the page inside of the source document.

split

public 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. template for destination file names. the number that is use as a start point for the page numbering. each destination file will have 'destfilename{0***}' name, where *** is an optional format string for the number of the page inside of the source document.

merge

public static pdfdocumentbase merge(pdfdocumentbase dest,
                                    java.lang.object... sourcedocuments)
merges the specified source documents and return destination document. the destination document, where the other documents are merged into. if it's null a new document object will be created.
parameters:
sourcedocuments - the source documents.
returns:
the document containing merged documents.

save

public void save(java.lang.string filename,
                 fileformat fileformat)

savetoxps

public void savetoxps(java.lang.string savefilename)

save

public void save(java.lang.string filename)
saves the document to the specified filename.
parameters:
filename - the filename.

close

public void close()
closes the document. releases all common resources.

importpage

public pdfpagebase importpage(pdfdocumentbase lddoc,
                              pdfpagebase page)
imports a page.
parameters:
lddoc - the loaded document.
page - the page.
returns:
the page in the target document.

importpage

public pdfpagebase importpage(pdfdocumentbase lddoc,
                              int pageindex)
imports a page.
parameters:
lddoc - the loaded document.
pageindex - index of the page.
returns:
the page in the target document.

importpagerange

public pdfpagebase importpagerange(pdfdocumentbase lddoc,
                                   int startindex,
                                   int endindex)
imports a page range from a loaded document.
parameters:
lddoc - the loaded document.
startindex - the start page index.
endindex - the end page index.
returns:
the last created page in the target document.

dispose

public void dispose()
dispose all pending objects.


网站地图