Coder Social home page Coder Social logo

mupdfforandroid's Introduction

CSDN CSDN API

mupdf是一款轻量级的pdf浏览框架,而它的好处是支持很多第三方pdf框架没有的,文本的pdf文档搜索,标注等功能。当之无愧的强大。缺点是动态链接库实在大。

为什么推荐这个框架

我在pdf框架一览中介绍过四种pdf框架,只有这个pdf框架功能最全最强大。而且封装方面包括对缩放,预览,缓存等的处理也值得借鉴。我将在之后研究这个库,还有他的java层封装,并将其做的更好!

怎么使用它?

	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", true);

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

由于界面是已经写死的,可以参照功能实现去修改界面。祝你好运~~

License

Copyright 2017 Xiaolong 

MupdfForAndroid is free software: you can redistribute it and/or modify.

mupdfforandroid's People

Contributors

xxxxxxl avatar guoxiaolongonly avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.