presentation-ag凯发旗舰厅



com.spire.presentation
class presentation

java.lang.object
  extended by com.spire.presentation.pptobject
      extended by com.spire.presentation._presentation
          extended by com.spire.presentation.presentation

public final class presentation
extends _presentation

represents an presentation document.


constructor summary
presentation()
           
presentation(java.io.inputstream stream, fileformat fileformat)
           
presentation( pptx)
           
presentation(com.spire.ms.system.io.stream stream, fileformat fileformat)
          constructor
presentation(java.lang.string file, fileformat fileformat)
          constructor
 
method summary
 void deletemacros()
          delete the macros
 void encrypt(java.lang.string password)
          encrypts with specified password.
 islide findslide(int id)
          find a slide by id.
 boolean getautocompresspictures()
          indicates that compress pictures feature automatically reduces the file size of pictures.
 int getbookmarkidseed()
          bookmark id seed.
 byte[] getbytes()
          converts the document to an array of bytes.
 commentauthorcollection getcommentauthors()
          gets commentauthor list.
 boolean getdatetimevisible()
          gets value .specifies whether date-time placeholder is enabled for this master
 textstyle getdefaulttextstyle()
          default paragraph and list style.
 idocumentproperty getdocumentproperty()
          gets standard and custom document properties.
 boolean getembedtruetypefonts()
          indicates whther embeds truetype fonts in a document when it's saved.
 int getfirstslidenumber()
          slide number that appears on the first slide in your presentation.
 boolean getfootervisible()
          gets value .specifies whether the footer placeholder is enabled for this master
 formatandversion getformatandversion()
          gets the the format and version of file.
 inotemasterslide gethandoutmaster()
          gets a master for all notes slides of this presentation.
 imagecollection getimages()
          gets the collection of all images.
 masterslidecollection getmasters()
          gets a list of all master slides.
 inotemasterslide getnotesmaster()
          gets a master for all notes slides of this presentation.
 java.awt.geom.dimension2d getnotesslidesize()
          gets note slide size object.
 order getorderforprint()
          the order of print.
 boolean getsavesubsetfonts()
          indicates whther embeds subset truetype fonts in a document when it's saved.
 savetohtmloption getsavetohtmloption()
           
 savetopdfoption getsavetopdfoption()
           
 sectionlist getsectionlist()
           
 float getserverzoom()
          specifies a zoom level for visual representations of the document.
 boolean getshowanimation()
          specifies whether slide show animation should be shown when presenting
 boolean getshowloop()
          specifies whether the slide show should be set to loop at the end
 boolean getshownarration()
          specifies whether slide show narration should be played when presenting
 slideshowtype getshowtype()
          specifies the slide show type
 pageslidecount getslidecountperpageforprint()
          number of total slides per page.
 boolean getslidenumbervisible()
          gets value .specifies whether the slide number placeholder is enabled for this master
 slidecollection getslides()
          gets a list of all slides.
 slidesize getslidesize()
          get slide size.
 boolean getstrictfirstandlastcharacters()
           
 tagcollection gettagslist()
          gets the tags collection.
 boolean getusetimings()
          specifies whether slide transition timing should be used to advance slides when presenting
 wavaudiocollection getwavaudios()
          gets the collection of all embedded audio.
 boolean hasmacros()
          specifies whether contains vba macros.
 boolean isgraylevelforprint()
          whether to set gray level for printing
 boolean isslideframeforprint()
          whether to set slideframe for printing.
 void loadfromfile(java.lang.string file)
          opens the document from a file.
 void loadfromfile(java.lang.string file, fileformat fileformat)
           
 void loadfromfile(java.lang.string file, fileformat fileformat, java.lang.string password)
           
 void loadfromfile(java.lang.string file, java.lang.string password)
          opens the document from a file.
 void loadfromstream(java.io.inputstream stream, fileformat fileformat)
          opens the document from a stream.
 void print(presentationprintdocument presentationprintdocument)
           
 void print(com.spire.ms.printing.printersettings printersettings)
          prints the presentation according to the specified printer settings.
 void print(java.lang.string name)
          print the whole presentation to the specified printer.
 void protect(java.lang.string password)
          protection for this presentation.
 void removeencryption()
          removes the encryption.
 void removeprotect()
          remove proection.
 void savetofile(java.io.outputstream stream, fileformat fileformat)
           
 void savetofile(java.lang.string file, fileformat fileformat)
          saves the document to the specified file.
 java.util.list savetosvg()
           
 void selectslidesforprint(java.lang.string... selectslidesforprint)
          select print slides
 void setautocompresspictures(boolean value)
           
 void setbookmarkidseed(int value)
           
 void setdatetime(java.util.date datetime)
           
 void setdatetime(java.util.date datetime, java.lang.string format)
           
 void setdatetimevisible(boolean value)
          sets value .specifies whether date-time placeholder is enabled for this master
 void setembedtruetypefonts(boolean value)
           
 void setfirstslidenumber(int value)
           
 void setfootertext(java.lang.string text)
           
 void setfootervisible(boolean value)
          sets value .specifies whether the footer placeholder is enabled for this master
 void setgraylevelforprint(boolean graylevelforprint)
           
 void setnoteretained(boolean isnoteretained)
          indicates whether the note is retained in converting to svg.
 void setorderforprint(order orderforprint)
           
 void setpagesize(float w, float h, boolean isratio)
          set page size.
 void setsavesubsetfonts(boolean value)
           
 void setserverzoom(float value)
           
 void setshowanimation(boolean value)
           
 void setshowloop(boolean value)
           
 void setshownarration(boolean value)
           
 void setshowtype(slideshowtype value)
           
 void setslidecountperpageforprint(pageslidecount slidecountperpageforprint)
           
 void setslideframeforprint(boolean slideframeforprint)
           
 void setslidenovisible(boolean visible)
           
 void setslidenumbervisible(boolean value)
          sets value .specifies whether the slide number placeholder is enabled for this master
 void setstrictfirstandlastcharacters(boolean value)
           
 void setusetimings(boolean value)
           
 
methods inherited from class com.spire.presentation.pptobject
checkdisposed, getparent
 
constructor detail

presentation

public presentation()

presentation

public presentation( pptx)

presentation

public presentation(com.spire.ms.system.io.stream stream,
                    fileformat fileformat)
constructor
parameters:
stream - file stream
fileformat - file format
throws:
java.lang.exception

presentation

public presentation(java.io.inputstream stream,
                    fileformat fileformat)

presentation

public presentation(java.lang.string file,
                    fileformat fileformat)
constructor
parameters:
file -
fileformat -
throws:
java.lang.exception
method detail

getsavetopdfoption

public savetopdfoption getsavetopdfoption()

getsavetohtmloption

public savetohtmloption getsavetohtmloption()

findslide

public islide findslide(int id)
find a slide by id.
parameters:
id -
returns:

getbytes

public byte[] getbytes()
converts the document to an array of bytes.
specified by:
getbytes in class _presentation
returns:
an array of bytes.
throws:
java.lang.exception

loadfromstream

public void loadfromstream(java.io.inputstream stream,
                           fileformat fileformat)
opens the document from a stream.
parameters:
stream - the document stream.
fileformat -
throws:
java.lang.exception

loadfromfile

public void loadfromfile(java.lang.string file)
opens the document from a file.
specified by:
loadfromfile in class _presentation
parameters:
file - the document file path.
throws:
java.lang.exception

loadfromfile

public void loadfromfile(java.lang.string file,
                         java.lang.string password)
opens the document from a file.
specified by:
loadfromfile in class _presentation
parameters:
file - the document file path.
password -
throws:
java.lang.exception

loadfromfile

public void loadfromfile(java.lang.string file,
                         fileformat fileformat)
specified by:
loadfromfile in class _presentation

loadfromfile

public void loadfromfile(java.lang.string file,
                         fileformat fileformat,
                         java.lang.string password)
specified by:
loadfromfile in class _presentation

savetofile

public void savetofile(java.io.outputstream stream,
                       fileformat fileformat)
specified by:
savetofile in class _presentation

savetosvg

public java.util.list savetosvg()

savetofile

public void savetofile(java.lang.string file,
                       fileformat fileformat)
saves the document to the specified file.
specified by:
savetofile in class _presentation
parameters:
file - a string that contains the path of the file to which to save this document.
fileformat -
throws:
java.lang.exception

encrypt

public void encrypt(java.lang.string password)
encrypts with specified password.
parameters:
password - the password.

removeencryption

public void removeencryption()
removes the encryption.

protect

public void protect(java.lang.string password)
protection for this presentation.
parameters:
password - the password.

removeprotect

public void removeprotect()
remove proection.

print

public void print(presentationprintdocument presentationprintdocument)

print

public void print(com.spire.ms.printing.printersettings printersettings)
prints the presentation according to the specified printer settings.
parameters:
printersettings - printer settings to use.

print

public void print(java.lang.string name)
print the whole presentation to the specified printer.
parameters:
name - the name of the printer.

setfootertext

public void setfootertext(java.lang.string text)
                   throws documenteditexception
throws:
documenteditexception

setdatetime

public void setdatetime(java.util.date datetime)
                 throws documenteditexception
throws:
documenteditexception

setdatetime

public void setdatetime(java.util.date datetime,
                        java.lang.string format)
                 throws documenteditexception
throws:
documenteditexception

getfootervisible

public boolean getfootervisible()
gets value .specifies whether the footer placeholder is enabled for this master
returns:

setfootervisible

public void setfootervisible(boolean value)
sets value .specifies whether the footer placeholder is enabled for this master

getdatetimevisible

public boolean getdatetimevisible()
gets value .specifies whether date-time placeholder is enabled for this master
returns:

setdatetimevisible

public void setdatetimevisible(boolean value)
sets value .specifies whether date-time placeholder is enabled for this master

getslidenumbervisible

public boolean getslidenumbervisible()
gets value .specifies whether the slide number placeholder is enabled for this master
returns:

setslidenumbervisible

public void setslidenumbervisible(boolean value)
sets value .specifies whether the slide number placeholder is enabled for this master

getautocompresspictures

public boolean getautocompresspictures()
indicates that compress pictures feature automatically reduces the file size of pictures.
returns:

setautocompresspictures

public void setautocompresspictures(boolean value)

getbookmarkidseed

public int getbookmarkidseed()
bookmark id seed.
returns:

setbookmarkidseed

public void setbookmarkidseed(int value)

getdefaulttextstyle

public textstyle getdefaulttextstyle()
default paragraph and list style.
returns:

getshownarration

public boolean getshownarration()
specifies whether slide show narration should be played when presenting
returns:

setshownarration

public void setshownarration(boolean value)

getshowanimation

public boolean getshowanimation()
specifies whether slide show animation should be shown when presenting
returns:

setshowanimation

public void setshowanimation(boolean value)

getshowloop

public boolean getshowloop()
specifies whether the slide show should be set to loop at the end
returns:

setshowloop

public void setshowloop(boolean value)

hasmacros

public boolean hasmacros()
specifies whether contains vba macros.
returns:

deletemacros

public void deletemacros()
delete the macros

getshowtype

public slideshowtype getshowtype()
specifies the slide show type
returns:

setshowtype

public void setshowtype(slideshowtype value)

getusetimings

public boolean getusetimings()
specifies whether slide transition timing should be used to advance slides when presenting
returns:

setusetimings

public void setusetimings(boolean value)

getembedtruetypefonts

public boolean getembedtruetypefonts()
indicates whther embeds truetype fonts in a document when it's saved.
returns:

setembedtruetypefonts

public void setembedtruetypefonts(boolean value)

getfirstslidenumber

public int getfirstslidenumber()
slide number that appears on the first slide in your presentation.
returns:

setfirstslidenumber

public void setfirstslidenumber(int value)

setslidenovisible

public void setslidenovisible(boolean visible)

gethandoutmaster

public inotemasterslide gethandoutmaster()
gets a master for all notes slides of this presentation.
returns:

getnotesmaster

public inotemasterslide getnotesmaster()
gets a master for all notes slides of this presentation.
returns:

getnotesslidesize

public java.awt.geom.dimension2d getnotesslidesize()
gets note slide size object.
returns:

getsavesubsetfonts

public boolean getsavesubsetfonts()
indicates whther embeds subset truetype fonts in a document when it's saved.
returns:

setsavesubsetfonts

public void setsavesubsetfonts(boolean value)

getserverzoom

public float getserverzoom()
specifies a zoom level for visual representations of the document.
returns:

setserverzoom

public void setserverzoom(float value)

getmasters

public masterslidecollection getmasters()
gets a list of all master slides.
returns:

getslides

public slidecollection getslides()
gets a list of all slides.
returns:

getslidecountperpageforprint

public pageslidecount getslidecountperpageforprint()
number of total slides per page.

setslidecountperpageforprint

public void setslidecountperpageforprint(pageslidecount slidecountperpageforprint)

selectslidesforprint

public void selectslidesforprint(java.lang.string... selectslidesforprint)
select print slides

getorderforprint

public order getorderforprint()
the order of print.

setorderforprint

public void setorderforprint(order orderforprint)

isslideframeforprint

public boolean isslideframeforprint()
whether to set slideframe for printing.

setslideframeforprint

public void setslideframeforprint(boolean slideframeforprint)

isgraylevelforprint

public boolean isgraylevelforprint()
whether to set gray level for printing

setgraylevelforprint

public void setgraylevelforprint(boolean graylevelforprint)

setnoteretained

public void setnoteretained(boolean isnoteretained)
indicates whether the note is retained in converting to svg.

getslidesize

public slidesize getslidesize()
get slide size.
returns:

getsectionlist

public sectionlist getsectionlist()

setpagesize

public void setpagesize(float w,
                        float h,
                        boolean isratio)
set page size.
parameters:
w - width or width ratio
h - >height or height ratio
isratio - is ratio
throws:
java.lang.exception

getstrictfirstandlastcharacters

public boolean getstrictfirstandlastcharacters()

setstrictfirstandlastcharacters

public void setstrictfirstandlastcharacters(boolean value)

getwavaudios

public wavaudiocollection getwavaudios()
gets the collection of all embedded audio.
returns:

gettagslist

public tagcollection gettagslist()
gets the tags collection.
returns:

getimages

public imagecollection getimages()
gets the collection of all images.
returns:

getdocumentproperty

public idocumentproperty getdocumentproperty()
gets standard and custom document properties.
returns:

getcommentauthors

public commentauthorcollection getcommentauthors()
gets commentauthor list.
returns:

getformatandversion

public formatandversion getformatandversion()
gets the the format and version of file. read-only


网站地图