Package com.pspdfkit.document.providers
com.pspdfkit.document.providers.DataProvider interface (and common implementations) for loading PDF documents from arbitrary sources.
See: Description
-
Class Summary Class Description DirectWritingStrategy A WritingStrategy that immediately writes to the WritableDataProvider. ContentResolverDataProvider Data provider for opening PDF documents directly from a ContentProvider using Android's content resolver framework. Builder Creates instances of the OutputStreamAdapter. OutputStreamAdapter The OutputStreamAdapter allows you to use a WritableDataProvider in APIs that expect an OutputStream. TempFileWritingStrategy A WritingStrategy that writes to a temporary file and writes to the only when all data was written. ContextDataProvider Abstract data provider that allows subclasses to retrieve the application context by calling getContext. AssetDataProvider Data provider for opening PDF documents directly from the app's assets. InputStreamDataProvider Abstract data provider that handles serving a PDF document from an InputStream. -
Interface Summary Interface Description WritingStrategy WritingStrategy is used by the OutputStreamAdapter to determine how writing to the WritableDataProvider is handled. ProgressDataProvider ProgressDataProvider is an interface which should be implemented by any DataProvider that should support providing document loading progress updates. UriDataProvider A DataProvider that can return the source Uri it was created from. WritableDataProvider WritableDataProvider is an interface which should be implemented by any DataProvider that should support saving PDF documents. DataProvider A data provider is allows PSPDFKit to load a PDF document for any custom source (e.g. -
Enum Summary Enum Description WriteMode Describes possible write modes for the output.