public class PdfImportOptions
extends java.lang.Object
Represents the PDF import options
| Constructor and Description |
|---|
PdfImportOptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDetectTables()
Determines whether detect tables when importing pdf file.
|
void |
setDetectTables(boolean value)
Determines whether detect tables when importing pdf file.
|
public final boolean getDetectTables()
Determines whether detect tables when importing pdf file.
Example:Presentation pres = new Presentation(); try { PdfImportOptions pdfImportOptions = new PdfImportOptions(); pdfImportOptions.setDetectTables(true); FileInputStream stream = new FileInputStream("document.pdf"); { // set detecting tables pres.getSlides().addFromPdf(stream, pdfImportOptions); } pres.save("fromPdfDocument.pptx", SaveFormat.Pptx); } catch (IOException e) { } finally { if (pres != null) pres.dispose(); }
public final void setDetectTables(boolean value)
Determines whether detect tables when importing pdf file.
Example:Presentation pres = new Presentation(); try { PdfImportOptions pdfImportOptions = new PdfImportOptions(); pdfImportOptions.setDetectTables(true); FileInputStream stream = new FileInputStream("document.pdf"); { // set detecting tables pres.getSlides().addFromPdf(stream, pdfImportOptions); } pres.save("fromPdfDocument.pptx", SaveFormat.Pptx); } catch (IOException e) { } finally { if (pres != null) pres.dispose(); }
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.