From 541e508acf47bcb2cc2575a15c93e5f96cf15a9c Mon Sep 17 00:00:00 2001 From: right-hearted Date: Sun, 23 Mar 2014 15:47:03 +0000 Subject: [PATCH] Removed unnecessary folders git-svn-id: svn://kolibrios.org@4684 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../media/updf/android/AndroidManifest.xml | 23 - contrib/media/updf/android/ReadMe.txt | 111 ---- contrib/media/updf/android/build.properties | 17 - contrib/media/updf/android/build.sh | 1 - contrib/media/updf/android/build.xml | 84 --- contrib/media/updf/android/default.properties | 11 - contrib/media/updf/android/jni/Android.mk | 22 - contrib/media/updf/android/jni/Application.mk | 3 - contrib/media/updf/android/jni/Core.mk | 99 --- contrib/media/updf/android/jni/ThirdParty.mk | 153 ----- contrib/media/updf/android/jni/mupdf.c | 212 ------- contrib/media/updf/android/local.properties | 2 - .../updf/android/res/drawable-hdpi/icon.png | Bin 2945 -> 0 bytes .../updf/android/res/drawable-ldpi/icon.png | Bin 1456 -> 0 bytes .../updf/android/res/drawable-mdpi/icon.png | Bin 1916 -> 0 bytes .../media/updf/android/res/layout/main.xml | 8 - .../media/updf/android/res/values/strings.xml | 4 - .../media/updf/android/res/values/theme.xml | 7 - .../src/com/artifex/mupdf/MuPDFActivity.java | 162 ----- .../src/com/artifex/mupdf/MuPDFCore.java | 54 -- .../src/com/artifex/mupdf/PixmapView.java | 579 ------------------ contrib/media/updf/debian/changelog | 14 - contrib/media/updf/debian/compat | 1 - contrib/media/updf/debian/control | 39 -- contrib/media/updf/debian/copyright | 63 -- contrib/media/updf/debian/dirs | 3 - .../media/updf/debian/libmupdf-dev.install | 4 - contrib/media/updf/debian/mupdf-tools.docs | 1 - contrib/media/updf/debian/mupdf-tools.install | 3 - .../media/updf/debian/mupdf-tools.manpages | 3 - contrib/media/updf/debian/mupdf.applications | 7 - contrib/media/updf/debian/mupdf.desktop | 15 - contrib/media/updf/debian/mupdf.docs | 1 - contrib/media/updf/debian/mupdf.install | 5 - contrib/media/updf/debian/mupdf.manpages | 1 - contrib/media/updf/debian/mupdf.menu | 8 - contrib/media/updf/debian/mupdf.mime | 2 - contrib/media/updf/debian/mupdf.pc | 12 - contrib/media/updf/debian/mupdf.png | Bin 2885 -> 0 bytes contrib/media/updf/debian/mupdf.xpm | 39 -- contrib/media/updf/debian/rules | 49 -- contrib/media/updf/win32/README.txt | 1 - contrib/media/updf/win32/generate.bat | 35 -- contrib/media/updf/win32/libmupdf.vcproj | 541 ---------------- contrib/media/updf/win32/libthirdparty.vcproj | 547 ----------------- contrib/media/updf/win32/mupdf.sln | 86 --- contrib/media/updf/win32/mupdf.vcproj | 177 ------ contrib/media/updf/win32/pdfclean.vcproj | 168 ----- contrib/media/updf/win32/pdfdraw.vcproj | 168 ----- contrib/media/updf/win32/pdfextract.vcproj | 168 ----- contrib/media/updf/win32/pdfshow.vcproj | 168 ----- contrib/media/updf/win32/xpsdraw.vcproj | 171 ------ 52 files changed, 4052 deletions(-) delete mode 100644 contrib/media/updf/android/AndroidManifest.xml delete mode 100644 contrib/media/updf/android/ReadMe.txt delete mode 100644 contrib/media/updf/android/build.properties delete mode 100644 contrib/media/updf/android/build.sh delete mode 100644 contrib/media/updf/android/build.xml delete mode 100644 contrib/media/updf/android/default.properties delete mode 100644 contrib/media/updf/android/jni/Android.mk delete mode 100644 contrib/media/updf/android/jni/Application.mk delete mode 100644 contrib/media/updf/android/jni/Core.mk delete mode 100644 contrib/media/updf/android/jni/ThirdParty.mk delete mode 100644 contrib/media/updf/android/jni/mupdf.c delete mode 100644 contrib/media/updf/android/local.properties delete mode 100644 contrib/media/updf/android/res/drawable-hdpi/icon.png delete mode 100644 contrib/media/updf/android/res/drawable-ldpi/icon.png delete mode 100644 contrib/media/updf/android/res/drawable-mdpi/icon.png delete mode 100644 contrib/media/updf/android/res/layout/main.xml delete mode 100644 contrib/media/updf/android/res/values/strings.xml delete mode 100644 contrib/media/updf/android/res/values/theme.xml delete mode 100644 contrib/media/updf/android/src/com/artifex/mupdf/MuPDFActivity.java delete mode 100644 contrib/media/updf/android/src/com/artifex/mupdf/MuPDFCore.java delete mode 100644 contrib/media/updf/android/src/com/artifex/mupdf/PixmapView.java delete mode 100644 contrib/media/updf/debian/changelog delete mode 100644 contrib/media/updf/debian/compat delete mode 100644 contrib/media/updf/debian/control delete mode 100644 contrib/media/updf/debian/copyright delete mode 100644 contrib/media/updf/debian/dirs delete mode 100644 contrib/media/updf/debian/libmupdf-dev.install delete mode 100644 contrib/media/updf/debian/mupdf-tools.docs delete mode 100644 contrib/media/updf/debian/mupdf-tools.install delete mode 100644 contrib/media/updf/debian/mupdf-tools.manpages delete mode 100644 contrib/media/updf/debian/mupdf.applications delete mode 100644 contrib/media/updf/debian/mupdf.desktop delete mode 100644 contrib/media/updf/debian/mupdf.docs delete mode 100644 contrib/media/updf/debian/mupdf.install delete mode 100644 contrib/media/updf/debian/mupdf.manpages delete mode 100644 contrib/media/updf/debian/mupdf.menu delete mode 100644 contrib/media/updf/debian/mupdf.mime delete mode 100644 contrib/media/updf/debian/mupdf.pc delete mode 100644 contrib/media/updf/debian/mupdf.png delete mode 100644 contrib/media/updf/debian/mupdf.xpm delete mode 100755 contrib/media/updf/debian/rules delete mode 100644 contrib/media/updf/win32/README.txt delete mode 100644 contrib/media/updf/win32/generate.bat delete mode 100644 contrib/media/updf/win32/libmupdf.vcproj delete mode 100644 contrib/media/updf/win32/libthirdparty.vcproj delete mode 100644 contrib/media/updf/win32/mupdf.sln delete mode 100644 contrib/media/updf/win32/mupdf.vcproj delete mode 100644 contrib/media/updf/win32/pdfclean.vcproj delete mode 100644 contrib/media/updf/win32/pdfdraw.vcproj delete mode 100644 contrib/media/updf/win32/pdfextract.vcproj delete mode 100644 contrib/media/updf/win32/pdfshow.vcproj delete mode 100644 contrib/media/updf/win32/xpsdraw.vcproj diff --git a/contrib/media/updf/android/AndroidManifest.xml b/contrib/media/updf/android/AndroidManifest.xml deleted file mode 100644 index 1bea0f8a71..0000000000 --- a/contrib/media/updf/android/AndroidManifest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - diff --git a/contrib/media/updf/android/ReadMe.txt b/contrib/media/updf/android/ReadMe.txt deleted file mode 100644 index c46c88b6b4..0000000000 --- a/contrib/media/updf/android/ReadMe.txt +++ /dev/null @@ -1,111 +0,0 @@ -To build/debug android build. - -1) Download the android sdk, and install it. On windows I unpacked it as: - - C:\Program Files\android-sdk-windows - -on Macos as: - - /Library/android-sdk-mac_x86 - -On windows add: C:/Progra~1/android-sdk-windows/tools to your path. -On linux/macos add the equivalent. - -2) Download the android ndk, and install in. On windows I unpacked it as: - - C:\Program Files\android-ndk-r5 - -on Macos as: - - /Library/android-ndk-r5 - -On windows add: C:/Progra~1/android-ndk-r5 to your path. On linux/macos -add the equivalent. - -3) On windows, to use the ndk, you *must* be running under cygwin. This means -you need to install Cygwin 1.7 or greater now. - -In the current release of the ndk (r5), when running under cygwin, there are -bugs to do with the automatic conversion of dependencies from DOS format -paths to cygwin format paths. The 2 fixes can be found in: - - - -4) Bring up a shell, and run 'android'. This will bring up a graphical -gui for the sdk. From here you can install the different SDK components -for the different flavours of android. Download them all - bandwidth and disk -space are cheap, right? - -5) Now go to the Virtual Devices entry on the right hand side. You need to -create yourself an emulator image to use. Click 'New...' on the right hand -side and a window will appear. Fill in the entries as follows: - - Name: FroyoEm - Target: Android 2.2 - API Level 8 - SD card: Size: 1024MiB - Skin: Resolution: 480x756 (756 just fits my macbook screen, but 800 may - be 'more standard') - -Click 'Create AVD' and wait for a minute or so while it is prepared. Now -you can exit the GUI. - -6) Now we are ready to build mupdf for Android. Check out a copy of MuPDF -(but you've done that already, cos you're reading this, right?). - -7) You will also need a copy of mupdf-thirdparty.zip (see the source code -link on http://mupdf.com/). Unpack the contents of this into a 'thirdparty' -directory created within the mupdf directory (i.e. at the same level as -fitz, pdf, android etc). - -8) Finally, you will need a copy of a 'generated' directory. This is not -currently available to download. The easiest way to obtain this is to do -a standard windows or linux build of mupdf, which generates the required -files as part of the build process. - -9) Change into the android directory, and edit local.properties into your -favourite editor. Change the sdk path there as appropriate. This should be -the only bit of localisation you need to do. - -10) Change into the android directory (note, the android directory, NOT -the android/jni directory!), and execute (in a Cygwin window on Windows!): - - ndk-build - -This should build the native code portion. Then execute: - - ant debug - -or on windows under cygwin: - - ant.bat debug - -This should build the java wrapper. - -11) Now start the emulator by executing: - - emulator -avd FroyoEm - -This will take a while to full start up (be patient). - -12) We now need to give the demo file something to chew on, so let's copy -a file into the SD card image of the emulator (this should only need to be -done once). With the emulator running type: - - adb push ../../MyTests/pdf_reference17.pdf /mnt/sdcard/Download/test.pdf - -(where obviously ../../MyTests/pdf_reference17.pdf is altered for your -machine). (adb lives in /platform-tools if it's not on your path). - -13) With the emulator running (see step 11), execute - - ant install - -('ant.bat install' on Windows) and that will copy MuPDF into the emulator -where you can run it from the launchpad screen. - -14) To see debug messages from the emulator (including stdout/stderr from -our app), execute: - - adb logcat - -Good luck! diff --git a/contrib/media/updf/android/build.properties b/contrib/media/updf/android/build.properties deleted file mode 100644 index edc7f23050..0000000000 --- a/contrib/media/updf/android/build.properties +++ /dev/null @@ -1,17 +0,0 @@ -# This file is used to override default values used by the Ant build system. -# -# This file must be checked in Version Control Systems, as it is -# integral to the build system of your project. - -# This file is only used by the Ant script. - -# You can use this to override default values such as -# 'source.dir' for the location of your java source folder and -# 'out.dir' for the location of your output folder. - -# You can also use it define how the release builds are signed by declaring -# the following properties: -# 'key.store' for the location of your keystore and -# 'key.alias' for the name of the key to use. -# The password will be asked during the build when you use the 'release' target. - diff --git a/contrib/media/updf/android/build.sh b/contrib/media/updf/android/build.sh deleted file mode 100644 index 36ad883f44..0000000000 --- a/contrib/media/updf/android/build.sh +++ /dev/null @@ -1 +0,0 @@ -ndk-build && ant.bat install diff --git a/contrib/media/updf/android/build.xml b/contrib/media/updf/android/build.xml deleted file mode 100644 index 3ba2015be4..0000000000 --- a/contrib/media/updf/android/build.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/android/default.properties b/contrib/media/updf/android/default.properties deleted file mode 100644 index 0b9250e021..0000000000 --- a/contrib/media/updf/android/default.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-8 diff --git a/contrib/media/updf/android/jni/Android.mk b/contrib/media/updf/android/jni/Android.mk deleted file mode 100644 index 2e84204e76..0000000000 --- a/contrib/media/updf/android/jni/Android.mk +++ /dev/null @@ -1,22 +0,0 @@ -LOCAL_PATH := $(call my-dir) -TOP_LOCAL_PATH := $(LOCAL_PATH) - -MUPDF_ROOT := .. - -include $(TOP_LOCAL_PATH)/Core.mk -include $(TOP_LOCAL_PATH)/ThirdParty.mk - -include $(CLEAR_VARS) - -LOCAL_C_INCLUDES := \ - $(MUPDF_ROOT)/draw \ - $(MUPDF_ROOT)/fitz \ - $(MUPDF_ROOT)/pdf -LOCAL_CFLAGS := -LOCAL_MODULE := mupdf -LOCAL_SRC_FILES := mupdf.c -LOCAL_STATIC_LIBRARIES := mupdfcore mupdfthirdparty - -LOCAL_LDLIBS := -lm -llog -ljnigraphics - -include $(BUILD_SHARED_LIBRARY) diff --git a/contrib/media/updf/android/jni/Application.mk b/contrib/media/updf/android/jni/Application.mk deleted file mode 100644 index 16de579678..0000000000 --- a/contrib/media/updf/android/jni/Application.mk +++ /dev/null @@ -1,3 +0,0 @@ -# The ARMv7 is significanly faster due to the use of the hardware FPU -APP_ABI := armeabi armeabi-v7a -APP_OPTIM := debug diff --git a/contrib/media/updf/android/jni/Core.mk b/contrib/media/updf/android/jni/Core.mk deleted file mode 100644 index 4c3e75b51a..0000000000 --- a/contrib/media/updf/android/jni/Core.mk +++ /dev/null @@ -1,99 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -MY_ROOT := ../.. - -LOCAL_C_INCLUDES := \ - ../thirdparty/jbig2dec \ - ../thirdparty/openjpeg-1.4/libopenjpeg \ - ../thirdparty/jpeg-8c \ - ../thirdparty/zlib-1.2.5 \ - ../thirdparty/freetype-2.4.4/include \ - ../draw \ - ../fitz \ - ../pdf \ - ../scripts \ - .. - -LOCAL_MODULE := mupdfcore -LOCAL_SRC_FILES := \ - $(MY_ROOT)/fitz/base_error.c \ - $(MY_ROOT)/fitz/base_geometry.c \ - $(MY_ROOT)/fitz/base_getopt.c \ - $(MY_ROOT)/fitz/base_hash.c \ - $(MY_ROOT)/fitz/base_memory.c \ - $(MY_ROOT)/fitz/base_object.c \ - $(MY_ROOT)/fitz/base_string.c \ - $(MY_ROOT)/fitz/base_time.c \ - $(MY_ROOT)/fitz/crypt_aes.c \ - $(MY_ROOT)/fitz/crypt_arc4.c \ - $(MY_ROOT)/fitz/crypt_md5.c \ - $(MY_ROOT)/fitz/crypt_sha2.c \ - $(MY_ROOT)/fitz/dev_bbox.c \ - $(MY_ROOT)/fitz/dev_list.c \ - $(MY_ROOT)/fitz/dev_null.c \ - $(MY_ROOT)/fitz/dev_text.c \ - $(MY_ROOT)/fitz/dev_trace.c \ - $(MY_ROOT)/fitz/filt_basic.c \ - $(MY_ROOT)/fitz/filt_dctd.c \ - $(MY_ROOT)/fitz/filt_faxd.c \ - $(MY_ROOT)/fitz/filt_flate.c \ - $(MY_ROOT)/fitz/filt_jbig2d.c \ - $(MY_ROOT)/fitz/filt_jpxd.c \ - $(MY_ROOT)/fitz/filt_lzwd.c \ - $(MY_ROOT)/fitz/filt_predict.c \ - $(MY_ROOT)/fitz/obj_print.c \ - $(MY_ROOT)/fitz/res_colorspace.c \ - $(MY_ROOT)/fitz/res_font.c \ - $(MY_ROOT)/fitz/res_path.c \ - $(MY_ROOT)/fitz/res_pixmap.c \ - $(MY_ROOT)/fitz/res_shade.c \ - $(MY_ROOT)/fitz/res_text.c \ - $(MY_ROOT)/fitz/stm_buffer.c \ - $(MY_ROOT)/fitz/stm_open.c \ - $(MY_ROOT)/fitz/stm_read.c \ - $(MY_ROOT)/draw/arch_arm.c \ - $(MY_ROOT)/draw/arch_port.c \ - $(MY_ROOT)/draw/draw_affine.c \ - $(MY_ROOT)/draw/draw_blend.c \ - $(MY_ROOT)/draw/draw_device.c \ - $(MY_ROOT)/draw/draw_edge.c \ - $(MY_ROOT)/draw/draw_glyph.c \ - $(MY_ROOT)/draw/draw_mesh.c \ - $(MY_ROOT)/draw/draw_paint.c \ - $(MY_ROOT)/draw/draw_path.c \ - $(MY_ROOT)/draw/draw_scale.c \ - $(MY_ROOT)/draw/draw_unpack.c \ - $(MY_ROOT)/pdf/pdf_annot.c \ - $(MY_ROOT)/pdf/pdf_cmap.c \ - $(MY_ROOT)/pdf/pdf_cmap_load.c \ - $(MY_ROOT)/pdf/pdf_cmap_parse.c \ - $(MY_ROOT)/pdf/pdf_cmap_table.c \ - $(MY_ROOT)/pdf/pdf_colorspace.c \ - $(MY_ROOT)/pdf/pdf_crypt.c \ - $(MY_ROOT)/pdf/pdf_encoding.c \ - $(MY_ROOT)/pdf/pdf_font.c \ - $(MY_ROOT)/pdf/pdf_fontfile.c \ - $(MY_ROOT)/pdf/pdf_function.c \ - $(MY_ROOT)/pdf/pdf_image.c \ - $(MY_ROOT)/pdf/pdf_interpret.c \ - $(MY_ROOT)/pdf/pdf_lex.c \ - $(MY_ROOT)/pdf/pdf_metrics.c \ - $(MY_ROOT)/pdf/pdf_nametree.c \ - $(MY_ROOT)/pdf/pdf_outline.c \ - $(MY_ROOT)/pdf/pdf_page.c \ - $(MY_ROOT)/pdf/pdf_parse.c \ - $(MY_ROOT)/pdf/pdf_pattern.c \ - $(MY_ROOT)/pdf/pdf_repair.c \ - $(MY_ROOT)/pdf/pdf_shade.c \ - $(MY_ROOT)/pdf/pdf_store.c \ - $(MY_ROOT)/pdf/pdf_stream.c \ - $(MY_ROOT)/pdf/pdf_type3.c \ - $(MY_ROOT)/pdf/pdf_unicode.c \ - $(MY_ROOT)/pdf/pdf_xobject.c \ - $(MY_ROOT)/pdf/pdf_xref.c - -LOCAL_LDLIBS := -lm -llog -ljnigraphics - -include $(BUILD_STATIC_LIBRARY) diff --git a/contrib/media/updf/android/jni/ThirdParty.mk b/contrib/media/updf/android/jni/ThirdParty.mk deleted file mode 100644 index 2a50b05fee..0000000000 --- a/contrib/media/updf/android/jni/ThirdParty.mk +++ /dev/null @@ -1,153 +0,0 @@ -LOCAL_PATH := $(call my-dir) - -include $(CLEAR_VARS) - -MY_ROOT := ../.. - -LOCAL_C_INCLUDES := \ - ../thirdparty/jbig2dec \ - ../thirdparty/openjpeg-1.4/libopenjpeg \ - ../thirdparty/jpeg-8c \ - ../thirdparty/zlib-1.2.5 \ - ../thirdparty/freetype-2.4.4/include \ - ../scripts - -LOCAL_CFLAGS := \ - -DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON -DHAVE_STDINT_H - -LOCAL_MODULE := mupdfthirdparty -LOCAL_SRC_FILES := \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_arith.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_arith_int.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_arith_iaid.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_huffman.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_segment.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_page.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_symbol_dict.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_text.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_generic.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_refinement.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_mmr.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_image.c \ - $(MY_ROOT)/thirdparty/jbig2dec/jbig2_metadata.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/bio.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/cio.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/dwt.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/event.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/image.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/j2k.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/j2k_lib.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/jp2.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/jpt.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/mct.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/mqc.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/openjpeg.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/pi.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/raw.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/t1.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/t2.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/tcd.c \ - $(MY_ROOT)/thirdparty/openjpeg-1.4/libopenjpeg/tgt.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jaricom.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcapimin.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcapistd.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcarith.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jccoefct.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jccolor.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcdctmgr.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jchuff.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcinit.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcmainct.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcmarker.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcmaster.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcomapi.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcparam.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcprepct.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jcsample.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jctrans.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdapimin.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdapistd.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdarith.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdatadst.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdatasrc.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdcoefct.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdcolor.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jddctmgr.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdhuff.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdinput.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdmainct.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdmarker.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdmaster.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdmerge.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdpostct.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdsample.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jdtrans.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jerror.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jfdctflt.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jfdctfst.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jfdctint.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jidctflt.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jidctfst.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jidctint.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jquant1.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jquant2.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jutils.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jmemmgr.c \ - $(MY_ROOT)/thirdparty/jpeg-8c/jmemansi.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/adler32.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/compress.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/crc32.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/deflate.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/gzclose.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/gzlib.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/gzread.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/gzwrite.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/infback.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/inffast.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/inflate.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/inftrees.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/trees.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/uncompr.c \ - $(MY_ROOT)/thirdparty/zlib-1.2.5/zutil.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/autofit/autofit.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftbase.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftbbox.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftbdf.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftbitmap.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftdebug.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftgasp.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftglyph.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftgxval.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftinit.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftlcdfil.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftmm.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftotval.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftpfr.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftstroke.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftsynth.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftsystem.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/fttype1.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftwinfnt.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftxf86.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/base/ftpatent.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/bdf/bdf.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/cache/ftcache.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/cff/cff.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/cid/type1cid.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/gzip/ftgzip.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/lzw/ftlzw.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/pcf/pcf.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/pfr/pfr.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/psaux/psaux.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/pshinter/pshinter.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/psnames/psnames.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/raster/raster.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/smooth/smooth.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/sfnt/sfnt.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/truetype/truetype.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/type1/type1.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/type42/type42.c \ - $(MY_ROOT)/thirdparty/freetype-2.4.4/src/winfonts/winfnt.c - -include $(BUILD_STATIC_LIBRARY) diff --git a/contrib/media/updf/android/jni/mupdf.c b/contrib/media/updf/android/jni/mupdf.c deleted file mode 100644 index 463899af1e..0000000000 --- a/contrib/media/updf/android/jni/mupdf.c +++ /dev/null @@ -1,212 +0,0 @@ -#include -#include -#include -#include - -#include -#include -#include - -#include "fitz.h" -#include "mupdf.h" - -#define LOG_TAG "libmupdf" -#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) -#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__) - -/* Set to 1 to enable debug log traces. */ -#define DEBUG 0 - -/* Globals */ -fz_colorspace *colorspace; -fz_glyph_cache *glyphcache; -pdf_xref *xref; -int pagenum = 1; -int resolution = 160; -float pageWidth = 100; -float pageHeight = 100; -fz_display_list *currentPageList; -fz_rect currentMediabox; -int currentRotate; - -JNIEXPORT int JNICALL -Java_com_artifex_mupdf_MuPDFCore_openFile(JNIEnv * env, jobject thiz, jstring jfilename) -{ - const char *filename; - char *password = ""; - int accelerate = 1; - fz_error error; - int pages; - - filename = (*env)->GetStringUTFChars(env, jfilename, NULL); - if (filename == NULL) - { - LOGE("Failed to get filename"); - return 0; - } - - if (accelerate) - fz_accelerate(); - glyphcache = fz_new_glyph_cache(); - colorspace = fz_device_rgb; - - LOGE("Opening document..."); - error = pdf_open_xref(&xref, filename, password); - if (error) - { - LOGE("Cannot open document: '%s'\n", filename); - return 0; - } - - LOGE("Loading page tree..."); - error = pdf_load_page_tree(xref); - if (error) - { - LOGE("Cannot load page tree: '%s'\n", filename); - return 0; - } - pages = pdf_count_pages(xref); - LOGE("Done! %d pages", pages); - - return pages; -} - -JNIEXPORT void JNICALL -Java_com_artifex_mupdf_MuPDFCore_gotoPageInternal(JNIEnv *env, jobject thiz, int page) -{ - float zoom; - fz_matrix ctm; - fz_bbox bbox; - fz_error error; - fz_device *dev; - pdf_page *currentPage; - - /* In the event of an error, ensure we give a non-empty page */ - pageWidth = 100; - pageHeight = 100; - - LOGE("Goto page %d...", page); - if (currentPageList != NULL) - { - fz_free_display_list(currentPageList); - currentPageList = NULL; - } - pagenum = page; - error = pdf_load_page(¤tPage, xref, pagenum); - if (error) - return; - zoom = resolution / 72; - currentMediabox = currentPage->mediabox; - currentRotate = currentPage->rotate; - ctm = fz_translate(0, -currentMediabox.y1); - ctm = fz_concat(ctm, fz_scale(zoom, -zoom)); - ctm = fz_concat(ctm, fz_rotate(currentRotate)); - bbox = fz_round_rect(fz_transform_rect(ctm, currentMediabox)); - pageWidth = bbox.x1-bbox.x0; - pageHeight = bbox.y1-bbox.y0; - /* Render to list */ - currentPageList = fz_new_display_list(); - dev = fz_new_list_device(currentPageList); - error = pdf_run_page(xref, currentPage, dev, fz_identity); - pdf_free_page(currentPage); - if (error) - LOGE("cannot make displaylist from page %d", pagenum); - fz_free_device(dev); -} - -JNIEXPORT float JNICALL -Java_com_artifex_mupdf_MuPDFCore_getPageWidth(JNIEnv *env, jobject thiz) -{ - LOGE("PageWidth=%g", pageWidth); - return pageWidth; -} - -JNIEXPORT float JNICALL -Java_com_artifex_mupdf_MuPDFCore_getPageHeight(JNIEnv *env, jobject thiz) -{ - LOGE("PageHeight=%g", pageHeight); - return pageHeight; -} - -JNIEXPORT jboolean JNICALL -Java_com_artifex_mupdf_MuPDFCore_drawPage(JNIEnv *env, jobject thiz, jobject bitmap, - int pageW, int pageH, int patchX, int patchY, int patchW, int patchH) -{ - AndroidBitmapInfo info; - void *pixels; - int ret; - fz_error error; - fz_device *dev; - float zoom; - fz_matrix ctm; - fz_bbox bbox; - fz_pixmap *pix; - float xscale, yscale; - fz_bbox rect; - - LOGI("In native method\n"); - if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) { - LOGE("AndroidBitmap_getInfo() failed ! error=%d", ret); - return 0; - } - - LOGI("Checking format\n"); - if (info.format != ANDROID_BITMAP_FORMAT_RGBA_8888) { - LOGE("Bitmap format is not RGBA_8888 !"); - return 0; - } - - LOGI("locking pixels\n"); - if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) { - LOGE("AndroidBitmap_lockPixels() failed ! error=%d", ret); - return 0; - } - - /* Call mupdf to render display list to screen */ - LOGE("Rendering page=%dx%d patch=[%d,%d,%d,%d]", - pageW, pageH, patchX, patchY, patchW, patchH); - - rect.x0 = patchX; - rect.y0 = patchY; - rect.x1 = patchX + patchW; - rect.y1 = patchY + patchH; - pix = fz_new_pixmap_with_rect_and_data(colorspace, rect, pixels); - if (currentPageList == NULL) - { - fz_clear_pixmap_with_color(pix, 0xd0); - return 0; - } - fz_clear_pixmap_with_color(pix, 0xff); - - zoom = resolution / 72; - ctm = fz_translate(-currentMediabox.x0, -currentMediabox.y1); - ctm = fz_concat(ctm, fz_scale(zoom, -zoom)); - ctm = fz_concat(ctm, fz_rotate(currentRotate)); - bbox = fz_round_rect(fz_transform_rect(ctm,currentMediabox)); - /* Now, adjust ctm so that it would give the correct page width - * heights. */ - xscale = (float)pageW/(float)(bbox.x1-bbox.x0); - yscale = (float)pageH/(float)(bbox.y1-bbox.y0); - ctm = fz_concat(ctm, fz_scale(xscale, yscale)); - bbox = fz_round_rect(fz_transform_rect(ctm,currentMediabox)); - dev = fz_new_draw_device(glyphcache, pix); - fz_execute_display_list(currentPageList, dev, ctm, bbox); - fz_free_device(dev); - fz_drop_pixmap(pix); - LOGE("Rendered"); - - AndroidBitmap_unlockPixels(env, bitmap); - - return 1; -} - -JNIEXPORT void JNICALL -Java_com_artifex_mupdf_MuPDFCore_destroying(JNIEnv * env, jobject thiz) -{ - fz_free_display_list(currentPageList); - currentPageList = NULL; - pdf_free_xref(xref); - xref = NULL; - fz_free_glyph_cache(glyphcache); - glyphcache = NULL; -} diff --git a/contrib/media/updf/android/local.properties b/contrib/media/updf/android/local.properties deleted file mode 100644 index d0fd99a98f..0000000000 --- a/contrib/media/updf/android/local.properties +++ /dev/null @@ -1,2 +0,0 @@ -#sdk.dir=/Library/android-sdk-mac_x86 -sdk.dir=C:\\Program Files\\android-sdk-windows diff --git a/contrib/media/updf/android/res/drawable-hdpi/icon.png b/contrib/media/updf/android/res/drawable-hdpi/icon.png deleted file mode 100644 index 1d47b235380283734e7661e36184d5ac0f2a49f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2945 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 diff --git a/contrib/media/updf/android/res/drawable-ldpi/icon.png b/contrib/media/updf/android/res/drawable-ldpi/icon.png deleted file mode 100644 index f9fe4d1c856c59427d06a9a03d8d77cbb45dae21..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1456 zcmV;h1yA~kP)2vg}5@aEV|o8bTTjkhWeR%GRV> zlcr)q3^6pRBz*x>lD^P1^r40attKYE7+a!!&_u1NMnZi6)V67ni#C!J6%<7-Q4yA1 z_Ih?t=bv>C3!GiED`>xD_RN{{&-~x~x0wb0XAq){Z(_}`#JWAK{WX7Z0ihi=b=Riz zKinD!Doe^n(g`s4|9$PZACH$uB}8P#^WNX;_RC93CJd8a!pi$M=a3R-$<%g?=Y6p4 zO_3q^13~y#u3ocYP4>2d-kYasENr3D&pQTwSCWlyj7%g1uM4Nk^U7HF59#HYepE2P z;dv{3VAk>c(bJCry2&-L>P}d@Jrc{E(Rb%oGvd|7*u587U~V=rQgI@OeKCIp7XxGtwlq zC)$s%Mn$H8{xxlO1x9``gJ(l_t${Plr;+VJqOvTxr$B_}6G86O{4oKB}=wOT2z zd8?|b;^QRS+uKWHHX@=1wa@2+*XxbKcOe8p`?5*v96NRlhYlS=dU`spUcCyl*^Cn> zPGD+kN|ifv<_w-Zd4kr~Rz4>Tl@Qx$T!ggn@Zm$$)YRbi?c2!D&&Q=pm#}>Kaxm+l zsi|p!{EZtoFf=rzO(w;fr($7cXAK<;$0O3FzzVQ|DSN7IoenLNwXq z3Ej}5#YZ%pJ$n{|gM+-EnVE^=;$qx!$gt=X2x$g2eMmHhD3d5#!Z>o|2qq>bV6)k{Qo2P|2yWOFiRqAe5SN#itNIo_?JFuO z(B0jwzSCMKPoCsWuh(Py_U)*zujhY-$p_@FNN+^yU6d>(o$^PxDgK?JizqyG&(yw(ca#U&6_vlz<~qm+EjP0T)Bdd zjtJ;x& zpdUSY6!+MTkgOIBnw6UBP-Hzw6z9*M=W7ut)2KxQy9uDItPB|$89Xy12~AKjqx0x> zK{rG?He!KF0mT*(BFxOpa1QhnY5NVVEqiT7iGi+>|GXvLvGE@rcjY0WrrS#Z0000< KMNUMnLSTYBqrwpY diff --git a/contrib/media/updf/android/res/drawable-mdpi/icon.png b/contrib/media/updf/android/res/drawable-mdpi/icon.png deleted file mode 100644 index 4bb3e7cd96500680dc7a95b3ea8b93144138cc48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1916 zcmV-?2ZQ*DP)K`+4CN9CmL?a>$47e!1;-+qy8i+XFD7Da*()Z4H z>b<=!7pPJ|ll_tt?s?pEzsK+U&UXs%mP66UTmoz1LnTN*=w_`^ZlX5@QX^wx7fs3h zc!}HPQVpJ5{X?NtIv!PAD(TceFJ;|ZJ?3TJN!3NgteU^OVDlrRZCHgDFiod+RP5fA zZ#3wO;HN~0-`Y1$c*1j=Q<=JGX=>w*N|UYIVt|BBQU%^f;RW=jgrGnIKBh0~``qq(^`;C+(Q($dNu4u?CC=5#s-+@3vq=H9SjgIlRox{n?`DvpmGJC@E& z-e_+5^5yRO`g)&trCCUf7M7i0x69Wo!Gz6bLqS0S4jw$nxt^Pwi*@VP@$ur~Vl*{1 ziECXh7tWnKhugPrMF8#|5aQi)j;oNXvzRf`r((aU-5QdBXdo6v9Ni$%r;|0XPYeXx1H|=1hYpGTkdP1_ zw1T17wHTKS8q5r{BZgJ9d3kx*vu6)if~7sN zpPZb`4=(!7PcO9iI?94A(I(Vel+cBF?*%C-DZH&-y&B7wErZo+_}(jzl-TZDqXVbP--24d1^DV!#%VS-j~vjAnSplI>>hJ+==7Ik8>(Xu~4Z; zyt*4z4sWoYKYyObMR<6)k8EzqRd>)RL|G#yCI))F-e>&j)2CRwb}e#payZXf>A-`V zFq!#clEMHI!)P>O-n@B;jEofJk~>rf)dN{sS-dFoM{8>grzC(8>Jp;X_`Pk~ew-#lxLDcX03CJ#=?>i~qX|`a$N8 z?c2Abva%8-B_;e^kkUcmGG&>}%*-C&r+GRP=&nG*ld^=Qq$E-9K|RO>%$YNXH-f=n zKwDcIuSi>3T9BTe&I>%c3kct*zg1OLxNzZuPjxC)tcLEZ3TAdOVD6`NBn~{;h zg%^aTdZ(hIf;Zs=mcx)2a{?H5v48)5Q8cF`%)0=AE+<4A z0mN-;uYz&o#!)#gTG}UwrLGA!C;*AquLC+$*fo+jDlb@pXcgwXKP@U0!B0UFP~Z}U zUIp>-@mRQUA+JP3L%l!4OJx-}GG43Ie!=o^8spcX{Mg03t7KJW-@nUCz=U+O!;F67 zcKeMxSZ1nb$$(DCdMU}rv-Y<9r; - - - diff --git a/contrib/media/updf/android/res/values/strings.xml b/contrib/media/updf/android/res/values/strings.xml deleted file mode 100644 index ec3f9ae6f6..0000000000 --- a/contrib/media/updf/android/res/values/strings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - MuPDF - diff --git a/contrib/media/updf/android/res/values/theme.xml b/contrib/media/updf/android/res/values/theme.xml deleted file mode 100644 index 68c55644e9..0000000000 --- a/contrib/media/updf/android/res/values/theme.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - diff --git a/contrib/media/updf/android/src/com/artifex/mupdf/MuPDFActivity.java b/contrib/media/updf/android/src/com/artifex/mupdf/MuPDFActivity.java deleted file mode 100644 index d5ba3bd8a3..0000000000 --- a/contrib/media/updf/android/src/com/artifex/mupdf/MuPDFActivity.java +++ /dev/null @@ -1,162 +0,0 @@ -package com.artifex.mupdf; - -import android.app.Activity; -import android.os.Bundle; -import android.os.Environment; -import android.view.*; -import android.view.View.OnClickListener; -import android.widget.*; -import android.widget.LinearLayout.*; -import java.io.File; - -import com.artifex.mupdf.PixmapView; - -public class MuPDFActivity extends Activity -{ - /* The core rendering instance */ - private MuPDFCore core; - - private MuPDFCore openFile() - { - String storageState = Environment.getExternalStorageState(); - File path, file; - MuPDFCore core; - - if (Environment.MEDIA_MOUNTED.equals(storageState)) - { - System.out.println("Media mounted read/write"); - } - else if (Environment.MEDIA_MOUNTED_READ_ONLY.equals(storageState)) - { - System.out.println("Media mounted read only"); - } - else - { - System.out.println("No media at all! Bale!\n"); - return null; - } - path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); - file = new File(path, "test.pdf"); - System.out.println("Trying to open "+file.toString()); - try - { - core = new MuPDFCore(file.toString()); - } - catch (Exception e) - { - System.out.println(e); - return null; - } - return core; - } - - /** Called when the activity is first created. */ - @Override - public void onCreate(Bundle savedInstanceState) - { - PixmapView pixmapView; - - if (core == null) { - core = (MuPDFCore)getLastNonConfigurationInstance(); - } - if (core == null) { - core = openFile(); - } - if (core == null) - { - /* FIXME: Error handling here! */ - return; - } - - pixmapView = new PixmapView(this, core); - super.onCreate(savedInstanceState); - - /* Now create the UI */ - RelativeLayout layout; - LinearLayout bar; - MyButtonHandler bh = new MyButtonHandler(pixmapView); - - bar = new LinearLayout(this); - bar.setOrientation(LinearLayout.HORIZONTAL); - bh.buttonStart = new Button(this); - bh.buttonStart.setText("<<"); - bh.buttonStart.setOnClickListener(bh); - bar.addView(bh.buttonStart); - bh.buttonPrev = new Button(this); - bh.buttonPrev.setText("<"); - bh.buttonPrev.setOnClickListener(bh); - bar.addView(bh.buttonPrev); - bh.buttonNext = new Button(this); - bh.buttonNext.setText(">"); - bh.buttonNext.setOnClickListener(bh); - bar.addView(bh.buttonNext); - bh.buttonEnd = new Button(this); - bh.buttonEnd.setText(">>"); - bh.buttonEnd.setOnClickListener(bh); - bar.addView(bh.buttonEnd); - - layout = new RelativeLayout(this); - layout.setLayoutParams(new RelativeLayout.LayoutParams( - RelativeLayout.LayoutParams.FILL_PARENT, - RelativeLayout.LayoutParams.FILL_PARENT)); - layout.setGravity(Gravity.FILL); - - RelativeLayout.LayoutParams barParams = - new RelativeLayout.LayoutParams( - RelativeLayout.LayoutParams.FILL_PARENT, - RelativeLayout.LayoutParams.WRAP_CONTENT); - barParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); - bar.setId(100); - layout.addView(bar, barParams); - - RelativeLayout.LayoutParams pixmapParams = - new RelativeLayout.LayoutParams( - RelativeLayout.LayoutParams.FILL_PARENT, - RelativeLayout.LayoutParams.FILL_PARENT); - pixmapParams.addRule(RelativeLayout.ABOVE,100); - layout.addView(pixmapView, pixmapParams); - - setContentView(layout); - } - - public Object onRetainNonConfigurationInstance() - { - MuPDFCore mycore = core; - core = null; - return mycore; - } - - public void onDestroy() - { - if (core != null) - core.onDestroy(); - core = null; - super.onDestroy(); - } - - private class MyButtonHandler implements OnClickListener - { - Button buttonStart; - Button buttonPrev; - Button buttonNext; - Button buttonEnd; - PixmapView pixmapView; - - public MyButtonHandler(PixmapView pixmapView) - { - this.pixmapView = pixmapView; - } - - public void onClick(View v) - { - if (v == buttonStart) - pixmapView.changePage(Integer.MIN_VALUE); - else if (v == buttonPrev) - pixmapView.changePage(-1); - else if (v == buttonNext) - pixmapView.changePage(+1); - else if (v == buttonEnd) - pixmapView.changePage(Integer.MAX_VALUE); - } - } -} diff --git a/contrib/media/updf/android/src/com/artifex/mupdf/MuPDFCore.java b/contrib/media/updf/android/src/com/artifex/mupdf/MuPDFCore.java deleted file mode 100644 index 321b4a649c..0000000000 --- a/contrib/media/updf/android/src/com/artifex/mupdf/MuPDFCore.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.artifex.mupdf; -import android.graphics.*; - -public class MuPDFCore -{ - /* load our native library */ - static { - System.loadLibrary("mupdf"); - } - - /* Readable members */ - public int pageNum; - public int numPages; - public float pageWidth; - public float pageHeight; - - /* The native functions */ - private static native int openFile(String filename); - private static native void gotoPageInternal(int localActionPageNum); - private static native float getPageWidth(); - private static native float getPageHeight(); - public static native void drawPage(Bitmap bitmap, - int pageW, int pageH, - int patchX, int patchY, - int patchW, int patchH); - public static native void destroying(); - - public MuPDFCore(String filename) throws Exception - { - numPages = openFile(filename); - if (numPages <= 0) - { - throw new Exception("Failed to open "+filename); - } - pageNum = 0; - } - - /* Shim function */ - public void gotoPage(int page) - { - if (page > numPages-1) - page = numPages-1; - else if (page < 0) - page = 0; - gotoPageInternal(page); - this.pageNum = page; - this.pageWidth = getPageWidth(); - this.pageHeight = getPageHeight(); - } - - public void onDestroy() { - destroying(); - } -} diff --git a/contrib/media/updf/android/src/com/artifex/mupdf/PixmapView.java b/contrib/media/updf/android/src/com/artifex/mupdf/PixmapView.java deleted file mode 100644 index 73e73eda77..0000000000 --- a/contrib/media/updf/android/src/com/artifex/mupdf/PixmapView.java +++ /dev/null @@ -1,579 +0,0 @@ -package com.artifex.mupdf; - -import android.app.*; -import android.os.*; -import android.content.*; -import android.content.res.*; -import android.graphics.*; -import android.util.*; -import android.view.*; -import android.widget.*; -import java.net.*; -import java.io.*; - -public class PixmapView extends SurfaceView implements SurfaceHolder.Callback -{ - private SurfaceHolder holder; - private MuPDFThread thread = null; - private boolean threadStarted = false; - private MuPDFCore core; - - /* Constructor */ - public PixmapView(Context context, MuPDFCore core) - { - super(context); - System.out.println("PixmapView construct"); - this.core = core; - holder = getHolder(); - holder.addCallback(this); - thread = new MuPDFThread(holder, core); - setFocusable(true); // need to get the key events - } - - /* load our native library */ - static { - System.loadLibrary("mupdf"); - } - - /* Handlers for keys - so we can actually do stuff */ - @Override - public boolean onKeyDown(int keyCode, KeyEvent event) - { - if (thread.onKeyDown(keyCode, event)) - return true; - return super.onKeyDown(keyCode, event); - } - - @Override - public boolean onKeyUp(int keyCode, KeyEvent event) - { - if (thread.onKeyUp(keyCode, event)) - return true; - return super.onKeyUp(keyCode, event); - } - - @Override - public boolean onTouchEvent(MotionEvent event) - { - if (thread.onTouchEvent(event)) - return true; - return super.onTouchEvent(event); - } - - public void changePage(int delta) - { - thread.changePage(delta); - } - - /* Handlers for SurfaceHolder callbacks; these are called when the - * surface is created/destroyed/changed. We need to ensure that we only - * draw into the surface between the created and destroyed calls. - * Therefore, we start/stop the thread that actually runs MuPDF on - * creation/destruction. */ - public void surfaceCreated(SurfaceHolder holder) - { - } - - public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) - { - thread.newScreenSize(width, height); - if (!threadStarted) - { - threadStarted = true; - thread.setRunning(true); - thread.start(); - } - } - - public void surfaceDestroyed(SurfaceHolder holder) - { - boolean retry = true; - System.out.println("Surface destroyed 1 this="+this); - thread.setRunning(false); - System.out.println("Surface destroyed 2"); - while (retry) - { - try - { - thread.join(); - retry = false; - } - catch (InterruptedException e) - { - } - } - threadStarted = false; - System.out.println("Surface destroyed 3"); - } - - class MuPDFThread extends Thread - { - private SurfaceHolder holder; - private boolean running = false; - private int keycode = -1; - private int screenWidth; - private int screenHeight; - private int screenGeneration; - private Bitmap bitmap; - private MuPDFCore core; - - /* The following variables deal with the size of the current page; - * specifically, its position on the screen, its raw size, its - * current scale, and its current scaled size (in terms of whole - * pixels). - */ - private int pageOriginX; - private int pageOriginY; - private float pageScale; - private int pageWidth; - private int pageHeight; - - /* The following variables deal with the multitouch handling */ - private final int NONE = 0; - private final int DRAG = 1; - private final int ZOOM = 2; - private int touchMode = NONE; - private float touchInitialSpacing; - private float touchDragStartX; - private float touchDragStartY; - private float touchInitialOriginX; - private float touchInitialOriginY; - private float touchInitialScale; - private PointF touchZoomMidpoint; - - /* The following control the inner loop; other events etc cause - * action to be set. The inner loop runs around a tight loop - * performing the action requested of it. - */ - private boolean wakeMe = false; - private int action; - private final int SLEEP = 0; - private final int REDRAW = 1; - private final int DIE = 2; - private final int GOTOPAGE = 3; - private int actionPageNum; - - /* Members for blitting, declared here to avoid causing gcs */ - private Rect srcRect; - private RectF dstRect; - - public MuPDFThread(SurfaceHolder holder, MuPDFCore core) - { - this.holder = holder; - this.core = core; - touchZoomMidpoint = new PointF(0,0); - srcRect = new Rect(0,0,0,0); - dstRect = new RectF(0,0,0,0); - } - - public void setRunning(boolean running) - { - this.running = running; - if (!running) - { - System.out.println("killing 1"); - synchronized(this) - { - System.out.println("killing 2"); - action = DIE; - if (wakeMe) - { - wakeMe = false; - System.out.println("killing 3"); - this.notify(); - System.out.println("killing 4"); - } - } - } - } - - public void newScreenSize(int width, int height) - { - this.screenWidth = width; - this.screenHeight = height; - this.screenGeneration++; - } - - public boolean onKeyDown(int keyCode, KeyEvent msg) - { - keycode = keyCode; - return false; - } - - public boolean onKeyUp(int keyCode, KeyEvent msg) - { - return false; - } - - public synchronized void changePage(int delta) - { - action = GOTOPAGE; - if (delta == Integer.MIN_VALUE) - actionPageNum = 0; - else if (delta == Integer.MAX_VALUE) - actionPageNum = core.numPages-1; - else - { - actionPageNum += delta; - if (actionPageNum < 0) - actionPageNum = 0; - if (actionPageNum > core.numPages-1) - actionPageNum = core.numPages-1; - } - if (wakeMe) - { - wakeMe = false; - this.notify(); - } - } - - private float spacing(MotionEvent event) - { - float x = event.getX(0) - event.getX(1); - float y = event.getY(0) - event.getY(1); - return FloatMath.sqrt(x*x+y*y); - } - - private void midpoint(PointF point, MotionEvent event) - { - float x = event.getX(0) + event.getX(1); - float y = event.getY(0) + event.getY(1); - point.set(x/2, y/2); - } - - private synchronized void forceRedraw() - { - if (wakeMe) - { - wakeMe = false; - this.notify(); - } - action = REDRAW; - } - - public synchronized void setPageOriginTo(int x, int y) - { - /* Adjust the coordinates so that the page always covers the - * centre of the screen. */ - if (x + pageWidth < screenWidth/2) - { - x = screenWidth/2 - pageWidth; - } - else if (x > screenWidth/2) - { - x = screenWidth/2; - } - if (y + pageHeight < screenHeight/2) - { - y = screenHeight/2 - pageHeight; - } - else if (y > screenHeight/2) - { - y = screenHeight/2; - } - if ((x != pageOriginX) || (y != pageOriginY)) - { - pageOriginX = x; - pageOriginY = y; - } - forceRedraw(); - } - - public void setPageScaleTo(float scale, PointF midpoint) - { - float x, y; - /* Convert midpoint (in screen coords) to page coords */ - x = (midpoint.x - pageOriginX)/pageScale; - y = (midpoint.y - pageOriginY)/pageScale; - /* Find new scaled page sizes */ - synchronized(this) - { - pageWidth = (int)(core.pageWidth*scale+0.5); - if (pageWidth < screenWidth/2) - { - scale = screenWidth/2/core.pageWidth; - pageWidth = (int)(core.pageWidth*scale+0.5); - } - pageHeight = (int)(core.pageHeight*scale+0.5); - if (pageHeight < screenHeight/2) - { - scale = screenHeight/2/core.pageHeight; - pageWidth = (int)(core.pageWidth *scale+0.5); - pageHeight = (int)(core.pageHeight*scale+0.5); - } - pageScale = scale; - /* Now given this new scale, calculate page origins so that - * x and y are at midpoint */ - float xscale = (float)pageWidth /core.pageWidth; - float yscale = (float)pageHeight/core.pageHeight; - setPageOriginTo((int)(midpoint.x - x*xscale + 0.5), - (int)(midpoint.y - y*yscale + 0.5)); - } - } - - public void scalePageToScreen() - { - float scaleX, scaleY; - scaleX = (float)screenWidth /core.pageWidth; - scaleY = (float)screenHeight/core.pageHeight; - synchronized(this) - { - if (scaleX < scaleY) - pageScale = scaleX; - else - pageScale = scaleY; - pageWidth = (int)(core.pageWidth * pageScale + 0.5); - pageHeight = (int)(core.pageHeight * pageScale + 0.5); - pageOriginX = (screenWidth - pageWidth)/2; - pageOriginY = (screenHeight - pageHeight)/2; - forceRedraw(); - } - System.out.println("scalePageToScreen: Raw="+ - core.pageWidth+"x"+core.pageHeight+" scaled="+ - pageWidth+","+pageHeight+" pageScale="+ - pageScale); - } - - public boolean onTouchEvent(MotionEvent event) - { - int action = event.getAction(); - boolean done = false; - switch (action & MotionEvent.ACTION_MASK) - { - case MotionEvent.ACTION_DOWN: - touchMode = DRAG; - touchDragStartX = event.getX(); - touchDragStartY = event.getY(); - touchInitialOriginX = pageOriginX; - touchInitialOriginY = pageOriginY; - System.out.println("Starting dragging from: "+touchDragStartX+","+touchDragStartY+" ("+pageOriginX+","+pageOriginY+")"); - done = true; - break; - case MotionEvent.ACTION_POINTER_DOWN: - touchInitialSpacing = spacing(event); - if (touchInitialSpacing > 10f) - { - System.out.println("Started zooming: spacing="+touchInitialSpacing); - touchInitialScale = pageScale; - touchMode = ZOOM; - done = true; - } - break; - case MotionEvent.ACTION_UP: - case MotionEvent.ACTION_POINTER_UP: - if (touchMode != NONE) - { - System.out.println("Released!"); - touchMode = NONE; - done = true; - } - break; - case MotionEvent.ACTION_MOVE: - if (touchMode == DRAG) - { - float x = touchInitialOriginX+event.getX()-touchDragStartX; - float y = touchInitialOriginY+event.getY()-touchDragStartY; - System.out.println("Dragged to "+x+","+y); - setPageOriginTo((int)(x+0.5),(int)(y+0.5)); - done = true; - } - else if (touchMode == ZOOM) - { - float newSpacing = spacing(event); - if (newSpacing > 10f) - { - float newScale = touchInitialScale*newSpacing/touchInitialSpacing; - System.out.println("Zoomed to "+newSpacing); - midpoint(touchZoomMidpoint,event); - setPageScaleTo(newScale,touchZoomMidpoint); - done = true; - } - } - } - return done; - } - - public void run() - { - boolean redraw = false; - int patchW = 0; - int patchH = 0; - int patchX = 0; - int patchY = 0; - int localPageW = 0; - int localPageH = 0; - int localScreenGeneration = screenGeneration; - int localAction; - int localActionPageNum = core.pageNum; - - /* Set up our default action */ - action = GOTOPAGE; - actionPageNum = core.pageNum; - while (action != DIE) - { - synchronized(this) - { - while (action == SLEEP) - { - wakeMe = true; - try - { - System.out.println("Render thread sleeping"); - this.wait(); - System.out.println("Render thread woken"); - } - catch (java.lang.InterruptedException e) - { - System.out.println("Render thread exception:"+e); - } - } - - /* Now we do as little as we can get away with while - * synchronised. In general this means copying any action - * or global variables into local ones so that when we - * unsynchronoise, other people can alter them again. - */ - switch (action) - { - case DIE: - System.out.println("Woken to die!"); - break; - case GOTOPAGE: - localActionPageNum = actionPageNum; - break; - case REDRAW: - /* Figure out what area of the page we want to - * redraw (in local variables, in docspace). - * We'll always draw a screensized lump, unless - * that's too big. */ - System.out.println("page="+pageWidth+","+pageHeight+" ("+core.pageWidth+","+core.pageHeight+"@"+pageScale+") @ "+pageOriginX+","+pageOriginY); - localPageW = pageWidth; - localPageH = pageHeight; - patchW = pageWidth; - patchH = pageHeight; - patchX = -pageOriginX; - patchY = -pageOriginY; - if (patchX < 0) - patchX = 0; - if (patchW > screenWidth) - patchW = screenWidth; - srcRect.left = 0; - if (patchX+patchW > pageWidth) - { - srcRect.left += patchX+patchW-pageWidth; - patchX = pageWidth-patchW; - } - if (patchY < 0) - patchY = 0; - if (patchH > screenHeight) - patchH = screenHeight; - srcRect.top = 0; - if (patchY+patchH > pageHeight) - { - srcRect.top += patchY+patchH-pageHeight; - patchY = pageHeight-patchH; - } - dstRect.left = pageOriginX; - if (dstRect.left < 0) - dstRect.left = 0; - dstRect.top = pageOriginY; - if (dstRect.top < 0) - dstRect.top = 0; - dstRect.right = dstRect.left + patchW; - srcRect.right = srcRect.left + patchW; - if (srcRect.right > screenWidth) - { - dstRect.right -= srcRect.right-screenWidth; - srcRect.right = screenWidth; - } - if (dstRect.right > screenWidth) - { - srcRect.right -= dstRect.right-screenWidth; - dstRect.right = screenWidth; - } - dstRect.bottom = dstRect.top + patchH; - srcRect.bottom = srcRect.top + patchH; - if (srcRect.bottom > screenHeight) - { - dstRect.bottom -=srcRect.bottom-screenHeight; - srcRect.bottom = screenHeight; - } - if (dstRect.bottom > screenHeight) - { - srcRect.bottom -=dstRect.bottom-screenHeight; - dstRect.bottom = screenHeight; - } - System.out.println("patch=["+patchX+","+patchY+","+patchW+","+patchH+"]"); - break; - } - localAction = action; - if (action != DIE) - action = SLEEP; - } - - /* In the redraw case: - * pW, pH, pX, pY, localPageW, localPageH are now all set - * in local variables, and we are safe from the global vars - * being altered in calls from other threads. This is all - * the information we need to actually do our render. - */ - switch (localAction) - { - case GOTOPAGE: - core.gotoPage(localActionPageNum); - scalePageToScreen(); - action = REDRAW; - break; - case REDRAW: - if ((bitmap == null) || - (bitmap.getWidth() != patchW) || - (bitmap.getHeight() != patchH)) - { - /* make bitmap of required size */ - bitmap = Bitmap.createBitmap(patchW, patchH, Bitmap.Config.ARGB_8888); - } - System.out.println("Calling redraw native method"); - core.drawPage(bitmap, localPageW, localPageH, patchX, patchY, patchW, patchH); - System.out.println("Called native method"); - { - Canvas c = null; - try - { - c = holder.lockCanvas(null); - synchronized(holder) - { - if (localScreenGeneration == screenGeneration) - { - doDraw(c); - } - else - { - /* Someone has changed the screen - * under us! Better redraw again... - */ - action = REDRAW; - } - } - } - finally - { - if (c != null) - holder.unlockCanvasAndPost(c); - } - } - } - } - } - - protected void doDraw(Canvas canvas) - { - if ((canvas == null) || (bitmap == null)) - return; - /* Clear the screen */ - canvas.drawRGB(128,128,128); - /* Draw our bitmap on top */ - System.out.println("Blitting bitmap from "+srcRect.left+","+srcRect.top+","+srcRect.right+","+srcRect.bottom+" to "+dstRect.left+","+dstRect.top+","+dstRect.right+","+dstRect.bottom); - canvas.drawBitmap(bitmap, srcRect, dstRect, (Paint)null); - } - } -} diff --git a/contrib/media/updf/debian/changelog b/contrib/media/updf/debian/changelog deleted file mode 100644 index 891bfdceb0..0000000000 --- a/contrib/media/updf/debian/changelog +++ /dev/null @@ -1,14 +0,0 @@ -mupdf (0.8-1) unstable; urgency=low - - * MuPDF version 0.8 - -mupdf (0.7-1) unstable; urgency=low - - * MuPDF version 0.7 - - -- Tor Andersson Thu, 27 May 2010 17:11:13 +0100 -mupdf (0.6-1) unstable; urgency=low - - * First release of MuPDF with debian package. - - -- Tor Andersson Thu, 27 May 2010 17:11:13 +0100 diff --git a/contrib/media/updf/debian/compat b/contrib/media/updf/debian/compat deleted file mode 100644 index 7ed6ff82de..0000000000 --- a/contrib/media/updf/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/contrib/media/updf/debian/control b/contrib/media/updf/debian/control deleted file mode 100644 index f374270319..0000000000 --- a/contrib/media/updf/debian/control +++ /dev/null @@ -1,39 +0,0 @@ -Source: mupdf -Section: text -Priority: optional -Maintainer: Tor Andersson -Build-Depends: debhelper (>= 5), make, pkg-config, gcc, coreutils, binutils, tar, libfreetype6-dev, libx11-dev, libxext-dev, libjbig2dec-dev, libopenjpeg-dev, libjpeg62-dev, zlib1g-dev -Standards-Version: 3.7.2 - -Package: libmupdf-dev -Architecture: any -Depends: ${shlibs:Depends} -Description: Development files for the MuPDF viewer - MuPDF is a lightweight PDF viewer and toolkit written in portable C. - . - This package contains the static library and headers. - -Package: mupdf -Architecture: any -Depends: ${shlibs:Depends} -Description: A lightweight PDF viewer - MuPDF is a lightweight PDF viewer and toolkit written in portable C. - . - The renderer in MuPDF is tailored for high quality anti-aliased graphics. - It renders text with metrics and spacing accurate to within fractions of a - pixel for the highest fidelity in reproducing the look of a printed page - on screen. - -Package: mupdf-tools -Architecture: any -Depends: ${shlibs:Depends} -Description: Commmand line tools for the MuPDF viewer - MuPDF is a lightweight PDF viewer and toolkit written in portable C. - . - This package contains command line tools using the MuPDF library: - . - pdfdraw to render pages to image files. - . - pdfshow to examine objects in a PDF file. - . - pdfclean to decompress and pretty print streams and objects in PDF files. diff --git a/contrib/media/updf/debian/copyright b/contrib/media/updf/debian/copyright deleted file mode 100644 index 69d5116b84..0000000000 --- a/contrib/media/updf/debian/copyright +++ /dev/null @@ -1,63 +0,0 @@ -This package was debianized by Sebastian Rasmussen on -Mon, 15 Mar 2010 01:12:20 +0100. - -It was downloaded from http://mupdf.com/repos/mupdf - -Upstream Author: Tor Andersson - -Copyright: MuPDF is Copyright 2006-2010 Artifex Software, Inc. - -License: - -MuPDF is free software: you can redistribute it and/or modify it under the -terms of the GNU General Public License as published by the Free Software -Foundation, either version 3 of the License, or (at your option) any later -version. - -MuPDF is Copyright 2006-2010 Artifex Software, Inc. - -For commercial licensing please contact sales@artifex.com. - -The character map and mapping for pdf resources are from Adobe and are -covered by their own copyright and license: - ------------------------------------------------------------ -Copyright 1990-20xx Adobe Systems Incorporated. -All rights reserved. - -Redistribution and use in source and binary forms, with or -without modification, are permitted provided that the -following conditions are met: - -Redistributions of source code must retain the above -copyright notice, this list of conditions and the following -disclaimer. - -Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following -disclaimer in the documentation and/or other materials -provided with the distribution. - -Neither the name of Adobe Systems Incorporated nor the names -of its contributors may be used to endorse or promote -products derived from this software without specific prior -written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND -CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, -INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR -CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ------------------------------------------------------------ - -The Debian packaging is (C) 2010, Sebastian Rasmussen and -is licensed under the GPL, see `/usr/share/common-licenses/GPL'. - diff --git a/contrib/media/updf/debian/dirs b/contrib/media/updf/debian/dirs deleted file mode 100644 index 84e4627dfd..0000000000 --- a/contrib/media/updf/debian/dirs +++ /dev/null @@ -1,3 +0,0 @@ -usr/bin -usr/include -usr/lib diff --git a/contrib/media/updf/debian/libmupdf-dev.install b/contrib/media/updf/debian/libmupdf-dev.install deleted file mode 100644 index dd3a2bda8e..0000000000 --- a/contrib/media/updf/debian/libmupdf-dev.install +++ /dev/null @@ -1,4 +0,0 @@ -fitz/fitz.h usr/include -mupdf/mupdf.h usr/include -debian/mupdf.pc usr/lib/pkgconfig -debian/tmp/usr/lib/libmupdf.a diff --git a/contrib/media/updf/debian/mupdf-tools.docs b/contrib/media/updf/debian/mupdf-tools.docs deleted file mode 100644 index e845566c06..0000000000 --- a/contrib/media/updf/debian/mupdf-tools.docs +++ /dev/null @@ -1 +0,0 @@ -README diff --git a/contrib/media/updf/debian/mupdf-tools.install b/contrib/media/updf/debian/mupdf-tools.install deleted file mode 100644 index 255de9dddd..0000000000 --- a/contrib/media/updf/debian/mupdf-tools.install +++ /dev/null @@ -1,3 +0,0 @@ -debian/tmp/usr/bin/pdfclean -debian/tmp/usr/bin/pdfdraw -debian/tmp/usr/bin/pdfshow diff --git a/contrib/media/updf/debian/mupdf-tools.manpages b/contrib/media/updf/debian/mupdf-tools.manpages deleted file mode 100644 index bc7fa25090..0000000000 --- a/contrib/media/updf/debian/mupdf-tools.manpages +++ /dev/null @@ -1,3 +0,0 @@ -debian/pdfclean.1 -debian/pdfdraw.1 -debian/pdfshow.1 diff --git a/contrib/media/updf/debian/mupdf.applications b/contrib/media/updf/debian/mupdf.applications deleted file mode 100644 index ca536c8b60..0000000000 --- a/contrib/media/updf/debian/mupdf.applications +++ /dev/null @@ -1,7 +0,0 @@ -mupdf - command=mupdf - name=MuPDF - expect_uris=false - requires_terminal=false - mime_types=application/x-pdf - can_open_multiple_files=false diff --git a/contrib/media/updf/debian/mupdf.desktop b/contrib/media/updf/debian/mupdf.desktop deleted file mode 100644 index 4c9aff5c4c..0000000000 --- a/contrib/media/updf/debian/mupdf.desktop +++ /dev/null @@ -1,15 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=MuPDF -GenericName=PDF file viewer -Comment=PDF file viewer -Exec=mupdf %f -TryExec=mupdf -Icon=mupdf -Terminal=false -Type=Application -MimeType=application/pdf;application/x-pdf; -Categories=Viewer;Graphics; - -[Desktop Action View] -Exec=mupdf %f diff --git a/contrib/media/updf/debian/mupdf.docs b/contrib/media/updf/debian/mupdf.docs deleted file mode 100644 index e845566c06..0000000000 --- a/contrib/media/updf/debian/mupdf.docs +++ /dev/null @@ -1 +0,0 @@ -README diff --git a/contrib/media/updf/debian/mupdf.install b/contrib/media/updf/debian/mupdf.install deleted file mode 100644 index 024f9f6ad8..0000000000 --- a/contrib/media/updf/debian/mupdf.install +++ /dev/null @@ -1,5 +0,0 @@ -debian/mupdf.xpm usr/share/pixmaps -debian/mupdf.png usr/share/pixmaps -debian/mupdf.desktop usr/share/applications -debian/mupdf.applications usr/share/application-registry -debian/tmp/usr/bin/mupdf diff --git a/contrib/media/updf/debian/mupdf.manpages b/contrib/media/updf/debian/mupdf.manpages deleted file mode 100644 index e74b13e7bb..0000000000 --- a/contrib/media/updf/debian/mupdf.manpages +++ /dev/null @@ -1 +0,0 @@ -debian/mupdf.1 diff --git a/contrib/media/updf/debian/mupdf.menu b/contrib/media/updf/debian/mupdf.menu deleted file mode 100644 index 138938cc86..0000000000 --- a/contrib/media/updf/debian/mupdf.menu +++ /dev/null @@ -1,8 +0,0 @@ -?package(mupdf):\ - needs="x11" \ - section="Applications/Viewers" \ - command="/usr/bin/mupdf" \ - title="MuPDF" \ - hints="Documents" \ - icon="/usr/share/pixmaps/mupdf.xpm" \ - longtitle="MuPDF: A lightweight PDF viewer written in portable C" diff --git a/contrib/media/updf/debian/mupdf.mime b/contrib/media/updf/debian/mupdf.mime deleted file mode 100644 index 65bc0fbcc8..0000000000 --- a/contrib/media/updf/debian/mupdf.mime +++ /dev/null @@ -1,2 +0,0 @@ -application/pdf; mupdf %s; test=test -n "$DISPLAY" ; nametemplate=%s.pdf; priority=5 -application/x-pdf; mupdf %s; test=test -n "$DISPLAY" ; nametemplate=%s.pdf; priority=5 diff --git a/contrib/media/updf/debian/mupdf.pc b/contrib/media/updf/debian/mupdf.pc deleted file mode 100644 index 7196cd5cbd..0000000000 --- a/contrib/media/updf/debian/mupdf.pc +++ /dev/null @@ -1,12 +0,0 @@ -prefix=/usr -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include - -Name: mupdf -Description: Library for rendering PDF documents -Requires.private: freetype2 -Version: 0.5.0 -Libs: -L${libdir} -lmupdf -Libs.private: -lopenjpeg -ljbig2dec -ljpeg -lz -lm -Cflags: -I${includedir} diff --git a/contrib/media/updf/debian/mupdf.png b/contrib/media/updf/debian/mupdf.png deleted file mode 100644 index a46cec99381c3d0d8f2d92237f944c48e7ffe3d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2885 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 diff --git a/contrib/media/updf/debian/mupdf.xpm b/contrib/media/updf/debian/mupdf.xpm deleted file mode 100644 index 899a644b4d..0000000000 --- a/contrib/media/updf/debian/mupdf.xpm +++ /dev/null @@ -1,39 +0,0 @@ -/* XPM */ -static char * mupdf_icon_bitmap_32_xpm[] = { -"32 32 4 1", -" c None", -". c #FFFFFF", -"+ c #000000", -"@ c #2572AC", -" ", -" ...... ", -" ..++++++.. ", -" .++++++++++. ", -" .++++@@@@++++. ", -" .+++@@@@@@@@+++. ", -" .++@@@......@++. ", -" ..... .+++@@@.....@@+++.", -" .++++. .++@@@.....@@@@++.", -" .++++. .++@@@.....@@@@++.", -" .+++++. .++@@......@@@@++.", -" .+++++. .++@@......@@@@++.", -" .++++++. .+++...@...@@@+++.", -" .++++++. .++...@...@@@++. ", -" .+++++++. .+++.@@...@@+++. ", -" .+++++++. .++++@...++++. ", -" .++++++++. ..++++++++++. ", -" .++++++++. .+..++++++.. ", -" .++++.++++. .+++....... ", -" .++++.++++. .++++.++++. ", -" .++++..++++. .++++..+.++. ", -" .++++..++++. .++++....... ", -" .++++. .++++.++++. .+.++. ", -" .++++. .++++.++++. .+.++. ", -" .++++. .+++++++. .+.++. ", -" .++++. .+++++++. .+.++. ", -" .++++. .+++++. .+.++. ", -" .++++. .+++++. .+.++. ", -" .++++. .+++. .+.++. ", -" .++++. .+++. .++++. ", -" ...... ... ...... ", -" "}; diff --git a/contrib/media/updf/debian/rules b/contrib/media/updf/debian/rules deleted file mode 100755 index 6858577a35..0000000000 --- a/contrib/media/updf/debian/rules +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -build: build-stamp -build-stamp: - dh_testdir - dh_testroot - $(MAKE) build=release prefix=$(CURDIR)/debian/tmp/usr install - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - -$(MAKE) clean - dh_clean - -# Build architecture-independent files here. -binary-indep: build - dh_testdir - dh_testroot - dh_installdirs - dh_installdocs - dh_installchangelogs - dh_installmenu - dh_installmime - dh_installman - dh_compress - -# Build architecture-dependent files here. -binary-arch: build - dh_testdir - dh_testroot - dh_installdirs -a - dh_install -a - dh_strip -a - dh_fixperms -a - dh_makeshlibs -a - dh_installdeb -a - dh_shlibdeps -a - dh_gencontrol -a - dh_md5sums -a - dh_builddeb -a - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary diff --git a/contrib/media/updf/win32/README.txt b/contrib/media/updf/win32/README.txt deleted file mode 100644 index 01915f8e11..0000000000 --- a/contrib/media/updf/win32/README.txt +++ /dev/null @@ -1 +0,0 @@ -This MSVC project needs the thirdparty sources to be in place. diff --git a/contrib/media/updf/win32/generate.bat b/contrib/media/updf/win32/generate.bat deleted file mode 100644 index 0a5d7f49a3..0000000000 --- a/contrib/media/updf/win32/generate.bat +++ /dev/null @@ -1,35 +0,0 @@ -@echo off - -if not exist scripts/fontdump.c cd .. -if not exist generated mkdir generated - -cl /nologo -Ifitz -Ipdf scripts/fontdump.c -cl /nologo -Ifitz -Ipdf scripts/cmapdump.c - -if not exist fontdump.exe goto usage -if not exist cmapdump.exe goto usage - -if not exist generated/font_base14.h fontdump.exe generated/font_base14.h fonts/Dingbats.cff fonts/NimbusMonL-Bold.cff fonts/NimbusMonL-BoldObli.cff fonts/NimbusMonL-Regu.cff fonts/NimbusMonL-ReguObli.cff fonts/NimbusRomNo9L-Medi.cff fonts/NimbusRomNo9L-MediItal.cff fonts/NimbusRomNo9L-Regu.cff fonts/NimbusRomNo9L-ReguItal.cff fonts/NimbusSanL-Bold.cff fonts/NimbusSanL-BoldItal.cff fonts/NimbusSanL-Regu.cff fonts/NimbusSanL-ReguItal.cff fonts/StandardSymL.cff - -if not exist generated/font_droid.h fontdump.exe generated/font_droid.h fonts/droid/DroidSans.ttf fonts/droid/DroidSansMono.ttf - -if not exist generated/font_cjk.h fontdump.exe generated/font_cjk.h fonts/droid/DroidSansFallback.ttf - -if not exist generated/cmap_cns.h cmapdump.exe generated/cmap_cns.h cmaps/cns/Adobe-CNS1-UCS2 cmaps/cns/Adobe-CNS1-0 cmaps/cns/Adobe-CNS1-1 cmaps/cns/Adobe-CNS1-2 cmaps/cns/Adobe-CNS1-3 cmaps/cns/Adobe-CNS1-4 cmaps/cns/Adobe-CNS1-5 cmaps/cns/Adobe-CNS1-6 cmaps/cns/B5-H cmaps/cns/B5-V cmaps/cns/B5pc-H cmaps/cns/B5pc-V cmaps/cns/CNS-EUC-H cmaps/cns/CNS-EUC-V cmaps/cns/CNS1-H cmaps/cns/CNS1-V cmaps/cns/CNS2-H cmaps/cns/CNS2-V cmaps/cns/ETen-B5-H cmaps/cns/ETen-B5-V cmaps/cns/ETenms-B5-H cmaps/cns/ETenms-B5-V cmaps/cns/ETHK-B5-H cmaps/cns/ETHK-B5-V cmaps/cns/HKdla-B5-H cmaps/cns/HKdla-B5-V cmaps/cns/HKdlb-B5-H cmaps/cns/HKdlb-B5-V cmaps/cns/HKgccs-B5-H cmaps/cns/HKgccs-B5-V cmaps/cns/HKm314-B5-H cmaps/cns/HKm314-B5-V cmaps/cns/HKm471-B5-H cmaps/cns/HKm471-B5-V cmaps/cns/HKscs-B5-H cmaps/cns/HKscs-B5-V cmaps/cns/UniCNS-UCS2-H cmaps/cns/UniCNS-UCS2-V cmaps/cns/UniCNS-UTF16-H cmaps/cns/UniCNS-UTF16-V - -if not exist generated/cmap_gb.h cmapdump.exe generated/cmap_gb.h cmaps/gb/Adobe-GB1-UCS2 cmaps/gb/Adobe-GB1-0 cmaps/gb/Adobe-GB1-1 cmaps/gb/Adobe-GB1-2 cmaps/gb/Adobe-GB1-3 cmaps/gb/Adobe-GB1-4 cmaps/gb/Adobe-GB1-5 cmaps/gb/GB-EUC-H cmaps/gb/GB-EUC-V cmaps/gb/GB-H cmaps/gb/GB-V cmaps/gb/GBK-EUC-H cmaps/gb/GBK-EUC-V cmaps/gb/GBK2K-H cmaps/gb/GBK2K-V cmaps/gb/GBKp-EUC-H cmaps/gb/GBKp-EUC-V cmaps/gb/GBpc-EUC-H cmaps/gb/GBpc-EUC-V cmaps/gb/GBT-EUC-H cmaps/gb/GBT-EUC-V cmaps/gb/GBT-H cmaps/gb/GBT-V cmaps/gb/GBTpc-EUC-H cmaps/gb/GBTpc-EUC-V cmaps/gb/UniGB-UCS2-H cmaps/gb/UniGB-UCS2-V cmaps/gb/UniGB-UTF16-H cmaps/gb/UniGB-UTF16-V - -if not exist generated/cmap_japan.h cmapdump.exe generated/cmap_japan.h cmaps/japan/Adobe-Japan1-UCS2 cmaps/japan/78-EUC-H cmaps/japan/78-EUC-V cmaps/japan/78-H cmaps/japan/78-RKSJ-H cmaps/japan/78-RKSJ-V cmaps/japan/78-V cmaps/japan/78ms-RKSJ-H cmaps/japan/78ms-RKSJ-V cmaps/japan/83pv-RKSJ-H cmaps/japan/90ms-RKSJ-H cmaps/japan/90ms-RKSJ-V cmaps/japan/90msp-RKSJ-H cmaps/japan/90msp-RKSJ-V cmaps/japan/90pv-RKSJ-H cmaps/japan/90pv-RKSJ-V cmaps/japan/Add-H cmaps/japan/Add-RKSJ-H cmaps/japan/Add-RKSJ-V cmaps/japan/Add-V cmaps/japan/Adobe-Japan1-0 cmaps/japan/Adobe-Japan1-1 cmaps/japan/Adobe-Japan1-2 cmaps/japan/Adobe-Japan1-3 cmaps/japan/Adobe-Japan1-4 cmaps/japan/Adobe-Japan1-5 cmaps/japan/Adobe-Japan1-6 cmaps/japan/EUC-H cmaps/japan/EUC-V cmaps/japan/Ext-H cmaps/japan/Ext-RKSJ-H cmaps/japan/Ext-RKSJ-V cmaps/japan/Ext-V cmaps/japan/H cmaps/japan/Hankaku cmaps/japan/Hiragana cmaps/japan/Katakana cmaps/japan/NWP-H cmaps/japan/NWP-V cmaps/japan/RKSJ-H cmaps/japan/RKSJ-V cmaps/japan/Roman cmaps/japan/UniJIS-UCS2-H cmaps/japan/UniJIS-UCS2-HW-H cmaps/japan/UniJIS-UCS2-HW-V cmaps/japan/UniJIS-UCS2-V cmaps/japan/UniJISPro-UCS2-HW-V cmaps/japan/UniJISPro-UCS2-V cmaps/japan/V cmaps/japan/WP-Symbol cmaps/japan/Adobe-Japan2-0 cmaps/japan/Hojo-EUC-H cmaps/japan/Hojo-EUC-V cmaps/japan/Hojo-H cmaps/japan/Hojo-V cmaps/japan/UniHojo-UCS2-H cmaps/japan/UniHojo-UCS2-V cmaps/japan/UniHojo-UTF16-H cmaps/japan/UniHojo-UTF16-V cmaps/japan/UniJIS-UTF16-H cmaps/japan/UniJIS-UTF16-V - -if not exist generated/cmap_korea.h cmapdump.exe generated/cmap_korea.h cmaps/korea/Adobe-Korea1-UCS2 cmaps/korea/Adobe-Korea1-0 cmaps/korea/Adobe-Korea1-1 cmaps/korea/Adobe-Korea1-2 cmaps/korea/KSC-EUC-H cmaps/korea/KSC-EUC-V cmaps/korea/KSC-H cmaps/korea/KSC-Johab-H cmaps/korea/KSC-Johab-V cmaps/korea/KSC-V cmaps/korea/KSCms-UHC-H cmaps/korea/KSCms-UHC-HW-H cmaps/korea/KSCms-UHC-HW-V cmaps/korea/KSCms-UHC-V cmaps/korea/KSCpc-EUC-H cmaps/korea/KSCpc-EUC-V cmaps/korea/UniKS-UCS2-H cmaps/korea/UniKS-UCS2-V cmaps/korea/UniKS-UTF16-H cmaps/korea/UniKS-UTF16-V - -del cmapdump.obj fontdump.obj cmapdump.exe fontdump.exe - -goto fin - -:usage -echo ERROR: Run this script in the mupdf directory. -echo ERROR: Run this script in a Visual Studio command prompt. -pause - -:fin diff --git a/contrib/media/updf/win32/libmupdf.vcproj b/contrib/media/updf/win32/libmupdf.vcproj deleted file mode 100644 index 88af36eff2..0000000000 --- a/contrib/media/updf/win32/libmupdf.vcproj +++ /dev/null @@ -1,541 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/win32/libthirdparty.vcproj b/contrib/media/updf/win32/libthirdparty.vcproj deleted file mode 100644 index 6b3cc70b7e..0000000000 --- a/contrib/media/updf/win32/libthirdparty.vcproj +++ /dev/null @@ -1,547 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/win32/mupdf.sln b/contrib/media/updf/win32/mupdf.sln deleted file mode 100644 index 54793c5221..0000000000 --- a/contrib/media/updf/win32/mupdf.sln +++ /dev/null @@ -1,86 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual C++ Express 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mupdf", "mupdf.vcproj", "{E74F29F0-FA43-4ADC-B92C-6AFA08E4A417}" - ProjectSection(ProjectDependencies) = postProject - {5F615F91-DFF8-4F05-BF48-6222B7D86519} = {5F615F91-DFF8-4F05-BF48-6222B7D86519} - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} = {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libthirdparty", "libthirdparty.vcproj", "{5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmupdf", "libmupdf.vcproj", "{5F615F91-DFF8-4F05-BF48-6222B7D86519}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pdfdraw", "pdfdraw.vcproj", "{26C5D7C3-BEE9-4886-9CDB-846D26F5BCDB}" - ProjectSection(ProjectDependencies) = postProject - {5F615F91-DFF8-4F05-BF48-6222B7D86519} = {5F615F91-DFF8-4F05-BF48-6222B7D86519} - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} = {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pdfclean", "pdfclean.vcproj", "{923D7C3D-A5CD-47F1-9BB3-F716531DCCCE}" - ProjectSection(ProjectDependencies) = postProject - {5F615F91-DFF8-4F05-BF48-6222B7D86519} = {5F615F91-DFF8-4F05-BF48-6222B7D86519} - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} = {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pdfshow", "pdfshow.vcproj", "{50644121-C85F-4EE9-9C54-F7D1BDFAE354}" - ProjectSection(ProjectDependencies) = postProject - {5F615F91-DFF8-4F05-BF48-6222B7D86519} = {5F615F91-DFF8-4F05-BF48-6222B7D86519} - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} = {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pdfextract", "pdfextract.vcproj", "{BD4473E7-2DBE-4568-A0FC-38EED70182DC}" - ProjectSection(ProjectDependencies) = postProject - {5F615F91-DFF8-4F05-BF48-6222B7D86519} = {5F615F91-DFF8-4F05-BF48-6222B7D86519} - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} = {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xpsdraw", "xpsdraw.vcproj", "{E6A93617-41BD-45B2-BF61-4F7ED263CDF2}" - ProjectSection(ProjectDependencies) = postProject - {5F615F91-DFF8-4F05-BF48-6222B7D86519} = {5F615F91-DFF8-4F05-BF48-6222B7D86519} - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} = {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C} - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {E74F29F0-FA43-4ADC-B92C-6AFA08E4A417}.Debug|Win32.ActiveCfg = Debug|Win32 - {E74F29F0-FA43-4ADC-B92C-6AFA08E4A417}.Debug|Win32.Build.0 = Debug|Win32 - {E74F29F0-FA43-4ADC-B92C-6AFA08E4A417}.Release|Win32.ActiveCfg = Release|Win32 - {E74F29F0-FA43-4ADC-B92C-6AFA08E4A417}.Release|Win32.Build.0 = Release|Win32 - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C}.Debug|Win32.ActiveCfg = Debug|Win32 - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C}.Debug|Win32.Build.0 = Debug|Win32 - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C}.Release|Win32.ActiveCfg = Release|Win32 - {5EDCF4FD-0291-4FB9-8D96-D58957CA5E3C}.Release|Win32.Build.0 = Release|Win32 - {5F615F91-DFF8-4F05-BF48-6222B7D86519}.Debug|Win32.ActiveCfg = Debug|Win32 - {5F615F91-DFF8-4F05-BF48-6222B7D86519}.Debug|Win32.Build.0 = Debug|Win32 - {5F615F91-DFF8-4F05-BF48-6222B7D86519}.Release|Win32.ActiveCfg = Release|Win32 - {5F615F91-DFF8-4F05-BF48-6222B7D86519}.Release|Win32.Build.0 = Release|Win32 - {26C5D7C3-BEE9-4886-9CDB-846D26F5BCDB}.Debug|Win32.ActiveCfg = Debug|Win32 - {26C5D7C3-BEE9-4886-9CDB-846D26F5BCDB}.Debug|Win32.Build.0 = Debug|Win32 - {26C5D7C3-BEE9-4886-9CDB-846D26F5BCDB}.Release|Win32.ActiveCfg = Release|Win32 - {26C5D7C3-BEE9-4886-9CDB-846D26F5BCDB}.Release|Win32.Build.0 = Release|Win32 - {923D7C3D-A5CD-47F1-9BB3-F716531DCCCE}.Debug|Win32.ActiveCfg = Debug|Win32 - {923D7C3D-A5CD-47F1-9BB3-F716531DCCCE}.Debug|Win32.Build.0 = Debug|Win32 - {923D7C3D-A5CD-47F1-9BB3-F716531DCCCE}.Release|Win32.ActiveCfg = Release|Win32 - {923D7C3D-A5CD-47F1-9BB3-F716531DCCCE}.Release|Win32.Build.0 = Release|Win32 - {50644121-C85F-4EE9-9C54-F7D1BDFAE354}.Debug|Win32.ActiveCfg = Debug|Win32 - {50644121-C85F-4EE9-9C54-F7D1BDFAE354}.Debug|Win32.Build.0 = Debug|Win32 - {50644121-C85F-4EE9-9C54-F7D1BDFAE354}.Release|Win32.ActiveCfg = Release|Win32 - {50644121-C85F-4EE9-9C54-F7D1BDFAE354}.Release|Win32.Build.0 = Release|Win32 - {BD4473E7-2DBE-4568-A0FC-38EED70182DC}.Debug|Win32.ActiveCfg = Debug|Win32 - {BD4473E7-2DBE-4568-A0FC-38EED70182DC}.Debug|Win32.Build.0 = Debug|Win32 - {BD4473E7-2DBE-4568-A0FC-38EED70182DC}.Release|Win32.ActiveCfg = Release|Win32 - {BD4473E7-2DBE-4568-A0FC-38EED70182DC}.Release|Win32.Build.0 = Release|Win32 - {E6A93617-41BD-45B2-BF61-4F7ED263CDF2}.Debug|Win32.ActiveCfg = Debug|Win32 - {E6A93617-41BD-45B2-BF61-4F7ED263CDF2}.Debug|Win32.Build.0 = Debug|Win32 - {E6A93617-41BD-45B2-BF61-4F7ED263CDF2}.Release|Win32.ActiveCfg = Release|Win32 - {E6A93617-41BD-45B2-BF61-4F7ED263CDF2}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/contrib/media/updf/win32/mupdf.vcproj b/contrib/media/updf/win32/mupdf.vcproj deleted file mode 100644 index b0e899e196..0000000000 --- a/contrib/media/updf/win32/mupdf.vcproj +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/win32/pdfclean.vcproj b/contrib/media/updf/win32/pdfclean.vcproj deleted file mode 100644 index 2c6e5655ad..0000000000 --- a/contrib/media/updf/win32/pdfclean.vcproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/win32/pdfdraw.vcproj b/contrib/media/updf/win32/pdfdraw.vcproj deleted file mode 100644 index 769c2b1942..0000000000 --- a/contrib/media/updf/win32/pdfdraw.vcproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/win32/pdfextract.vcproj b/contrib/media/updf/win32/pdfextract.vcproj deleted file mode 100644 index 91e975f9b0..0000000000 --- a/contrib/media/updf/win32/pdfextract.vcproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/win32/pdfshow.vcproj b/contrib/media/updf/win32/pdfshow.vcproj deleted file mode 100644 index a115fd2013..0000000000 --- a/contrib/media/updf/win32/pdfshow.vcproj +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contrib/media/updf/win32/xpsdraw.vcproj b/contrib/media/updf/win32/xpsdraw.vcproj deleted file mode 100644 index 52357d31b2..0000000000 --- a/contrib/media/updf/win32/xpsdraw.vcproj +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -