-
- All Implemented Interfaces:
-
org.readium.r2.streamer.PublicationParser,org.readium.r2.streamer.parser.PublicationParser
public final class PdfParser implements PublicationParser, PublicationParser
Parses a PDF file into a Readium Publication.
-
-
Method Summary
Modifier and Type Method Description Publication.Builderparse(PublicationAsset asset, Fetcher fetcher, WarningLogger warnings)Constructs a Publication.Builder to build a Publication from a publication asset. PubBoxparse(String fileAtPath, String fallbackTitle)final Publication.Builder_parse(PublicationAsset asset, Fetcher fetcher, String fallbackTitle)-
-
Constructor Detail
-
PdfParser
PdfParser(Context context, PdfDocumentFactory<?> pdfFactory)
-
-
Method Detail
-
parse
Publication.Builder parse(PublicationAsset asset, Fetcher fetcher, WarningLogger warnings)
Constructs a Publication.Builder to build a Publication from a publication asset.
- Parameters:
asset- Digital medium (e.g.fetcher- Initial leaf fetcher which should be used to read the publication's resources.warnings- Used to report non-fatal parsing warnings, such as publication authoring mistakes.
-
-
-
-