summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2018-09-07jni: Check exposed constants for consistency with C constants.Sebastian Rasmussen
2018-09-07jni: Remove unused flags and improve the names of some others.Sebastian Rasmussen
2018-09-07jni: Depend on fz_buffer() for default buffer size.Sebastian Rasmussen
2018-09-07jni: Make Device interface abstract.Sebastian Rasmussen
This requires subclasses of Device to implement its full interface. It also makes the compiler complain if there is a difference between the interface in Device and its subclasses. The drawback is that all Devices are required to implement all methods, but that is an easy hurdle to overcome. This change found the discrepancies between the Device, NativeDevice and TraceDevice interfaces fixed in the previous commits.
2018-09-07jni: Update TraceDevice to adhere to Device interface.Sebastian Rasmussen
Several previous updates to the Device interface required updates to TraceDevice but were forgotten.
2018-09-07jni: Improve whitespace situation in TraceDevice.Sebastian Rasmussen
2018-09-07jni: Update NativeDevice to adhere to Device interface.Sebastian Rasmussen
2018-09-07jni: Make Device interface in Java and JNI correspond to each other.Sebastian Rasmussen
2018-09-07jni: Fix typo in ColorParams.Sebastian Rasmussen
2018-09-06jni: Remove redundant public access modifier.Sebastian Rasmussen
Abstract methods in interfaces offer no implementation and are implicitly declared public, making a public access modifier redundant.
2018-09-06jni: Add interface for snapping selection to structured text.Sebastian Rasmussen
2018-09-06jni: Add StructuredTextWalker interface.Sebastian Rasmussen
2018-09-05gl: Close password dialog when pressing Escape key.Tor Andersson
2018-09-05gl: Allow varying font sizes in text rendering.Tor Andersson
2018-08-31Visual Studio Solution tweaks.Robin Watts
Ensure that the generated libmupdf includes all library dependencies within it. This makes life easier for people linking MuPDF into their own projects as there is just one lib to include rather than a range of them that vary according to condfiguration. Fix 64bit Memento builds of libpkcs7. Remove double definitions of jpeg_get_small etc that are now shown up because of the libraries being merged into one.
2018-08-21gl: Don't forget to terminate the string when clearing a text field.Tor Andersson
2018-08-20Fix the Windows build.Paul Gardiner
Offer signing support only if we have libcrypto.
2018-08-10The proper term is apparently 'filename extension', not 'suffix'.Tor Andersson
2018-08-10gl: Add glutLeaveMainLoop workaround for Apple's GLUT library.Tor Andersson
2018-08-10Use proper name space for form field flag constants.Tor Andersson
2018-08-10Tweak hexdumped data to increase build portability.Tor Andersson
Follow bin2coff layout for hexdumped data instead of trying to emulate the objcopy layout (which seems to break for the android tools). Only use the basename of the resource in hexdump / bin2coff. Ifdef on HAVE_OBJCOPY instead of _WIN32.
2018-08-10Fix Android java build.Tor Andersson
2018-08-10Respect NoRotate flag for icon-based annotations.Tor Andersson
2018-08-10Use stubs instead of conditional compile with HAVE_LIBCRYPTO.Tor Andersson
The macro is only set when building the pkcs7-helper library, so cannot be used by client code. Build stub functions when compiling the pkcs7-openssl helper library without libcrypto.
2018-08-10Add digital signature UI stubs to mujstest.Tor Andersson
2018-08-10gl: Adobe allows border widths from 0 to 12.Tor Andersson
2018-08-10FIXUP pdf_update_page: use JNI_FALSETor Andersson
2018-08-10Rejig pdf_update_page and pdf_update_annot.Tor Andersson
The intent is for a user to iterate over the annotations on a page calling pdf_update_annot for each one. If this function returns true, then the annotation has changed since the last time it was called, and the user needs to re-render. pdf_update_page is a simple loop over the annotations on a page, for use if you only care about page level granularity. Users should no longer look at or change the pdf_annot.has_new_ap field.
2018-08-01Update jbig2dec.Sebastian Rasmussen
2018-07-17Have pdfapp_save close and reopen the document in all casesPaul Gardiner
We need to do this, because much can change on saving, objects renumbered and moved, and we could run into inconsistencies between the file and in-memory information. This function was already reopening in the case of saving back to the same file, but in other cases.
2018-07-17Add MementoOpenSSL configurations.Robin Watts
2018-07-09Silence gcc warnings about non-const arguments.Sebastian Rasmussen
2018-07-06Only do signing if HAVE_LIBCRYPTO is defined.Robin Watts
2018-07-06Fix stray consts.Robin Watts
2018-07-06gl: Add signing UI for Digital Signatures.Tor Andersson
All the "Sign" button does for now is recreate the appearance stream.
2018-07-06gl: Multi-line labels.Tor Andersson
2018-07-05Signature support: add signing support to the windows appPaul Gardiner
2018-07-05Add fz_transform_page helper function.Tor Andersson
Create a matrix that transforms a page with resolution and rotation, and grid fits the resulting bounding box.
2018-07-05Pass rects by value: device and document interface.Tor Andersson
2018-07-05Pass matrices by value: device and document interface.Tor Andersson
2018-07-05Pass rect and matrix by value in geometry functions.Tor Andersson
Several things irk me about passing values as const pointers: * They can be NULL, which is not a valid value. * They require explicit temporary variables for storage. * They don't compose easily in a legible manner, requiring weird pointer passing semantics where the variable being assigned is hidden as an argument in the innermost function call. * We can't change the value through the pointer, requiring yet more local variables to hold copies of the input value. In the device interface where we pass a matrix to a function, we often find ourselves making a local copy of the matrix so we can concatenate other transforms to it. This copying is a lot of unnecessary busywork that I hope to eventually avoid by laying the groundwork with this commit. This is a rather large API change, so I apologize for the inconvenience, but I hope the end result and gain in legibility will be worth the pain.
2018-07-05gl: Poll changed annots with pdf_update_page, and clear after rendering.Tor Andersson
2018-07-04Add fz_snap_selection function to snap selection to chars/words/lines.Tor Andersson
Updates the input point coordinates, and also returns a quad with appropriate UI handles.
2018-07-04gl: Track modifier keys during mouse events too.Tor Andersson
2018-07-04Rename pdf_get_annot_contents to pdf_annot_contents.Tor Andersson
Since the function no longer returns ownership of the string, use the common naming convention.
2018-07-04java: Fix bugs introduced when caching text strings in pdf_obj.Tor Andersson
2018-06-22Update base 14 fonts to URW++ release from 2017-07-27.Tor Andersson
The Dingbats and Symbol fonts have not been changed.
2018-06-22Use fz_quad type in structured text and selection/highlighting.Tor Andersson
2018-06-22Keep copy of decoded utf8 text string in pdf_obj.Tor Andersson
Removes the need to alloc/free text strings in the API, allowing for simple functions like pdf_dict_get_text_string.
2018-06-22gl: Edit widget values in annotation editor.Tor Andersson