afreakyelf / Pdf-Viewer

A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space.
https://afreakyelf.github.io/Pdf-Viewer/
MIT License
821 stars 173 forks source link

[BUG] can't find the saveTo function, what should I do? #136

Open Melkon2008 opened 6 months ago

Melkon2008 commented 6 months ago

can't find the saveTo function, what should I do? Screenshot_35

github-actions[bot] commented 6 months ago

Thank you for creating your first issue. We appreciate your help in making this project better. We will look into it, and get back to you soon. Need help or want to discuss this issue? Join our Discord community here to ask questions and discuss this issue live!

deddyrumapea commented 6 months ago

First, make sure you import the saveTo enum class:

import com.rajat.pdfviewer.util.saveTo;

Then, use it in your code like this:

PdfViewerActivity.launchPdfFromPath(
    context = context,
    path = path,
    pdfTitle = "PDF Title",
    saveTo = saveTo.ASK_EVERYTIME,
    fromAssets = false
);
deddyrumapea commented 6 months ago

saveTo is no longer under PdfViewerActivity. We need to update the README.md to reflect this. I've proposed the changes in https://github.com/afreakyelf/Pdf-Viewer/pull/132

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been stalled for 5 days with no activity.