Git Product home page Git Product logo

pdfwidget's Introduction

PdfWidget

A nascent PDF view written based on Qt

Its very few features are

  • Two render backends: MuPdf and Poppler
  • Encryption support
  • Zoom in and Zoom out (10% to 400%)

Qt4 and Qt5 builds are supported

Notes for compiling - linux:

  • Download the sources
    • Git: git clone https://gitlab.com/marcusbritanicus/PdfWidget PdfWidget-master
    • Tar: wget https://gitlab.com/marcusbritanicus/PdfWidget/archive/master.tar.gz && tar -xf master.tar.gz
  • Enter PdfWidget-master
  • Open the terminal and type: qmake && make

Because there are a lot of versions of mupdf out there and some of the older versions have now-outdated function names, mupdf source in included in the build tree. The MuPDF source is picked from Debian/Sid (Source Version 1.13.0+ds1-2).

Because Noto, Droid and Hangul fonts bloat the library size to 45 MiB, I have removed them from the build tree. We also disable them using the flags -DNOCJK -DTOFU. To disable gl, we use HAVE_GLUT=np and use -fPIC so that we can link it with other shared objects. Though the source is nearly 11 MiB in size the library is ~8 MiB and the libpdfwidget.so will be after linking to mupdf ~3 MiB which is a decent size.

Known issues

  • In the example implementation, changing the zoom causes the document to scroll to page 1.
  • Changing the zoom in the example implementation causes my system to freeze up at times.

pdfwidget's People

Contributors

marcusbritanicus avatar

Watchers

 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.