Android-MuPDF icon indicating copy to clipboard operation
Android-MuPDF copied to clipboard

Continuous Scrolling of Pages

Open chintandesai49 opened this issue 9 years ago • 3 comments

Does this sample app supports continuous scrolling of pages like onFling action?

chintandesai49 avatar Aug 24 '16 06:08 chintandesai49

Just put extra parameter intent.putExtra("horizontalscrolling", false);

Intent intent = new Intent(this, com.artifex.mupdflib.MuPDFActivity.class);
            intent.setAction(Intent.ACTION_VIEW);
            intent.setData(uri);

            //if document protected with password
            intent.putExtra("password", "encrypted PDF password");

            //if you need highlight link boxes
            intent.putExtra("linkhighlight", true);

            //if you don't need device sleep on reading document
            intent.putExtra("idleenabled", false);

            //set true value for horizontal page scrolling, false value for vertical page scrolling
            intent.putExtra("horizontalscrolling", false);

            //document name
            intent.putExtra("docname", "PDF document name");

            startActivity(intent);

joniks avatar Aug 24 '16 07:08 joniks

Not like this, if i perform onFling action it should scroll more than one page of pdf. I have attached one video please take alook. onFlingAction.zip

chintandesai49 avatar Aug 24 '16 09:08 chintandesai49

Can you add the continuous scrolling in the library... i am not sure but maybe following patch can help "https://github.com/pshevtsov/ports/blob/master/mupdf/mupdf-continuous-scrolling.patch"

HkGhilzai avatar Apr 14 '17 15:04 HkGhilzai