PdfImportOptions

Inheritance: java.lang.Object

public class PdfImportOptions

Represents the PDF import options

Constructors

ConstructorDescription
PdfImportOptions()

Methods

MethodDescription
getDetectTables()Determines whether detect tables when importing pdf file.
setDetectTables(boolean value)Determines whether detect tables when importing pdf file.

PdfImportOptions()

public PdfImportOptions()

getDetectTables()

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();
 }

Returns: boolean

setDetectTables(boolean value)

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();
 }

Parameters:

ParameterTypeDescription
valueboolean