Skip to main content
Participating Frequently
March 24, 2023
Question

Is the first filePath always a .csv?

  • March 24, 2023
  • 0 replies
  • 164 views

Hi!

 

I am extracting pdf with the following code:

    extract_pdf_options: ExtractPDFOptions = ExtractPDFOptions.builder() \
        .with_elements_to_extract([ExtractElementType.TEXT, ExtractElementType.TABLES]) \
        .with_elements_to_extract_renditions([ExtractRenditionsElementType.TABLES, ExtractRenditionsElementType.FIGURES]) \
        .with_table_structure_format(TableStructureType.CSV) \
        .build()

 

All table elements have a filePaths list, with a .csv followed by a .png.

Is this order consistent? Can I rely on the fact that the .csv will always be at postion 0?

 

Thanks in advance,

Giovanni

    This topic has been closed for replies.