mupdf

Android Oreo 8.0 Native C++ crash , but works fine for Android 7

牧云@^-^@ 提交于 2019-12-11 17:17:54
问题 I am working on an app (pdf viewer) using muPdf library , it's working fine for Android 7 (pdf pages and previews are shown without problems) , but it keeps crashing when i test it on emulator or real device with Android 8. 2019-01-22 09:57:58.178 13878-13980/com.niveales.wind A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0xa5353a50 in tid 13980 (AsyncTask #5), pid 13878 (m.niveales.wind) 2019-01-22 09:57:58.418 13983-13983/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** **

How do I use MUpdf in an existing java project

耗尽温柔 提交于 2019-12-11 05:55:37
问题 Mupdf documentation shows me how to use the library as an application and deploy it. However, I want to suck it into an existing java project and build my application on top of it. Can this be done? If so, how do I bring just the pieces needed, into my project? 回答1: Take a look at jMuPdf. I never used it, but it seems to be active. Otherwise you will need to create Java Native Bindings (JNA or JNI). 来源: https://stackoverflow.com/questions/14445234/how-do-i-use-mupdf-in-an-existing-java

mupdf: how to open pdf file with openBuffer method?

我怕爱的太早我们不能终老 提交于 2019-12-10 15:39:57
问题 Unfortunatelly, I haven't found any documentation on this point, so maybe I do something wrong. I use mupdf sample for android and I have slightly modified the source code of MuPDFActivity this way: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mAlertBuilder = new AlertDialog.Builder(this); if (core == null) { core = (MuPDFCore)getLastNonConfigurationInstance(); if (savedInstanceState != null && savedInstanceState.containsKey("FileName")) { mFileName =

PDF to bitmap image conversoin using mupdf n android

淺唱寂寞╮ 提交于 2019-12-10 14:31:39
问题 I'm using mupdf library in my android application to view the pdf files. Can anyone tell me how to get the bitmap images of each page of a pdf using mupdf library? Thanks in advance.... 回答1: use function in MUPDFcore.class ,it is called drawPage(int page, int PDF width,int PDF height, 0,0,int bitmap width,int bitmap height) This function return bitmap image. 1st parameter is the page that will be rendered. The 2nd and 3rd parameter are the size of PDF. The 4th and 5th parameter are the

mupdf and freetype: why are fonts blurred?

对着背影说爱祢 提交于 2019-12-08 14:46:14
问题 I would like to know if it is mupdf's or freetype2's fault if the font is blurred (even with antialiasing). This is using the pdfdraw utility on Windows. 回答1: As I mentioned in my other answer, the glyph description is composed of lines and curves. The problem is these lines and curves cannot ensure high fidelity glyph rendering at small sizes because there is not much space to represent the glyph. In this situation a technique called font hinting is used to render readable glyphs. TrueType

Compile MUPDF 1.7a for android

我们两清 提交于 2019-12-08 06:54:41
问题 I'm trying to compile mupdf 1.7a source to get mupdflib.so for android platform. I followed the steps in documentation but I got this error: mupdf/pdf/name-table.h : No such file or directory Could anyone help me how to get this file ? 回答1: RTFM?? Item 10 in the ReadMe.txt explains: ===================================================================== Finally, you will need a copy of a 'generated' directory. This is not currently available to download. The normal mupdf build process involves

How to swipe pdf pages horizontally in android using MuPDF library

只愿长相守 提交于 2019-12-06 13:47:12
问题 I have built mupdf from source following these steps http://www.mupdf.com/docs/how-to-build-mupdf-for-android. I have integrated it in my app and it is working fine. But in that page is scroll vertically but i want to scroll horizontally. Please help me is it possible or not And if possible give me hint or if any other solution Thanks. 回答1: You can use the MuPDFPageView instead of the MuPDFReaderView and manage the horizontal scroll manually. 回答2: in ReaderView.class from android mupdf

How to extract embedded files from pdf using MuPDF

谁说胖子不能爱 提交于 2019-12-06 10:48:56
My app on iOS extracts embedded files from PDF. Now, i try to make Android app with same functionality using MuPDF . On iOS, I can use Quartz2d to extract embedded files: Access to root PDF dictionary ( CGPDFDocumentGetCatalog ) Get files array (Names > EmbeddedFiles > Names) and itarate through it Copy file stream contents from file dictionary (EF > F) to NSData and save it. Is there any way to do this with MuPDF? Solution, based on pdfextact.c seems like bruteforce, but it works: itarate through all pdf objects ( pdf_load_object ) determine if object is embedded file ( isembed ) if it is -

export mupdf and android studio 0.5.4

試著忘記壹切 提交于 2019-12-05 14:15:44
First: I want to view pdf files in my android app. I googled and analyzed and decided to use mupdf For a start I use this guide to build demo project and it's work fine in eclipse. But I need to run it in Android studio. I try to export from eclipse as gradle project and import to Android Studio. File explorer work, but when I opened pdf I get error: java.lang.ExceptionInInitializerError at com.artifex.mupdfdemo.MuPDFActivity.openFile(MuPDFActivity.java:213) at com.artifex.mupdfdemo.MuPDFActivity.onCreate(MuPDFActivity.java:309) at android.app.Activity.performCreate(Activity.java:5008) ...

MUPDF UnsupportedOperationException when open the pdf

╄→гoц情女王★ 提交于 2019-12-05 12:44:03
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( 4677): at android.view.ViewGroup.requestSendAccessibilityEvent(ViewGroup.java:704) E/AndroidRuntime(