Package edu.upf.taln.dri.lib.loader
Interface PDFloader
-
- All Known Implementing Classes:
GROBIDloaderImpl
,PDFEXTloaderImpl
,PDFXloaderImpl
public interface PDFloader
Interface to access the PDF importing methods of Dr. Inventor.
To get an instance of a PDFloader by thePDFloader interface
, always use theFactory
methodgetPDFloader()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document
parsePDF(byte[] PDFbyteArray, String PDFfileName)
Convert a PDF file to aDocument
Document
parsePDF(File file)
Convert a PDF file to aDocument
Document
parsePDF(String absoluteFilePath)
Convert a PDF file to aDocument
Document
parsePDF(URL url)
Convert a PDF file to aDocument
-
-
-
Method Detail
-
parsePDF
Document parsePDF(byte[] PDFbyteArray, String PDFfileName) throws DRIexception
Convert a PDF file to aDocument
- Parameters:
PDFbyteArray
- the byte array of the PDF filePDFfileName
- considered if not null or empty- Returns:
- Throws:
DRIexception
-
parsePDF
Document parsePDF(String absoluteFilePath) throws DRIexception
Convert a PDF file to aDocument
- Parameters:
absoluteFilePath
- the absolute path of the PDF file to convert- Returns:
- Throws:
DRIexception
-
parsePDF
Document parsePDF(File file) throws DRIexception
Convert a PDF file to aDocument
- Parameters:
file
- the PDF file to convert- Returns:
- Throws:
DRIexception
-
parsePDF
Document parsePDF(URL url) throws DRIexception
Convert a PDF file to aDocument
- Parameters:
url
- the URL of the file to convert- Returns:
- Throws:
DRIexception
-
-