|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.presentation.pptobject
com.spire.presentation._presentation
com.spire.presentation.presentation
public final class 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 |
---|
public presentation()
public presentation( pptx)
public presentation(com.spire.ms.system.io.stream stream, fileformat fileformat)
stream
- file streamfileformat
- file format
java.lang.exception
public presentation(java.io.inputstream stream, fileformat fileformat)
public presentation(java.lang.string file, fileformat fileformat)
file
- fileformat
-
java.lang.exception
method detail |
---|
public savetopdfoption getsavetopdfoption()
public savetohtmloption getsavetohtmloption()
public islide findslide(int id)
id
-
public byte[] getbytes()
getbytes
in class _presentation
java.lang.exception
public void loadfromstream(java.io.inputstream stream, fileformat fileformat)
stream
- the document stream.fileformat
-
java.lang.exception
public void loadfromfile(java.lang.string file)
loadfromfile
in class _presentation
file
- the document file path.
java.lang.exception
public void loadfromfile(java.lang.string file, java.lang.string password)
loadfromfile
in class _presentation
file
- the document file path.password
-
java.lang.exception
public void loadfromfile(java.lang.string file, fileformat fileformat)
loadfromfile
in class _presentation
public void loadfromfile(java.lang.string file, fileformat fileformat, java.lang.string password)
loadfromfile
in class _presentation
public void savetofile(java.io.outputstream stream, fileformat fileformat)
savetofile
in class _presentation
public java.util.listsavetosvg()
public void savetofile(java.lang.string file, fileformat fileformat)
savetofile
in class _presentation
file
- a string that contains the path of the file to which to save this document.fileformat
-
java.lang.exception
public void encrypt(java.lang.string password)
password
- the password.public void removeencryption()
public void protect(java.lang.string password)
password
- the password.public void removeprotect()
public void print(presentationprintdocument presentationprintdocument)
public void print(com.spire.ms.printing.printersettings printersettings)
printersettings
- printer settings to use.public void print(java.lang.string name)
name
- the name of the printer.public void setfootertext(java.lang.string text) throws documenteditexception
documenteditexception
public void setdatetime(java.util.date datetime) throws documenteditexception
documenteditexception
public void setdatetime(java.util.date datetime, java.lang.string format) throws documenteditexception
documenteditexception
public boolean getfootervisible()
public void setfootervisible(boolean value)
public boolean getdatetimevisible()
public void setdatetimevisible(boolean value)
public boolean getslidenumbervisible()
public void setslidenumbervisible(boolean value)
public boolean getautocompresspictures()
public void setautocompresspictures(boolean value)
public int getbookmarkidseed()
public void setbookmarkidseed(int value)
public textstyle getdefaulttextstyle()
public boolean getshownarration()
public void setshownarration(boolean value)
public boolean getshowanimation()
public void setshowanimation(boolean value)
public boolean getshowloop()
public void setshowloop(boolean value)
public boolean hasmacros()
public void deletemacros()
public slideshowtype getshowtype()
public void setshowtype(slideshowtype value)
public boolean getusetimings()
public void setusetimings(boolean value)
public boolean getembedtruetypefonts()
public void setembedtruetypefonts(boolean value)
public int getfirstslidenumber()
public void setfirstslidenumber(int value)
public void setslidenovisible(boolean visible)
public inotemasterslide gethandoutmaster()
public inotemasterslide getnotesmaster()
public java.awt.geom.dimension2d getnotesslidesize()
public boolean getsavesubsetfonts()
public void setsavesubsetfonts(boolean value)
public float getserverzoom()
public void setserverzoom(float value)
public masterslidecollection getmasters()
public slidecollection getslides()
public pageslidecount getslidecountperpageforprint()
public void setslidecountperpageforprint(pageslidecount slidecountperpageforprint)
public void selectslidesforprint(java.lang.string... selectslidesforprint)
public order getorderforprint()
public void setorderforprint(order orderforprint)
public boolean isslideframeforprint()
public void setslideframeforprint(boolean slideframeforprint)
public boolean isgraylevelforprint()
public void setgraylevelforprint(boolean graylevelforprint)
public void setnoteretained(boolean isnoteretained)
public slidesize getslidesize()
public sectionlist getsectionlist()
public void setpagesize(float w, float h, boolean isratio)
w
- width or width ratioh
- >height or height ratioisratio
- is ratio
java.lang.exception
public boolean getstrictfirstandlastcharacters()
public void setstrictfirstandlastcharacters(boolean value)
public wavaudiocollection getwavaudios()
public tagcollection gettagslist()
public imagecollection getimages()
public idocumentproperty getdocumentproperty()
public commentauthorcollection getcommentauthors()
public formatandversion getformatandversion()
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |