mupdf

Pod Install fails when installing MuPDF

喜夏-厌秋 提交于 2021-01-29 20:50:51
问题 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 project. Analyzing dependencies Downloading dependencies Installing MuPDF (1.10) [!] /bin/bash -c set -e cd platform/ios # release armv7 + arm64 xcodebuild -scheme MuPDF -configuration Release CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO # debug 64bit

ModuleNotFoundError: No module named 'frontend'

那年仲夏 提交于 2020-05-15 04:18:07
问题 I have installed PymuPDF/fitz but upon running the sample code below, I am trying to extract images from PDF files doc = fitz.open(pdf_path) for i in range(len(doc)): for img in doc.getPageImageList(i): xref = img[0] pix = fitz.Pixmap(doc, xref) if pix.n < 5: # this is GRAY or RGB pix.writePNG("p%s-%s.png" % (i, xref)) else: # CMYK: convert to RGB first pix1 = fitz.Pixmap(fitz.csRGB, pix) pix1.writePNG("p%s-%s.png" % (i, xref)) pix1 = None pix = None it gives me following error, i have

ModuleNotFoundError: No module named 'frontend'

天大地大妈咪最大 提交于 2020-05-15 04:14:07
问题 I have installed PymuPDF/fitz but upon running the sample code below, I am trying to extract images from PDF files doc = fitz.open(pdf_path) for i in range(len(doc)): for img in doc.getPageImageList(i): xref = img[0] pix = fitz.Pixmap(doc, xref) if pix.n < 5: # this is GRAY or RGB pix.writePNG("p%s-%s.png" % (i, xref)) else: # CMYK: convert to RGB first pix1 = fitz.Pixmap(fitz.csRGB, pix) pix1.writePNG("p%s-%s.png" % (i, xref)) pix1 = None pix = None it gives me following error, i have

在Qt中调用Mupdf库进行pdf显示

随声附和 提交于 2020-01-09 06:16:20
2018.5.10 更新内存对齐说明 感谢知乎网友 @ 孤独子狮 指出QImage处需要考虑内存对齐的问题。因为本人缺乏跨平台、图形库开发经验,所以在调试成功后就没有深入探究。 主要修改了QImage的构造方式,使用了指定 bytesPerLine的构造函数,具体原因参见 孤独子狮的回答 - 知乎 https://www.zhihu.com/question/38594052/answer/387891545 前言 最近有个pdf的需求,Qt竟然没有显示pdf的api,着实令人郁闷。之后我尝试用了poppler,但是光配置编译工程就相当麻烦了,没有cmake等开源项目编译经验的人完全一脸懵逼。PDFium也是同理(手头上没有vpn也无法尝试)。感觉Mupdf编译器起来比较简单,所以就来用了一下。不过这个库有个缺点就是编译出来的文件太大了。 本人使用的版本是Mupdf1.12.0+Qt5.9.3+vs2015 下载Mupdf库 https://mupdf.com/downloads/ 编译Mupdf 在mupdf-1.12.0-source\platform\win32目录下就有现成的mupdf.sln。 这里需要注意:这个工程默认使用的是/MT,而Qt MSVC默认用的是/MD,所以需要修改编译工程设置。我们这里只需要在编译工程中修改就可以了。

Unsatisfied Link Error: dlopen failed: cannot locate symbol “atof”? [duplicate]

柔情痞子 提交于 2020-01-07 07:43:21
问题 This question already has an answer here : Android mupdf java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “atof” (1 answer) Closed 3 years ago . I am trying to implement the mupdf library to render pdf documents in my app.My app crashes with the following error log:- java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "atof" referenced by "libmupdf_java.so"... at java.lang.Runtime.loadLibrary(Runtime.java:364) at java.lang.System.loadLibrary(System.java:526)

MUPDF UnsupportedOperationException when open the pdf

本小妞迷上赌 提交于 2020-01-02 05:19:06
问题 I am using MUPDF for an android project, but there is an issue by some android users. I got report as following: java.lang.UnsupportedOperationException: Not supported E/AndroidRuntime( 4677): at com.odilogy.mupdf.ReaderView.getSelectedView(ReaderView.java:664) E/AndroidRuntime( 4677): at android.widget.AdapterView.onInitializeAccessibilityEvent(AdapterView.java:951) E/AndroidRuntime( 4677): at android.widget.AdapterView.onRequestSendAccessibilityEvent(AdapterView.java:926) E/AndroidRuntime(

Android PDF Rendering

烈酒焚心 提交于 2020-01-02 03:11:21
问题 I would like to render/open PDF file (stored in SDCard) in Android without using in-build application or viewer. 1) We have tried MuPDF open source library but rendering using this library is very slow. 2) Can we use iText library for rendering PDF files in Android (i.e. iText as a PDF Viewer). Is there any other PDF library(open source) that can be used in Android Or suggest basic guideline for developing PDF viewer for Android. 回答1: I've done some research in this field recently, I've tried

Include .so library to android ndk project

Deadly 提交于 2019-12-24 20:56:28
问题 I'm beginning with android NDK. I have to compile a native library for the 1.6 sdk (mupdf) but it requires the ljnigraphics lib (which was added lately on 2.2). I'm trying to include the compiled library to my android project but I can't figure out how to do it. 1. Is it the best way to do this ? 2. If yes how should I proceed ? Any tutorial or information to start will be appreciated. 3. If not do you know any pdf library i could use on android 1.6 ? Here is my Android.mk file : LOCAL_PATH :

How to view pdf from assets or raw folder?

六月ゝ 毕业季﹏ 提交于 2019-12-24 07:07:02
问题 I am using the MuPDF library to display pdf in my app.. It is possible to view PDFs saved in internal or external memories but the App doesn't show the pdf if they are stored in assets folder of the app... How to view in app PDFs? I've seen solutions which say thatbwe can copy our in app PDFs in app associated folder and then use them later on... but I can't get that.. here's the code - public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) {

How to save annotation on password protected pdf using MuPDF

血红的双手。 提交于 2019-12-23 14:24:11
问题 I am trying to save annotation for password protected pdf. I am able to draw annotation and save it. But as soon as I go back and come again in activity I cannot see my annotation. However strange thing is I can see annotation box there but not the drawn path. It works fine with normal pdf(without password pdf). Any idea how can I save annotation for password protected pdf? Below is the code I am using : private MuPDFCore core; private MuPDFReaderView mDocView; /** * Save's changes to the pdf