package com.knecon.fforesight.service.layoutparser.server.services;

import java.nio.file.Path;
import java.util.List;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import com.knecon.fforesight.service.layoutparser.processor.model.PageContents;
import com.knecon.fforesight.service.layoutparser.processor.services.PageContentExtractor;

import lombok.SneakyThrows;

class MainBodyTextFrameExtractionServiceTest {

    @Test
    @Disabled
    @SneakyThrows
    public void testMainBodyDetection() {

        String fileName = "files/basf/CustomerFiles/invisible_tables_test-two-pages_ocred.pdf";
        String tmpFileName = Path.of("/tmp/").resolve(Path.of(fileName).getFileName() + "_MAIN_BODY.pdf").toString();
        List<PageContents> sortedTextPositionSequence = PageContentExtractor.getSortedPageContents(fileName);


    }

}