Package com.logicaldoc.core.parser
Class PDFParser
java.lang.Object
com.logicaldoc.core.parser.AbstractParser
com.logicaldoc.core.parser.PDFParser
- All Implemented Interfaces:
- Parser
Text extractor for Portable Document Format (PDF). For parsing uses an
 external library: PDFBox. Created on 4. November 2003, 18:09
- Since:
- 3.5
- Author:
- Michael Scholz, Alessandro Gasparini - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcountPages(File file, String filename) Same as the otherParser.countPages(InputStream, String), but use this when you have a file rather than a stream.intcountPages(InputStream input, String filename) Counts the number of pages of the given binary document.voidinternalParse(InputStream input, ParseParameters parameters, StringBuilder content) Methods inherited from class com.logicaldoc.core.parser.AbstractParserparse, parse, parse, parse
- 
Constructor Details- 
PDFParserpublic PDFParser()
 
- 
- 
Method Details- 
internalParsepublic void internalParse(InputStream input, ParseParameters parameters, StringBuilder content) throws ParsingException - Throws:
- ParsingException
 
- 
countPagesDescription copied from interface:ParserSame as the otherParser.countPages(InputStream, String), but use this when you have a file rather than a stream.- Specified by:
- countPagesin interface- Parser
- Overrides:
- countPagesin class- AbstractParser
- Parameters:
- file- the file
- filename- name of the file
- Returns:
- the number of pages
 
- 
countPagesDescription copied from interface:ParserCounts the number of pages of the given binary document.- Specified by:
- countPagesin interface- Parser
- Overrides:
- countPagesin class- AbstractParser
- Parameters:
- input- binary content from which to extract the text
- filename- name of the file
- Returns:
- the number of pages
 
 
-