-
- All Implemented Interfaces:
-
org.readium.r2.streamer.parser.PublicationParser
public final class PdfParser implements PublicationParser
Parses a PDF file into a Readium Publication.
-
-
Method Summary
Modifier and Type Method Description Try<Publication.Builder, PublicationParser.ParseError>parse(Asset asset, WarningLogger warnings)Constructs a Publication.Builder to build a Publication from a publication asset. -
-
Constructor Detail
-
PdfParser
PdfParser(Context context, PdfDocumentFactory<?> pdfFactory)
-
-
Method Detail
-
parse
Try<Publication.Builder, PublicationParser.ParseError> parse(Asset asset, WarningLogger warnings)
Constructs a Publication.Builder to build a Publication from a publication asset.
- Parameters:
asset- Publication asset.warnings- Used to report non-fatal parsing warnings, such as publication authoring mistakes.
-
-
-
-