Bug fix
This commit is contained in:
parent
9a58743966
commit
8f6e2cb385
@ -1,5 +1,5 @@
|
||||
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
import commands.Analyse;
|
||||
import commands.Build;
|
||||
|
@ -145,7 +145,6 @@ public class Read implements Callable <Void> {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Config config = new Config(source_path); //Initialise le fichier de configuration selon le chemin donné
|
||||
config.readConfig();
|
||||
|
||||
|
@ -13,7 +13,7 @@ import java.util.Map;
|
||||
|
||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||
|
||||
|
||||
|
||||
public class GestionnaireCopies {
|
||||
|
||||
private List<Copie> listeCopie;
|
||||
@ -56,6 +56,7 @@ public class GestionnaireCopies {
|
||||
|
||||
images.addAll(pdfAnalyzer.convertPagesToBWJPG(document,1));
|
||||
// appelle la methode qui convertit les pages en images (jpg) noir et blanches
|
||||
document.close();
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
|
@ -1,6 +1,5 @@
|
||||
package ocr;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.util.logging.Logger;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
@ -21,8 +20,6 @@ import org.apache.pdfbox.rendering.PDFRenderer;
|
||||
import lecturePdf.Recadrage;
|
||||
|
||||
public class PdfToImage {
|
||||
|
||||
//Logger.getLogger("org.apache.pdfbox").setLevel(java.util.logging.Level.OFF);
|
||||
|
||||
public List<String> listAllFiles(String directory, String extension) {
|
||||
// https://www.mkyong.com/java/java-how-to-list-all-files-in-a-directory/
|
||||
|
Loading…
x
Reference in New Issue
Block a user