summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-22Cache base14 and CJK fonts.Tor Andersson
Do not cache PDF fonts, since they have custom metrics and encodings that cannot be shared. This is primarily to speed up font loading for EPUB, PDF appearance synthesis, and any other uses of default metrics and unicode encoded fonts.
2018-06-22Add pdf_dict_get_name function.Tor Andersson
2018-06-22Check pointer for NULL in fz_free before locking.Tor Andersson
2018-06-21Allow signature saving using pdf_write_documentPaul Gardiner
It is safe to save a document with unsaved signatures to an fz_output, provided it supports fz_stream_from_output.
2018-06-12More tweaks to MSVC dependencies for luratech/curl.Robin Watts
Looks like x64 ones didn't 'stick' last time I edited them.
2018-06-12Fix MSVC build issues.Robin Watts
When updating from VS2005 to VS2017, the .rules mechanism is converted to a .props based scheme. This is not entirely equivalent, and so causes problems with our "build both 32 and 64bit resources" scheme. Instead, we amend the flag handling in bin2coff so that it will accept "Win32" and "x64" as flags. These can then be driven easily from the project files, giving us a "more standard" way of working. Also, remove some stray fonts that had crept into the resources build.
2018-06-12Run both V and F additional actions when setting field values.Tor Andersson
2018-06-11MSVC solution fixes.Robin Watts
Having libluratech set to not build in non-commercial builds is not enough to make stuff work, as the dependencies will still try to link it in. Instead, we now have a Release configuration for libluratech with every file disabled, and the non-commercial builds depend on that. Also, tweak bin2coff build to put it's buildlog in the usual place.
2018-06-11Fix MSVC dependencies/configurations.Robin Watts
Everything builds in a batch build for me now, except for the OpenSSL stuff, which fails due to me not having it available.
2018-06-11Fix Windows JNI builds.Robin Watts
2018-06-11Use bin2coff to generate font data blobs object files.Tor Andersson
This is the windows equivalent of objcopy or ld -r binary. We need different bin2coff font object files for 32 and 64 bit builds, so put the font object files in AdditionalDependencies. Revamp Windows builds to use bin2coff. Fix bin2coff to not use '-' in symbol names. Add a new project file to make bin2coff. Add a .rules file to tell MSVC how to call the built version of bin2coff. Update libresources build to use this rules file. Update noto.c to correctly find the symbols we make.
2018-06-07Remove platform specific compiler flags for build=native.Tor Andersson
2018-06-02Fix libcrypto build.Tor Andersson
2018-06-02Rework XObject form creation/updating.Tor Andersson
2018-06-02mutool show: Add support for wildcards in path syntax.Tor Andersson
Example: mutool show $PDF pages/*/Resources/Fonts/*/Subtype
2018-06-02Fix include file ifdefs when building with -std=c11.Tor Andersson
2018-06-02Add a fz_strnlen function (strnlen is not standard C).Tor Andersson
2018-06-01Fix loss of reference to focussed annotation when rereading annotationsPaul Gardiner
2018-05-18Fix 699368: Remember 'sent' text state in sanitize filter.Tor Andersson
2018-05-18gl: Zoom in/out centered on the mouse cursor.Tor Andersson
2018-05-18Fix segfault in SVG parser when encountering text data.Tor Andersson
fz_xml_tag returns NULL for non-tag (i.e. text) elements. Use the fz_xml_is_tag function instead of comparing strings.
2018-05-18Fix android build.Tor Andersson
2018-05-17mutool extract: Remove spurious 'break' statement and fix double free.Tor Andersson
2018-05-16Don't use pdf_load_object in pdfextract.cTor Andersson
2018-05-16Remove unused variable.Tor Andersson
2018-05-16Keep JBIG2 image data compressed in fz_compressed_buffer.Tor Andersson
2018-05-16Remove needless deep copy of resource dictionary.Tor Andersson
Also don't bother adding an indirect object for the top resource dict.
2018-05-16js: Add Shade.bound function and bbox device example.Tor Andersson
2018-05-16Purge unused functions.Tor Andersson
2018-05-16Add script to find unused functions.Tor Andersson
2018-05-16Restore Emoji font.Tor Andersson
The Noto symbol font has been split into two. The second symbol font only contains a subset of the emojis, so reinstate the real emoji font and add both symbol fonts to the fallback chain.
2018-05-15Bug 699351: Handle glyphs with uncomputable width.Sebastian Rasmussen
Previously if a glyphs units per em was 0 we'd try to divide by zero, now mupdf assumes a default value and continues.
2018-05-11Fix 699332: Copy resources when cleaning content streams.Sebastian Rasmussen
Previously if both cleaning and sanitizing content streams the pages' resource dictionaries would retain the actually used resources. If the content streams were only cleaned and not sanitized the page's resource dictionaries were incorrectly emptied. All resources, whether used or not, ought to be retained, as is the case after this commit.
2018-05-10Use fz_malloc_no_throw() in JPEG/DCT decoder.Sebastian Rasmussen
Suppose an application that uses MuPDF implements its own allocator that limits the amount of memory that may be allocated. When that condition occurs fz_malloc() will throw an exception, this exception would then be thrown right back to MuPDF without allowing for libjpeg to free any of the memory it has allocated. After this commit fz_malloc_no_throw() is called, which under the same conditions would simply return NULL. allowing for libjpeg to free what ever allocations it has done, and return to MuPDF with an error just like before.
2018-05-09Flesh out some more javascript convenience objects.Tor Andersson
Add some missing convenience data objects: font, highlight, position, etc. Add color.convert and color.equal functions.
2018-05-09Update CHANGES.Tor Andersson
2018-05-09Fix object formatting for null object.Tor Andersson
2018-05-09Remove incorrect assertion.Tor Andersson
A 'null' pdf_obj is also NULL.
2018-05-09Disable optimization in libresources.vcproj.Tor Andersson
2018-05-09Fix windows: strsep is missing on MSVC, use fz_strsep instead.Tor Andersson
2018-05-09Fix java build.Tor Andersson
2018-05-09Fix 699319: Apply clip path after drawing, not before.Tor Andersson
2018-05-07pnm: Remember to always initialize variable.Sebastian Rasmussen
2018-05-03Add selector syntax to 'mutool show'.Tor Andersson
2018-05-03Tweak 'mutool show ... grep' output.Tor Andersson
2018-05-03Remove old and unused cross-compile configurations.Tor Andersson
PNaCl was deprecated in 2015. WebOS hasn't seen use since 2012. The beagleboard and tizen builds are no longer used. The mingw and ios sections should suffice as examples.
2018-05-03Fix uninitialized pointer when viewing broken images in muimg.cTor Andersson
2018-05-03Fix MSVC build: Remove stray "generate.bat" calls.Robin Watts
2018-05-03Update win32 libresources.vcproj file list.Tor Andersson
2018-05-03Fix /nologo error in nmake file.Tor Andersson