newImageInstance

open fun newImageInstance(@NonNull documentUri: Uri, @NonNull configuration: PdfConfiguration): PdfFragment

Creates and returns a new Fragment to display a converted PDF document from a supported image format.

Return

New instance of fragment that can be attached to view hierarchy.

Parameters

configuration

Configuration for the image document to display generated with , or getDefaultImageDocumentConfiguration.


Creates and returns a new Fragment to display a converted PDF document from a supported image format.

Return

New instance of fragment that can be attached to view hierarchy.

Parameters

source

Instance of DataProvider to load the image from. Note: this object WILL NOT BE RETAINED ON RECREATION unless it implements Parcelable interface.

configuration

Configuration for the image document to display generated with , or getDefaultImageDocumentConfiguration.


Creates and returns a new Fragment to display a converted PDF document from a supported image format.

Return

New instance of fragment that can be attached to view hierarchy.

Parameters

source

Document source to load the image from

configuration

Configuration for the image document to display generated with , or getDefaultImageDocumentConfiguration.