導航:首頁 > 編程語言 > java課件ppt

java課件ppt

發布時間:2022-11-22 11:18:34

java如何調用PPT當前頁碼

XWPFDocument docx = new XWPFDocument(POIXMLDocument.openPackage(電月度例會會議紀要.docx)); int pages = docx.getProperties().getExtendedProperties().getUnderlyingProperties().getPages();//總頁數 int wordCount = docx.getProperties().getExtendedProperties().getUnderlyingProperties().getCharacters();// 忽略空格的總字元數 另外還有getCharactersWithSpaces()方法獲取帶空格的總字數。 System.out.println (pages= + pages + wordCount= + wordCount);} public static void parse97() throws Exception { WordExtractor doc = new WordExtractor(new FileInputStream(電月度例會會議紀要.doc));

⑵ 誰有韓順平老師的java從入門到精通的PPT呀或者到哪裡下載

http://www.doc88.com/p-8189915387388.html,ppt 沒有,這個文檔可以看看

⑶ java導出ppt太慢

1、你的ppt是否起用了宏或者插入了大量的圖片文件等? 沒有
2、是否是所有的ppt文件都這樣,還是個別的?如果全這樣你的硬碟是否可能不正常。 就那個文件
3、內存和虛擬內存是否足夠? 足夠
重新啟動計算機還是很慢

⑷ Java poi操作PPT,怎麼向PPT中插入文件對象

麻ao 對插操件象中芝操對文i#P?插a#
幾千個PPT案例參考,再也不用為做PPT煩惱啦 pptmuban.c om(刪掉c om之間空格)

⑸ 有java教程ppt的朋友,能給我發一份嗎急需啊,感激不盡,越多越好哦,謝謝啦。

有的。發給你啊……只是一部分的,如果有詳細需求給我Email.其實資源方面還是視頻比較多,但是郵件發視頻不是很方便,只能發一些簡單的PPT了。

⑹ 用JAVA在界面中實現幻燈片播放,求代碼

要讓照片隨機播放,需要把照片名改成比如photo1.jpg,photo2.jpg,photo3.jpg...的有序號順序排列的文件名,
然後把改名後的照片文件放到你的項目名的目錄下,比如你的項目名叫"slideshow",你就把照片文件放到slideshow文件夾下.
最後把下面的Java程序拷貝到你的項目中,把有DD類名的地方改成你的類名,就行了.
完整的讓一些照片在JFrame窗體里自動隨機播放的幻燈片程序如下
(我用的圖片文件是photo1.jpg,photo2.jpg,photo3.jpg,注意事項在注釋中註明

import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
public class DD extends JFrame implements Runnable{
ImageIcon ii=new ImageIcon("photo1.jpg");//這里換成你的圖片文件名,放在你的項目名的文件夾中
DD(){
super("Slide");
setSize(400, 400);
setLocationRelativeTo(null);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
public void paint(Graphics g){
super.paint(g);
g.drawImage(ii.getImage(),0,0,400,400,null);
}
@Override
public void run() {
while(true){
try {
Thread.sleep(500);//這里是幻燈片播放間隔的時間,這里為500毫秒=0.5秒
} catch (InterruptedException e) {
e.printStackTrace();
}
int i=(int)(Math.random()*3)+1;//這里是產生從1-3的隨機數,如果你有6個圖片文件,把3改成6就是從1-6的隨機數了.
ii=new ImageIcon("photo"+i+".jpg");//這里調用你的圖片文件,如果你有6個圖片文件,改成從1-6的文件名方便調用
this.repaint();
}
}
public static void main(String[] args) {
DD d=new DD();
Thread t=new Thread(d);
t.start();
}
}

⑺ 怎樣用Java將帶動畫的ppt轉換為swf文件

。在實際的操作過程中,我們可以利用PowerPoint to Flash軟體,完成從PPT文檔轉換成flash的SWF格式文件的轉化。事實上,轉化成SWF格式文檔之後,我們在使用中,不僅可以讓文件便於播放,而且也加更適宜網上發布,可以說一舉兩得。
一,准備好待轉化的PPT(PPS)幻燈文件依次點擊「開始程序PowerPoint to Flash」,進入PowerPoint to Flash運行主界面。在 PowerPoint
to Flash的主界面上點擊文件列標簽下的「添加」按鈕,在出現的瀏覽框里選擇實現准備好的需要製作的幻燈片文件(PPT或者
PPS文件)。單擊「打開」命令按鈕後,在軟體的「文件列表」下的列表框中會出現相應的文檔。如果發現需要修改,還可以先選中,然後單擊「清除」按鈕進行
刪除(圖1)。
二,調整輸出文件畫面的尺寸和質量為了使得最終輸出的SWF文件獲得最佳的播放效果,需要對輸出畫面的大小和畫質進行設置。方法:單擊左側的「選項」按鈕彈出「選項」設置對話框(圖
2)。依次進行「常規」,「播放質量」,「導航」和「輸出」等項設置。選擇「播放質量」選項下,對「畫面尺寸」和「JPEG質量」下的滑塊做適當的調節,
同時要注意高解析度高畫質的圖片也會帶來體積的增大。

⑻ 求JAVa編程全套自學視頻

《視頻-Java程序設計》網路網盤資源免費下載鏈接:https://pan..com/s/15c5QsBsFV9z-TsWntNZ3Tw

提取碼:swjn


視頻-Java程序設計|視頻《J2SE基礎編程》【徐彤】|視頻《編程方法學》【斯坦福大學-CS106A】Java28講|教程-Java編程思想pdf|教程-Java編程案例PDF|源碼-Java程序設計|教程-Java開發技術PDF|課件-Java程序設計PPT|教程-Java入門學習PDF|視頻《Java視頻教程》|資料-Java程序設計|最新java ee api幫助文檔 chm格式.chm|資料-Java程序設計.rar|實驗指導書 面向對象程序設計(Java)09信管.doc|實驗指導書 Java面向對象程序設計及應用1_12.doc

⑼ eclipse-java讀取ppt

java中讀取ppt的實現方法如下:

public class ReadFileUtils {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
ReadFileUtils rf = new ReadFileUtils();
String s = "";
// s = rf.readTXT("E:/itsm文檔的後綴名分析報告2.txt");
// s = rf.readPDF("E:/memcached全面剖析.pdf");
// s = rf.readEXCEL("E:/副本工作量及成本模板.xls");
// s = rf.readEXCEL2007("E:/功能點估算方案.xlsx");
// s = rf.readWORD("E:/pms中文.doc");
// s = rf.readWORD2007("E:/功能點估算方法.docx");
//s = rf.readPPT("E:/精細化管理信息系統項目匯報v1.0.ppt");
s = rf.readPPT2007("e:/精細化管理信息系統項目匯報v1.0.pptx");
System.out.println(s);
}

// 讀取ppt
public String readPPT(String file) throws IOException {
StringBuilder sb = new StringBuilder();
SlideShow ppt = new SlideShow(new HSLFSlideShow(file));
Slide[] slides = ppt.getSlides();
//提取文本信息
for (Slide each : slides) {
TextRun[] textRuns = each.getTextRuns();
for (int i=0 ;i< textRuns.length; i++ ) {
RichTextRun[] richTextRuns = textRuns.getRichTextRuns();
for (int j = 0; j < richTextRuns.length; j++) {
sb.append(richTextRuns[j].getText());
}
sb.append("\n");
}
sb.append("\n");
}
return sb.toString();
}

// 讀取pptx
public String readPPT2007(String file) throws IOException, XmlException, OpenXML4JException {
return new XSLFPowerPointExtractor(POIXMLDocument.openPackage(file)).getText();
}

// 讀取xls文件
public String readEXCEL(String file) throws IOException {
StringBuilder content = new StringBuilder();
HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));// 創建對Excel工作簿文件的引用
for (int numSheets = 0; numSheets < workbook.getNumberOfSheets(); numSheets++) {
if (null != workbook.getSheetAt(numSheets)) {
HSSFSheet aSheet = workbook.getSheetAt(numSheets);// 獲得一個sheet
for (int rowNumOfSheet = 0; rowNumOfSheet <= aSheet
.getLastRowNum(); rowNumOfSheet++) {
if (null != aSheet.getRow(rowNumOfSheet)) {
HSSFRow aRow = aSheet.getRow(rowNumOfSheet); // 獲得一個行
for (short cellNumOfRow = 0; cellNumOfRow <= aRow
.getLastCellNum(); cellNumOfRow++) {
if (null != aRow.getCell(cellNumOfRow)) {
HSSFCell aCell = aRow.getCell(cellNumOfRow);// 獲得列值
if (this.convertCell(aCell).length() > 0) {
content.append(this.convertCell(aCell));
}
}
content.append("\n");
}
}
}
}
}
return content.toString();
}

// 讀取xlsx文件
public String readEXCEL2007(String file) throws IOException {
StringBuilder content = new StringBuilder();
XSSFWorkbook workbook = new XSSFWorkbook(file);
for (int numSheets = 0; numSheets < workbook.getNumberOfSheets(); numSheets++) {
if (null != workbook.getSheetAt(numSheets)) {
XSSFSheet aSheet = workbook.getSheetAt(numSheets);// 獲得一個sheet
for (int rowNumOfSheet = 0; rowNumOfSheet <= aSheet
.getLastRowNum(); rowNumOfSheet++) {
if (null != aSheet.getRow(rowNumOfSheet)) {
XSSFRow aRow = aSheet.getRow(rowNumOfSheet); // 獲得一個行
for (short cellNumOfRow = 0; cellNumOfRow <= aRow
.getLastCellNum(); cellNumOfRow++) {
if (null != aRow.getCell(cellNumOfRow)) {
XSSFCell aCell = aRow.getCell(cellNumOfRow);// 獲得列值
if (this.convertCell(aCell).length() > 0) {
content.append(this.convertCell(aCell));
}
}
content.append("\n");
}
}
}
}
}
return content.toString();
}

private String convertCell(Cell cell) {
NumberFormat formater = NumberFormat.getInstance();
formater.setGroupingUsed(false);
String cellValue = "";
if (cell == null) {
return cellValue;
}

switch (cell.getCellType()) {
case HSSFCell.CELL_TYPE_NUMERIC:
cellValue = formater.format(cell.getNumericCellValue());
break;
case HSSFCell.CELL_TYPE_STRING:
cellValue = cell.getStringCellValue();
break;
case HSSFCell.CELL_TYPE_BLANK:
cellValue = cell.getStringCellValue();
break;
case HSSFCell.CELL_TYPE_BOOLEAN:
cellValue = Boolean.valueOf(cell.getBooleanCellValue()).toString();
break;
case HSSFCell.CELL_TYPE_ERROR:
cellValue = String.valueOf(cell.getErrorCellValue());
break;
default:
cellValue = "";
}
return cellValue.trim();
}

// 讀取pdf文件
public String readPDF(String file) throws IOException {
String result = null;
FileInputStream is = null;
PDDocument document = null;
try {
is = new FileInputStream(file);
PDFParser parser = new PDFParser(is);
parser.parse();
document = parser.getPDDocument();
PDFTextStripper stripper = new PDFTextStripper();
result = stripper.getText(document);
} finally {
if (is != null) {
is.close();
}
if (document != null) {
document.close();
}
}
return result;
}

// 讀取doc文件
public String readWORD(String file) throws Exception {
String returnStr = "";
try {
WordExtractor wordExtractor = new WordExtractor(new FileInputStream(new File(file)));
returnStr = wordExtractor.getText();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return returnStr;
}

// 讀取docx文件
public String readWORD2007(String file) throws Exception {
return new XWPFWordExtractor(POIXMLDocument.openPackage(file)).getText();
}

// 讀取txt文件
public String readTXT(String file) throws IOException {
String encoding = ReadFileUtils.get_charset(new File(file));
if (encoding.equalsIgnoreCase("GBK")) {
return FileUtils.readFileToString(new File(file), "gbk");
} else {
return FileUtils.readFileToString(new File(file), "utf8");
}
}

private static String get_charset(File file) throws IOException {
String charset = "GBK";
byte[] first3Bytes = new byte[3];
BufferedInputStream bis = null;
try {
boolean checked = false;
bis = new BufferedInputStream(new FileInputStream(file));
bis.mark(0);
int read = bis.read(first3Bytes, 0, 3);
if (read == -1)
return charset;
if (first3Bytes[0] == (byte) 0xFF && first3Bytes[1] == (byte) 0xFE) {
charset = "UTF-16LE";
checked = true;
} else if (first3Bytes[0] == (byte) 0xFE
&& first3Bytes[1] == (byte) 0xFF) {
charset = "UTF-16BE";
checked = true;
} else if (first3Bytes[0] == (byte) 0xEF
&& first3Bytes[1] == (byte) 0xBB
&& first3Bytes[2] == (byte) 0xBF) {
charset = "UTF-8";
checked = true;
}
bis.reset();
if (!checked) {
// int len = 0;
int loc = 0;

while ((read = bis.read()) != -1) {
loc++;
if (read >= 0xF0)
break;
if (0x80 <= read && read <= 0xBF) // 單獨出現BF以下的,也算是GBK
break;
if (0xC0 <= read && read <= 0xDF) {
read = bis.read();
if (0x80 <= read && read <= 0xBF) // 雙位元組 (0xC0 - 0xDF)
// (0x80
// - 0xBF),也可能在GB編碼內
continue;
else
break;
} else if (0xE0 <= read && read <= 0xEF) {// 也有可能出錯,但是幾率較小
read = bis.read();
if (0x80 <= read && read <= 0xBF) {
read = bis.read();
if (0x80 <= read && read <= 0xBF) {
charset = "UTF-8";
break;
} else
break;
} else
break;
}
}
// System.out.println( loc + " " + Integer.toHexString( read )
// );
}
} catch (Exception e) {
e.printStackTrace();
} finally {
if (bis != null) {
bis.close();
}
}
return charset;
}
}

⑽ 使用java怎樣把ppt轉化成PDF

使用free spire.presentation for java
import com.spire.presentation.FileFormat;
import com.spire.presentation.Presentation;
public class PPTToPDF {
public static void main(String[] args) throws Exception {
Presentation ppt = new Presentation();
ppt.loadFromFile("xx.ppt");
ppt.saveToFile("xx.pdf", FileFormat.PDF);
}
}

閱讀全文

與java課件ppt相關的資料

熱點內容
下班之後的程序員 瀏覽:71
檢測支持ssl加密演算法 瀏覽:342
衢州發布新聞什麼APP 瀏覽:83
中國移動長沙dns伺服器地址 瀏覽:249
wifi密碼加密了怎麼破解嗎 瀏覽:596
linux命令cpu使用率 瀏覽:67
linux實用命令 瀏覽:238
傳奇引擎修改在線時間命令 瀏覽:109
php取域名中間 瀏覽:897
cad命令欄太小 瀏覽:830
php開發環境搭建eclipse 瀏覽:480
qt文件夾名稱大全 瀏覽:212
金山雲伺服器架構 瀏覽:230
安卓系統筆記本怎麼切換系統 瀏覽:618
u盤加密快2個小時還沒有搞完 瀏覽:93
小米有品商家版app叫什麼 瀏覽:94
行命令調用 瀏覽:436
菜鳥裹裹員用什麼app 瀏覽:273
窮查理寶典pdf下載 瀏覽:515
csgo您已被禁用此伺服器怎麼辦 瀏覽:398