Questions tagged [mupdf]

MuPDF is a lightweight, fast PDF and XPS viewer capable to run on multiple platforms, including Android and iOS. It also includes its own `fitz` rendering library.

MuPDF started its life somewhere in Scandinavia, but then it was adopted by the Ghostscript community. Since then it was nursed in the cradle of the Ghostscript developers and brought to life as a lightweight PDF viewer, meant as an alternative to Ghostscript. Recently it gained XPS viewing capabilities too.

It serves as the core for the popular lightweight and fast SumatraPDF viewer on Windows, but it is ported to many other platforms too (including Android and iOS).

In its core is its own fitz rendering library.

MuPDF's implementation of PDF-1.7 features is rather complete: it supports transparency, encryption, hyperlinks, annotations, searching and more.

From the 1.2 release of MuPDF, there is optional support for interactive features such as form filling, javascript and transitions.

License: AGPL v3 or commercial (from Artifex)

Sources: git clone git://git.ghostscript.com/mupdf.git

Contact: MuPDF developers hang out on IRC in the #mupdf channel on irc.freenode.net.

344 questions
2
votes
1 answer

How to build shared MuPDF library?

MuPDF by default should build static library, according to bit older Makfile and Internet sources. I now wanted to build MuPDF shared library which is needed by other project, and it doesn't even include rule for static library in current…
theta
  • 24,593
  • 37
  • 119
  • 159
1
vote
2 answers

Extracting figures(Form Xobjects) from scientific papers

In scientific papers, figures are often PDF files later compiled into main file by latex compilers. I'm trying to extract such kind figures from a PDF file. Before I started exploring this topic, I had little knowledge of PDF format, so sorry if I…
Kiyoaki
  • 33
  • 5
1
vote
1 answer

Rendering Swedish Å Ä and Ö with groff, mupdf

I am learning to use groff as an alternative to Latex and am struggling with rendering Å Ä and Ö characters. In an English only setting, I have been running groff with: $ groff -ms example.ms -T pdf > example.pdf and then viewing my pdf with : $…
dublc
  • 13
  • 4
1
vote
1 answer

troubles with implicit declaration static (compiling customized mupdf library)

I am compiling mupdf with a custom version of some functions in mupdf library. There are two functions that seem to call each other so when I create the _custom version of them an error is issued at compile time. pc@pc:~/sviluppo/mupdf-0.9$ make CC…
P5music
  • 3,197
  • 2
  • 32
  • 81
1
vote
1 answer

mupdf cannot display some pdf files

When attempting to open a pdf using mupdf.exe the following error is displayed: Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document. You…
Chris
  • 11
  • 1
1
vote
1 answer

JPEG parameter struct mismatch: library thinks size is 624, caller expects 656

I'm writing a PDF to text solution using OCR in Golang. The libraries I employed are Gosseract and Go-Fitz The program works until I'm trying to load an image from memory with Gosseract: func ProcessDoc(file []byte) (string, error) { var text…
dharmi_kid
  • 19
  • 4
1
vote
0 answers

Read PDF File using MuPDF with Vudroid

How can I read different PDF pages in android with Vudroid? Vudroid only reads only single file at a time and draws the pages, but my requirement is different: I want to read multiple PDF files with first page only.
Rajesh Patil
  • 73
  • 1
  • 11
1
vote
1 answer

Extraction text as csv from scanned pdf file using tesseract

enter image description hereI need help to extract text from scanned pdf. I have tried to extract it using pymupdf and pillow and pytesseract, but I am not getting correct results, there are some text are returned incorrectly. I tried to increase…
Ketan
  • 11
  • 4
1
vote
0 answers

How to detect which library or code depends on a native library (libmupdf.so)

I'm trying to reduce the APK of an android app. I found that there is a native library (libmupdf_java.so) used causes the APK to become larger than the expected size (It added 20MB extra size to the APK please check the attached image). The project…
MohamedHarmoush
  • 1,033
  • 11
  • 17
1
vote
1 answer

A PDF with different outputs in different PDF viewers (with shades)

Consider the following PostScript file [1 0 0.5 0.866 150 550] concat << /ShadingType 2 /Coords [ 0 0 100 100] /BBox [ 0 0 100 100] /ColorSpace [ /DeviceRGB ] /Function << /FunctionType 0 /Domain [0 1]…
F. Pantigny
  • 268
  • 1
  • 8
1
vote
1 answer

Could not build Objective-C module 'mupdfdk'

I'm trying to add mupdf framework to a swift project. I created a new project and copied the mupdfdk.framework to my project and referenced it in the frameworks section. Following is a screenshot of the documentation. Now my project looks like…
Lak
  • 381
  • 1
  • 5
  • 23
1
vote
0 answers

Pod Install fails when installing MuPDF

I'm developing a pdf viewer app and I'm using MuPdf library cocoapods. I created a new project, added a pod file and ran pod install. Following error occurred. Any help is appreciated to fix this. I have set automatically manage signing in the…
Lak
  • 381
  • 1
  • 5
  • 23
1
vote
0 answers

MuPDF - Make Similer fuction as given to make array of sentances from text ( C Language)

I am working on ndk lib which is developed in the C language. I want to add a feature to it. for that, I required one simple function which is similar to the bellow function(it's already in lib). bellow function is work for search words from given…
Ahmed
  • 98
  • 2
  • 10
1
vote
1 answer

mupdf: android library: How to invert the colors or change to night mode

If anyone using mupdf library for android know how to invert the background. I want to add a button to the ui
Santhosh
  • 9,965
  • 20
  • 103
  • 243
1
vote
1 answer

mutool / mulib edit text (with a c programm)

currently, I'm trying to write a program (in C), which would allow me to search/replace text of pdfs. I already can search for the string and edit the string itself, but somehow I cannot find a way to really edit the object of the document. Does…
atticus
  • 138
  • 15