Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-01-08 | Use a binned cache for font encoding lookups. | Tor Andersson | |
It's slower, but will work for CJK fonts as well. | |||
2016-01-08 | Optimize font advance and encoding caches. | Tor Andersson | |
2016-01-08 | pdf: Add function to look up the page for a named destination. | Tor Andersson | |
2016-01-08 | pdf: Fix pdf_annot memory leak. | Tor Andersson | |
2016-01-08 | Fix conditional jump or move depends on uninitialised value. | Tor Andersson | |
stm.avail_out is only set if !only_metadata. Reverse the order of the if tests to silence valgrind. | |||
2016-01-08 | Tweak lex_number to avoid (or minimise) underflow | Robin Watts | |
Keeps operations in the int domain as long as possible, and only resorts to floats if required. | |||
2016-01-06 | Squash some warnings | Robin Watts | |
2016-01-06 | epub: Cache font encoding lookups. | Tor Andersson | |
Add a caching table for the lower planes of unicode, which cover the latin, greek, cyrillic, hebrew and arabic scripts. | |||
2016-01-06 | epub: Only look for CSS in html head node. | Tor Andersson | |
2016-01-06 | epub: Speed up css application by sorting the matched property list. | Tor Andersson | |
2016-01-06 | js: Fix error handling bugs and one scoping bug. | Tor Andersson | |
js_pcall was leaving crap on the stack in case of errors. AFSimple_Calculate needs access to the doc object, but cannot use the usual 'this' binding since it's a function. Add a global reference to the doc object MuPDF_Doc. | |||
2016-01-06 | epub: Optimize CSS selector matching. | Tor Andersson | |
Remove strcpy and strtok calls when matching class conditions. | |||
2016-01-05 | Separate pdf_drop_annots (that drops lists) and fz_drop_annot. | Tor Andersson | |
2016-01-05 | Add pixmap struct accessors. | Tor Andersson | |
2016-01-05 | Stylistic naming cleanups. | Tor Andersson | |
2016-01-05 | Clean up trailing whitespace. | Tor Andersson | |
2016-01-05 | Change fz_ftoa to fz_grisu to remove one extra layer of function calls. | Tor Andersson | |
2016-01-05 | Speed up fz_ftoa. | Simon Reinhardt | |
During pdf_save_document the main performance bottleneck is the formatting of floats to decimal ASCII representations in fz_ftoa. Fix this by using the Grisu2 algorithm, the fastest known algorithm for accurate printing of IEEE floating point numbers while minimizing the number of produced decimal digits. This requires no libc support, only integer arithmetic. | |||
2016-01-05 | epub: Speed up CSS style application by using faster strtod. | Tor Andersson | |
CSS doesn't need precision, and doesn't support exponential notation. Use a simpler string to float conversion algorithm, which is magnitudes of order faster. | |||
2016-01-05 | epub: Speed up font layout by caching freetype advance widths. | Tor Andersson | |
2016-01-05 | Clarify snprintf length when printing to fz_buffer and fz_output. | Tor Andersson | |
The +1's for zero terminating bytes are not needed: printf to a fz_buffer or fz_output does not write a zero terminator. The extra code to add space for a zero terminator when calling snprintf internally are merely confusing. | |||
2016-01-05 | Remove fz_page argument from fz_annot function calls. | Tor Andersson | |
2015-12-28 | Drop 'jsimp' abstraction and use mujs directly. | Tor Andersson | |
2015-12-28 | Rename fz_image_get_pixmap to fz_get_pixmap_from_image. | Tor Andersson | |
2015-12-18 | Rename fz_image_get_sanitised_res to fz_image_resolution. | Tor Andersson | |
2015-12-18 | Remove fz_save_document and use pdf_save_document directly instead. | Tor Andersson | |
In preparation of adding pdf_write_document that writes a document to a fz_output stream. | |||
2015-12-18 | Rename fz_halftone_pixmap to fz_new_bitmap_from_pixmap. | Tor Andersson | |
2015-12-15 | Rename fz_buffer_cat to fz_append_buffer. | Tor Andersson | |
2015-12-15 | Rename fz_output_x to fz_write_pixmap_as_x etc. | Tor Andersson | |
2015-12-15 | Rename fz_write_x to fz_save_pixmap_as_x or fz_save_bitmap_as_x. | Tor Andersson | |
Separate naming of functions that save complete files to disk from functions that write data to streams. | |||
2015-12-14 | Add fz_clone_path | Robin Watts | |
Will be required for JNI bindings. | |||
2015-12-14 | Add fz_clone_text | Robin Watts | |
Will be required for JNI bindings. | |||
2015-12-14 | Add 'const' to the context lock and alloc structure pointers. | Robin Watts | |
This highlights the fact that we never alter the internals, and allows callers to pass in static const pointers. | |||
2015-12-14 | Add user context field. | Robin Watts | |
This may help the MuPDF JNI code, so it's likely to be useful for other users too. | |||
2015-12-14 | Fix signed/unsigned warning. | Robin Watts | |
Seen with MSVC. | |||
2015-12-11 | Remove text clip accumulation. | Tor Andersson | |
We can now group all clipped text into one fz_text object and simplify the device interface. | |||
2015-12-11 | Keep spans of multiple fonts and sizes in one fz_text object. | Tor Andersson | |
2015-12-11 | Rename structured text structs and functions to 'stext'. | Tor Andersson | |
Less risk of confusion with the text type used in the device interface. | |||
2015-12-11 | Use fz_output instead of FILE* for most of our output needs. | Tor Andersson | |
Use fz_output in debug printing functions. Use fz_output in pdfshow. Use fz_output in fz_trace_device instead of stdout. Use fz_output in pdf-write.c. Rename fz_new_output_to_filename to fz_new_output_with_path. Add seek and tell to fz_output. Remove unused functions like fz_fprintf. Fix typo in pdf_print_obj. | |||
2015-12-11 | Fix warning about unused functions. | Tor Andersson | |
2015-12-11 | Use strerror for more detailed error messages. | Tor Andersson | |
2015-12-11 | xps: Simplify infinite loop check. | Tor Andersson | |
2015-10-29 | Fix 696303: Off-by-one error when checking for exception stack overflow. | Tor Andersson | |
2015-10-21 | Fix signatures for files created with pdf_create_document. | Simon Reinhardt | |
See Bug 696284. Do not set disallow_new_increments in pdf_create_document, as this breaks following calls to pdf_sign_signature. See also the comments in bug 696251. | |||
2015-10-19 | Fix 695582: add knockout group for text that is both stroke and fill. | Tor Andersson | |
2015-10-15 | Fix 696241: fix bracketing of begin_group/end_group for text objects. | Tor Andersson | |
2015-10-14 | Remove unused variable. | Michael Vrhel | |
2015-10-14 | Add proper support for when a combobox widget has options that are 2-element ↵ | Michael Vrhel | |
arrays The list box and combo box can have values that are 2-element arrays. The first element is the "export" value and the second element is the value that should be shown in the list box UI. This fix ensures that we get the proper value to show in the UI. Also, it adds the option to get the export values. These are needed if you wish to update the field dictionary's V (value) entry, which is the currently selected values(s). This fix works well with gsview. The other viewers will now display the proper content in their UI, (unlike before this fix) but may need a bit more work to ensure that the proper V (value) is updated with changes in the selections. In addition, we add selection rectangles to the selected list box items. | |||
2015-10-14 | Scale colors of JPEG2000 images with bit depths less than eight. | Tor Andersson | |
2015-10-14 | Fix incremental xref stream. | Simon Reinhardt | |
When writing incremental xref streams, the opts->use_list entry of the last object, i.e. of the xref stream object itself, was left uninitialized. This resulted in a random value, 0 or 1, being written into the xref stream. Also, always write a newline before the endstream keyword, as that shall be done for xref streams and should be done for all other streams. |