Git Product home page Git Product logo

pdfviewerdemo-revived's Introduction

PdfViewerDemo

pdf阅读器,基于MuPDF开发,可横竖切换浏览、多种批注功能、电子签章
PdfViewerDemo is developed within the mupdf project.

Screenshots

.gif预览 预览图1
预览图2 预览图3

Features

  • 显示pdf
  • 支持横竖滑动
  • 动态改变标注颜色和画笔颜色
  • 支持插入图片

How do I use?

pdf-viewer is available through JCenter. To be able to use this library in your project, add the following dependency to your build.gradle file:

dependencies{
	implementation 'com.lonelypluto:pdf-viewer:1.0.7'
 }

Simple use cases will look something like this:

<com.artifex.mupdfdemo.MuPDFReaderView
        android:id="@+id/mupdfreaderview"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        />

MuPDFReaderView muPDFReaderView = (MuPDFReaderView)findViewById(R.id.mupdfreaderview);
MuPDFCore muPDFCore = new MuPDFCore(this, filePath);
muPDFReaderView.setAdapter(new MuPDFPageAdapter(this, muPDFCore));

特别说明

本来写个库可以方便使用,但是总有一些人跟我要.so文件甚至要.so文件的源码,这里就不多说了,最近一年太忙也没有太多时间和精力去扩展新的功能,我把.so文件放到项目的根目录libs文件夹中,希望对有需要的人提供一点帮助吧

pdfviewerdemo-revived's People

Contributors

lonelypluto 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.