summaryrefslogtreecommitdiff
path: root/platform/x11
AgeCommit message (Collapse)Author
2018-11-13Bug 692592: Handle relative file links.Tor Andersson
The core library doesn't know where a document comes from, since we can open it as a stream, etc. Let the viewer handle relative file URLs.
2018-11-13Bug 696569: Get rid of drop shadow and use black background when inverted.Tor Andersson
2018-11-12Fix 697783: Invert mouse wheel mapping in mupdf-win32.Tor Andersson
A positive wParam value maps to button rotated forward, away from the user, which is equivalent to button 4 in X11.
2018-11-09Fix 698734: Use invoked binary name in usage message for mupdf-x11.Mohamad Barbar
2018-11-09Fix 698320: Add 'z' keybinding to reset zoom.Tor Andersson
This matches the behaviour of mupdf-gl.
2018-11-09Fix 696302: Support numeric keypad arrow keys in mupdf-x11.Tor Andersson
2018-11-09Fix 697461: Use floating point resolution in mupdf-x11.Tor Andersson
Fitting the page to the screen needs more precision than an integer DPI.
2018-11-08Fix 699336: Add more levels to mupdf-x11 zoom list.Tor Andersson
2018-11-07Fix 700131: Reverse ctl+wheel zoom direction.Tor Andersson
Behave like Firefox, Gimp, etc.
2018-10-23Remove extra blank lines.Tor Andersson
2018-08-20Fix the Windows build.Paul Gardiner
Offer signing support only if we have libcrypto.
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-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-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-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-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-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-03-22Clean up windows ifdefs.Tor Andersson
_WIN32 is always defined on windows (it means the WinAPI is available). _WIN64 is also defined on 64-bit targets. This means the test for defined(_WIN32) || defined(_WIN64) is redundant, since if _WIN64 is defined, then _WIN32 is always also defined. MSC_VER is only defined for MSVC, so split the ifdef sections in include/fitz/system.h into separate MSVC and WIN32 parts so that we can build with MinGW and other non-MSVC compilers on windows.
2018-03-07Fix 699081: Missing coordinate transformation when copying text.Tor Andersson
2018-02-27Remove pdf_xobject wrapper struct.Tor Andersson
Just use the pdf_obj directly. Revise ap_iteration and split annot->dirty into separate flags. One flag for needs_new_ap, and one for has_new_ap (to be used by clients who may have cached a rendered annotation).
2018-02-27Use text encoding for pdf_choice_widget options and values.Tor Andersson
Adds a requirement on the caller to free the returned strings.
2018-02-02Signature support: add a null pdf_check_signature functionPaul Gardiner
Add a version of pdf_check_signature function that reports no support, for builds without openssl. This allows the removal of ifdefs from the apps.
2018-02-02Signature support: decouple mupdf from the pkcs7 implementationPaul Gardiner
The mupdf build included an implimentation of the pkcs7 functions that are needed for signing documents and verifying signatures, the implementation being either an openssl-based one, or a stub that returned errors. This commit removes the pkcs7 functions from the main mupdf library. For the sake of verification, there wasn't really a need for the pkcs7 functions to be part of mupdf. It was only the checking function that used them. The checking function is now provided as a helper, outside of the main build. The openssl-based pkcs7 functions area also supplied as a helper. Users wishing to verify signatures can either use the checking function directly, or use the source on which to base their own. Document signing requires more integration between mupdf and pkcs7 because part of the process is performed at time of signing and part when saving the document. Mupdf already had a pdf_pkcs7_signer object that kept information between the two phases. That object has now been extended to include the pkcs7 functions involved in signing, and the signing function now requires such an object, rather than a file path to a certificate. The openssl-based pkcs7 helper provides a function that, given the path to a certificate, will return a pdf_pkcs7_signer object. The intention is that different implementations can be produced for different platforms, based on cryptographic routines built into the operationg system. In each case, for the sake of document signing, the routines would be wrapped up as a pdf_pkcs7_signer object.
2018-01-19Perform signature verification via fz_streamPaul Gardiner
Previously, signature verification worked only for file-based documents and the file path had to be passed into the verification function.
2017-12-13Fix 698787: avoid using "system()" to copy files.Tor Andersson
2017-11-22jni: Make sure to dirty annotation whenever it changes.Fred Ross-Perry
2017-11-22Prefer using fz_snprintf over snprintf.Sebastian Rasmussen
This way the MuPDF library itself only uses fz_snprintf for consistent formatting.
2017-11-08Use fz_snprintf in preference to snprintf.Robin Watts
If nothing else, this avoids warnings on VS2005.
2017-11-01Use int64_t for public file API offsets.Tor Andersson
Don't mess with conditional compilation with LARGEFILE -- always expose 64-bit file offsets in our public API.
2017-09-07Make sure to always drop a fz_device even upon error.Sebastian Rasmussen
2017-08-21Remove redundant fz_stext_char_bbox function.Tor Andersson
2017-08-17Simplify stext structure and device.Tor Andersson
* Use pool allocator and linked lists for all levels. * Remove separate fz_stext_sheet struct. * Remove unused 'script' style. * Remove 'span' level items. * Detect visual/logical RTL layouts. * Detect indented paragraphs.
2017-07-19Add spots to fz_pixmaps.Robin Watts
Update separations interface further to cope with whether spots should be rendered separately, or as composite colors.
2017-07-06pdfapp: Warn when outline fails to load.Sebastian Rasmussen
2017-07-06pdfapp: Handle PDF javascript not loading.Sebastian Rasmussen
2017-06-16Windows MuPDF viewer; add ability to start on a given page.Robin Watts
Same mechanism as the x11 version: mupdf.exe in.pdf 10
2017-06-06Declare missing functions in header files.Sebastian Rasmussen
2017-06-06Declare functions without arguments as taking void.Sebastian Rasmussen
2017-05-31Avoid double literals causing casts to float.Sebastian Rasmussen
2017-05-04Drop FZ_PATH_MAX macro.Tor Andersson
Define PATH_MAX in the few files that use it, should it be missing.
2017-04-27Include required system headers.Tor Andersson
2017-04-27Use FZ_PATH_MAX.Tor Andersson
PATH_MAX is Linux specific.