• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is the first filePath always a .csv?

New Here ,
Mar 24, 2023 Mar 24, 2023

Copy link to clipboard

Copied

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

Views

89

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources