thoqbk/traprange

Error NotSuchMethod

SithMetalord opened this issue · 0 comments

While implementing the extractor on a main java method, I get the following error:

java.lang.NoSuchMethodError: com.google.common.collect.Range.closed(Ljava/lang/Comparable;Ljava/lang/Comparable;)Lcom/google/common/collect/Range;

The program is as follows:

PDFTableExtractor extractor = new PDFTableExtractor();
        extractor = extractor.setSource("C:/test.pdf");        
        extractor.addPage(0);
        extractor.exceptLine(0, new int[]{0, 1});  

        List<Table> tables = extractor.extract();    

         try (Writer writer = new OutputStreamWriter(new FileOutputStream("C:/Users/rys_s/Documents/MiArchivo.html"), "UTF-8")) {
                for (Table table : tables) {
                    writer.write("Page: " + (table.getPageIdx() + 1) + "\n");
                    writer.write(table.toHtml());
                }
        }

And the error comes apparently at the extractor.extract() line.