Pdf-Viewer icon indicating copy to clipboard operation
Pdf-Viewer copied to clipboard

Allow download from HTTP website

Open thezukkino opened this issue 3 years ago • 0 comments

Hello, thanks for your library. Currently only HTTPS connections are allowed. Could you add the possibility to get PDF from HTTP connection.

Cleartext HTTP traffic to ... not permitted

You could put an option to the current call:

fun launchPdfFromUrl(
            context: Context?,
            clearText: Boolean = false, //allow clear text (HTTP) connection
            pdfUrl: String?,
            pdfTitle: String?,
            directoryName: String?,
            enableDownload: Boolean = true
        )

thezukkino avatar Mar 24 '22 11:03 thezukkino