Package 

Class PdfParser

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      PdfParser(Context context, PdfDocumentFactory<?> pdfFactory)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Publication.Builder parse(PublicationAsset asset, Fetcher fetcher, WarningLogger warnings) Constructs a Publication.Builder to build a Publication from a publication asset.
      PubBox parse(String fileAtPath, String fallbackTitle)
      final Publication.Builder _parse(PublicationAsset asset, Fetcher fetcher, String fallbackTitle)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
      • _parse

         final Publication.Builder _parse(PublicationAsset asset, Fetcher fetcher, String fallbackTitle)