Uses of Class
edu.upf.taln.dri.common.connector.pdfext.localappo.PDFEXTresult
-
Packages that use PDFEXTresult Package Description edu.upf.taln.dri.common.connector.pdfext.localappo -
-
Uses of PDFEXTresult in edu.upf.taln.dri.common.connector.pdfext.localappo
Methods in edu.upf.taln.dri.common.connector.pdfext.localappo that return PDFEXTresult Modifier and Type Method Description static PDFEXTresult
PDFextStatic. convertHTMLtoXML(String HTMLcontents)
Receive as input an HTML file generated from a PDF and returns the result of the conversion to XML as an instance of the objectPDFEXTresult
.static PDFEXTresult
PDFextStatic. convertPDF(String PDFfullPath, String appoFolderFullPath)
IMPORTANT: this method works only with PDF2HTMLext installed in the PC where it is executed! Given the full local path of a PDF file and the full local path of an temporary folder where it is possible to write and delete files, this method converts the PDF file into HTML / XML and returns the conversion results.static PDFEXTresult
PDFEXTparser. parse(PDFEXTresult contentsToParse)
public static String extractHEADERS_GROBID(String PDFfilePath) { BiblioItem resHeader=null; try { // Biblio object for the result resHeader = new BiblioItem(); String tei = engine.processHeader(PDFfilePath, false, resHeader); System.out.println(">>>>>>>> GROBID_RESULTS="+resHeader.toString()); } catch (Exception e) { // If an exception is generated, print a stack trace e.printStackTrace(); } return resHeader.toString(); } /*************************** /** Parsing document methodMethods in edu.upf.taln.dri.common.connector.pdfext.localappo with parameters of type PDFEXTresult Modifier and Type Method Description static PDFEXTresult
PDFEXTparser. parse(PDFEXTresult contentsToParse)
public static String extractHEADERS_GROBID(String PDFfilePath) { BiblioItem resHeader=null; try { // Biblio object for the result resHeader = new BiblioItem(); String tei = engine.processHeader(PDFfilePath, false, resHeader); System.out.println(">>>>>>>> GROBID_RESULTS="+resHeader.toString()); } catch (Exception e) { // If an exception is generated, print a stack trace e.printStackTrace(); } return resHeader.toString(); } /*************************** /** Parsing document method
-