summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-11-17Do cleanup when dropping curl stream.Sebastian Rasmussen
2016-11-17Rename openssl flags to libcrypto.Sebastian Rasmussen
Only libcrypto is used to do checking of digital signatures. The SSL library openssl is never used.
2016-11-16pdf: Add x and y output parameters to pdf_lookup_anchor.Tor Andersson
2016-11-16Bug 697301: Fix "crash" in epub.Robin Watts
Actually an assert. This is caused by a paragraph separator in the text. The Unicode Bidirectional Algorithm says we should operate paragraph by paragraph, and includes code to split paragraphs at paragraph markers, changing their type to boundary neutrals as it goes. The use of this code was left "as an exercise for the reader" in the example code, so we simply hook it up here.
2016-11-16pdf: Use '#page=N' for remote destination pages.Tor Andersson
As per Adobe's recommendation: https://helpx.adobe.com/acrobat/kb/link-html-pdf-page-acrobat.html
2016-11-16Fix 697334: disable text input in x11 viewer permanently.Tor Andersson
The hacky stdin workaround has never worked satisfactorily. Just nuke it.
2016-11-16Fix 697335: Handle links with content in nested tag.Tor Andersson
We would not create a link box for the "bar" text in links of the form: <a href="foo"><span>bar</span></a>.
2016-11-16Fix warning.Tor Andersson
2016-11-16pdf: Add 'compressed/raw' flag to pdf_add_stream.Tor Andersson
Also expose the argument to JS and JNI.
2016-11-15move the definition of GSDLLCALL to a different spot, above where it'sFred Ross-Perry
first used.
2016-11-15adapt to api change for toStructuredText.Fred Ross-Perry
No arguments are necessary.
2016-11-15Android example - smoother flingingFred Ross-Perry
scale the fling distance and time to the fling velocity. fling farther and for longer when the velocity is higher.
2016-11-15Android example - update gradle version.Fred Ross-Perry
2016-11-15Android example - fix to maintain vertical center when zooming.Fred Ross-Perry
2016-11-15Fix Java 32/64bit detection.Robin Watts
Fix some java typos. Thanks to Fred for nicely pointing out that I'd been testing the wrong build. Also, make us default to 32bit if sun.arch.data.model is not defined, as Android doesn't set this. We will need to find a nice way to spot 32/64 bittedness on Android.
2016-11-15Update JNI code to load 32 or 64 bit DLL as appropriate.Robin Watts
Make the JNI code detect whether it is running on a 32 or 64 bit machine, and change the name of the DLL appropriately. Update Android Makefile to make mupdf_java32 instead of mupdf_java. Update Java Makefile to make mupdf_java32 or mupdf_java64 based on the system it is running on. This choice can be overruled by defining BITS to be "32" or "64" before calling make. Update Windows Solution to make mupdf_java32 or mupdf_java64 as appropriate.
2016-11-15Fix compiler warning.Robin Watts
's' is char * and unsigned char * is expected.
2016-11-15Fix android build after fz_buffer internal hiding.Robin Watts
2016-11-15Bug 697045: Bring in fix to let openjpeg skip some bad data.Robin Watts
2016-11-15MSVC: Fix Commercial build locations.Robin Watts
Also tweak dependencies to avoid strange build problems for Commercial builds.
2016-11-14pdf: Don't pass form UI events to link annotations.Tor Andersson
Don't try handling them both as links and form widgets.
2016-11-14pdf: Use URI dictionary for relative URIs.Tor Andersson
2016-11-14gl: Only force a ui redraw when link is clicked, not just highlighted.Tor Andersson
2016-11-14js: Update docs for annotation functions (WIP).Tor Andersson
2016-11-14Fix return in void function.Tor Andersson
2016-11-14Continued Layer API work.Robin Watts
Hide pdf_is_hidden_ocg from the public interface. Ensure that RBGroups and Order properly fall back to the default entries if they are missing in the OCCDs. Add pdf_set_layer_config_as_default. This sets the default layer config to be current one. This destroys the current default dictionary, but we leave the other configs intact.
2016-11-14More API tweaks.Robin Watts
Move internal functions from public to private headers.
2016-11-14Make fz_buffer structure private to fitz.Robin Watts
Move the definition of the structure contents into new fitz-imp.h file. Make all code outside of fitz access the buffer through the defined API. Add a convenience API for people that want to get buffers as null terminated C strings.
2016-11-14Workaround 0 line-width strokes in svg output.Robin Watts
A line width of 0 has special meaning in PDF files. SVGs don't understand it, so modify our SVG output device to send all line widths smaller than 1 as being 1.
2016-11-14Bug 697336: Be more explicit about where to edit config.hRobin Watts
2016-11-14Add/fix page coordinates to link targets.Tor Andersson
Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML.
2016-11-14gl: Add macOS support.Tor Andersson
2016-11-14Add optional 'object' argument to pdf_add_stream.Tor Andersson
2016-11-11API improvements.Robin Watts
Add missing API comments. Move private definitions to implementation headers or C files. Move internal functions to implementation headers.
2016-11-11Update JNI code to compile on Win32 and Win64.Robin Watts
Just some typecasting required.
2016-11-11Add simple layer configuration feature to mutool draw.Robin Watts
This commit adds a new -y flag to mutool draw. -y takes an additional argument - this can either be a single 'l' meaning "list the layer configs available", or a comma separated list of numbers. The first number in the list says which "layer config" to select. Subsequent numbers identify lines in the config to toggle. For instance I might do: mutool draw -y l -o out.png layers.pdf and this will list me the layer configs in the file (as well as rendering normally). From this I might choose layer config 0: mutool draw -y 0 -o out.png layers.pdf This will select layer config 0, and show a table (max 1 layer per numbered line) that shows which layers are on or off. If I then decide that I want layers 3 and 4 to be toggled from their default state, I can run: mutool draw -y 0,3,4 -o out.png layers.pdf Short of implementing an interactive configuration mode, this is the simplest way to demonstrate the layer functionality.
2016-11-11Add pdf_layer configuration API.Robin Watts
Add API to: * allow enumeration of layer configs (OCCDs) within PDF files. * allow selection of layer configs. * allow enumeration of the "UI" (or "Human readable") form of layer configs. * allow selection/toggling of entries in the UI.
2016-11-10Add mutool option (-l) for setting the minimum line width.Robin Watts
2016-11-10Add some more lines to .gitignoreRobin Watts
2016-11-10Add minimum line width configuration option.Robin Watts
2016-11-08Clean up braces and indentation in fz_paint_affine_near/lerp.Tor Andersson
2016-11-08Change access to protected on parts of Image.java to allow AndroidImage to ↵fred ross-perry
build.
2016-11-08fix iOS app issue where deleted annotations don't properly disappear.fred ross-perry
2016-11-08Fix android warnings.Tor Andersson
2016-11-07Move fz_new_draw_device_with_options within file.Robin Watts
Move function definition to the bottom of the file. This keeps the debug/config #definery at the top of the file where it belongs.
2016-11-07Bug 697241: Fix blending through clips.Robin Watts
Non rectangular clips are currently handled by rendering to a 'isolated' background, and then plotting that through a mask. This runs into problems when the rendering needs to use non standard blend modes that need to access the background colors. Instead, copy the background to the new pixmap, render to that then plot that through the mask. This simplifies the painting code, because we now never have mismatched source and destination alphas.
2016-11-07Default background of luminosity masks should be black.Robin Watts
In CMYK groups this is NOT the same as "all components 0". This improves the rendering of Bug689931a.pdf
2016-11-07Fix DUMP_GROUP_BLENDS debugging code.Robin Watts
fz_save_pixmap_as_png has changed signature since this was last used.
2016-11-05Fix Memento bug.Robin Watts
while (i >= 0) { ... i -= 4; } doesn't work well when i is unsigned.
2016-11-04Avoid warning in memento builds.Robin Watts