PDF 또는 HTML을 Android에서 프레젠테이션으로 가져오기
Contents
[
Hide
]
소개
Using Aspose.Slides for Android via Java, you can import presentations from files in other formats. Aspose.Slides provides the SlideCollection class to allow you to import presentations from PDFs, HTML documents, etc.
PDF에서 PowerPoint 가져오기
In this case, you get to convert a PDF to a PowerPoint presentation.

- Create an instance of the Presentation class.
- Call the addFromPdf() method and pass the PDF file.
- Use the save() method to save the file in the PowerPoint format.
This Java code demonstrates the PDF to PowerPoint operation:
Presentation pres = new Presentation();
try {
pres.getSlides().addFromPdf("InputPDF.pdf");
pres.save("OutputPresentation.pptx", SaveFormat.Pptx);
} finally {
if (pres != null) pres.dispose();
}
Tip
Aspose free PDF to PowerPoint 웹 앱을 확인해 보세요. 이 앱은 여기서 설명한 프로세스의 실시간 구현입니다.HTML에서 PowerPoint 가져오기
In this case, you get to convert a HTML document to a PowerPoint presentation.
- Create an instance of the Presentation class.
- Call the addFromHtml() method and pass the HTML file.
- Use the save() method to save the file in the PowerPoint format.
This Java code demonstrates the HTML to PowerPoint operation:
Presentation presentation = new Presentation();
try {
FileInputStream htmlStream = new FileInputStream("page.html");
try {
presentation.getSlides().addFromHtml(htmlStream);
} finally {
if (htmlStream != null) htmlStream.close();
}
presentation.save("MyPresentation.pptx", SaveFormat.Pptx);
} catch(IOException e) {
} finally {
if (presentation != null) presentation.dispose();
}
FAQ
Are tables preserved when importing a PDF, and can their detection be improved?
Tables can be detected during import; PdfImportOptions includes a setDetectTables method that enables table recognition. The effectiveness depends on the PDF’s structure.