summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2016-07-14x11: Update x11/win32 viewer for fz_close_device changes.Tor Andersson
2016-07-13Bug 696699: Fix Text extraction mediabox information.Robin Watts
Since the removal of the begin_page device function, structured text extraction has been unable to correctly establish the mediabox for extracted pages. Update the fz_new_stext_page call to take this mediabox information. This is an API change, but hopefully most people are calling fz_new_stext_page_from_page or fz_new_stext_page_from_display_list which are updated here to cope. Update all the apps/tools to behave properly.
2016-07-12Android JNI Annotation fix.Robin Watts
We pass pointers from the JNI layer into the java to be stored as java longs. When doing this it is VITAL that we cast them correctly as otherwise the JNI layer on android has problems - presumably because of alignment in the procedure calling standard. I'd missed this in one place. Fixed here. <log></log>
2016-07-11Java desktop example: detect retina and scale accordinglyfredrossperry
also: zoom in/out buttons
2016-07-11android desktop viewer: scale the page box before making the pixmap in ↵fred ross-perry
imageFromPageWithDevice
2016-07-11JNI: Fix annotation crashing problem.Robin Watts
I was forgetting to 'keep' the annot. Inspection of the code shows just 1 other place where I've made that mistake, and it's currently disabled (but updated here anyway).
2016-07-11MSVC: Add DebugJava/ReleaseJava configurations.Robin Watts
These build the mupdf desktop java viewer.
2016-07-11Update mupdf_native.c for Windows.Robin Watts
Use Windows threads rather than pthreads when building on windows.
2016-07-11Fixes to iOS application for recent API changesMichael Vrhel
2016-07-08Fix Windows builds.Robin Watts
generated.sh was broken (wrong font path). load_pnm.c had been omitted from VS projects.
2016-07-08git stripspaceTor Andersson
2016-07-08Separate close and drop functionality for devices and writers.Tor Andersson
Closing a device or writer may throw exceptions, but much of the foreign language bindings (JNI and JS) depend on drop to never throw an exception (exceptions in finalizers are bad).
2016-07-08Slim pdf_annot struct: remove cached annot_type and widget_type fields.Tor Andersson
2016-07-08android: Fix mixed tabs/spaces in DocViewActivity.java.Tor Andersson
2016-07-06Android example: modify to use new JNI, N-up page displayfredrossperry
- uses AndroidDrawDevice for rendering - very simple sample app - mupdf-specific functionality in a module called "mupdf" - N-up page display - page rendering in a background task Signed-off-by: fredrossperry <fredrossperry@gmail.com>
2016-07-06Android viewer - replace missing build.gradle filefredrossperry
also, change SUPPORT_GPROOF to FZ_ENABLE_GPRF
2016-07-06Android viewer: add mupdf_native.c to buildfredrossperry
This is because platform/android/example also uses the resulting shared library.
2016-07-06x11: Fix segfault when creating presentation transitions.Tor Andersson
2016-07-06Start slimming pdf_page.Tor Andersson
We want to turn pdf_page into a thin wrapper around a pdf_obj, so that any updates to the underlying PDF objects will be reflected without having to reload the pdf_page.
2016-07-06gl: Fix buffer overrun when there are too many annotations.Tor Andersson
2016-07-05Fix Java makefile to link to system freetype library.Sebastian Rasmussen
2016-06-29Add Source Han Sans CJK per-language fonts.Tor Andersson
Import fonts from v1.004.
2016-06-27MSVC: Add DebugGProof configurationRobin Watts
Allows testing of SUPPORT_GPROOF builds on windows.
2016-06-23epub: Use markup language when shaping and selecting fallback fonts.Tor Andersson
2016-06-23Update JNI code. Take explicit alpha argument in toPixmap functions.Tor Andersson
2016-06-23modified mupdf.c and mupdf_native.c to adapt to APIs that have recently changed.fredrossperry
2016-06-22Update font names in libfonts.vcprojMichael Vrhel
Font names changed with the update of the base 14 fonts to the latest release from URW. The project file had to be updated with the new names. Also the Droid font names had changed so generate.bat was updated.
2016-06-22gl: Fix annotation textures that have alpha, while page textures don't.Tor Andersson
2016-06-20Bug 696835: Reverse zoom in/zoom out mouse controls.Robin Watts
We had these reversed. Doesn't matter too much with a mouse, but matters a lot more on a touch screen when the same signals are used to do pinch zoom.
2016-06-20Add simple muraster.Robin Watts
A cutdown mudraw that only copes with simple raster output.
2016-06-17Update base 14 fonts to the latest release from URW.Tor Andersson
The fonts are now under the SIL Open Font License! Converted with AFDKO tool 'tx': tx -cff +F +S +T -b -n -gx $EXCL -a *.t1 $EXCL is the list of PUA glyphs used by PCL that we don't need in mupdf. The Dingbats and Symbol fonts have only been regenerated from the old version, since there are no new glyphs (but several problems) in the newest version.
2016-06-17Add mediabox argument to fz_new_display_list.Tor Andersson
To return the proper size from fz_bound_display_list, which has been broken since the begin_page device call was removed.
2016-06-17Add device space transform state to draw device.Tor Andersson
Allows us to remove the out parameter 'transform' from fz_begin_page.
2016-06-17Use 'size_t' instead of int as appropriate.Robin Watts
This silences the many warnings we get when building for x64 in windows. This does not address any of the warnings we get in thirdparty libraries - in particular harfbuzz. These look (at a quick glance) harmless though.
2016-06-16Drop save_alpha argument from image writing functions.Tor Andersson
2016-06-16Split image output functions into separate files.Tor Andersson
2016-06-16gl: Add PDF creator and producer to info display.Tor Andersson
2016-06-16Update JNI bindings for pixmap alpha changes.Tor Andersson
2016-06-16MSVC: 64bit fixes.Robin Watts
Update libfonts build directory; this was causing many warnings because the debugging information was being put in the wrong place. Also ensure that libfonts is build for the different 64bit configs.
2016-06-14MSVC: Reorder objects in project file.Robin Watts
Presumably because the files were hand edited before, and MSVC likes to alphasort.
2016-06-14Add TIFF SGI LUV decoding.Robin Watts
2016-06-14MSVC 64bit fixesRobin Watts
libfonts wasn't being generated in 64bit configs. murun had the wrong include path in 64bit configs. generated was being invoked wrongly in 64bit configs.
2016-06-14Fix typos in various parts of the code.Sebastian Rasmussen
2016-06-13Fix Android viewer build with js.Robin Watts
The recent js change requires a makefile tweak.
2016-06-13Bug 696822: Refuse to save a pdf file incrementally if it would break.Robin Watts
If a file cannot be saved incrementally, then don't accept that as an option. In practise this means if someone asks to save a file incrementally, and it was repaired, or it uses encryption then throw an error. Add a new function to ask if it's safe to save a file incrementally, and use that in the appropriate places.
2016-06-09iOS: Run Xcode's "Convert to Modern ObjC" for "ObjC literals"Joseph Heenan
Uses the more modern/concise syntax that arrived in Xcode 4.4
2016-06-09iOS: Replace property like accessors with propertiesJoseph Heenan
2016-06-09iOS: Use modern instancetype instead of id for init return typeJoseph Heenan
2016-06-09iOS: Fix a bad call to super in MuDocumentController.mJoseph Heenan
We're a subclass of UIViewController, so must call one of UIViewController's designated initialisers.
2016-06-09iOS: Replace char * with NSString in ObjC APIsJoseph Heenan
What is effectively our external API on iOS would be expected to use NSString rather than char *.