summaryrefslogtreecommitdiff
path: root/fitz
AgeCommit message (Collapse)Author
2013-06-05Change in doc_document.c to account for oxps type. Also error catching when ↵Michael Vrhel
file fails to open. Removal of null checks for object freeing in interface to mupdf.
2013-06-03make dev_bbox take clips into accountzeniko
Currently, dev_bbox creates a union of all bounding boxes of paths, text and images. If any of these are however clipped away or inside a tile, they should be ignored.
2013-06-03prevent memory leak and unexpected exceptionzeniko
fz_free_device usually doesn't throw (throwing in clean-up code is quite pointless anyway) but freeing the text extraction device might do so under memory pressure. This patch catches any potential exception to guarantee a proper clean-up.
2013-06-03prevent deadlock under memory pressurezeniko
In multiple places, between acquiring and releasing the FREETYPE lock, exceptions may be thrown which aren't caught in order to properly release the lock. This patch introduces the necessary fz_try/fz_always/ fz_catch invocations to prevent a potential deadlock in these situations. RJW: Also fix another problem pointed out by zeniko. Thanks!
2013-06-03Improve rendering of fts_15_1506.pdfRobin Watts
Negative xstep or ysteps cause problems.
2013-05-31Fix typo in text extraction RTL pass.Tor Andersson
2013-05-30Add fz_puts to the fz_output bestiary.Robin Watts
2013-05-30Check signatures on clicking the corresponding form fieldPaul Gardiner
2013-05-30Add functions to return digital signature infoPaul Gardiner
2013-05-29Rename some find/lookup functions to be in line with documentation.Tor Andersson
2013-05-29Silence warnings.Tor Andersson
2013-05-27Treat multiple whitespace in search strings as single.Robin Watts
Skip over successive whitespace in search string. Make android use text_search.c
2013-05-27Strip trailing whitespace.Tor Andersson
2013-05-24Avoid assert, and pull in changes.zeniko
Fix from zeniko.
2013-05-24Fix from zeniko for memory leak in fz_load_jpxRobin Watts
2013-05-24Update build to use the latest openJPEG2Shailesh Mistry
2013-05-22Bug 693503: Fix infinite loop within JPEG2K stream reading.Robin Watts
The openjpeg stream reading code is supposed to return -1 to mean 'EOF'. Update our implementation in line with this. This stops samples_mupdf_001/402.pdf.SIGSEGV.2e4.2672 going into an infinite loop.
2013-05-22Update OpenJPEG to v2.0.0.Robin Watts
2013-05-22Fix end-of-line handling in text search.Tor Andersson
2013-05-22Fix typo in comment.Tor Andersson
2013-05-21Fix app breakages.Robin Watts
Android app was still thinking that we had only one fz_device_rgb rather than one per context. Android app had a typo in resulting in searching ending in an infinite loop. Text search failed to search outside the first block of each page.
2013-05-21Add monochrome PWG output routines.Robin Watts
2013-05-21Split PWG code into a separate file.Robin Watts
2013-05-21Add PWG options structure for writing PWGs.Robin Watts
This should (pretty much) give us enough to write a mupdftoraster equivalent of gstoraster.
2013-05-16Add colorspace context.Tor Andersson
To prepare for color management, we have to make the device colorspaces per-context and able to be overridden by users.
2013-05-16Reorder #ifdef's in base_time.cTor Andersson
2013-05-16Merge branch 'winRT2'Robin Watts
2013-05-16Miscellaneous tidying.Robin Watts
Remove stray win32 changes. Update indentation style.
2013-05-16Code cleanup and removal of c++ if def in fitz headersMichael Vrhel
2013-05-16Fix for merge of golden commits as well as initial attempt at html viewing. ↵Robin Watts
Issues exist though in the xaml WebView object used in the windows UI.
2013-05-16Major clean up of winRT visual studio project.Robin Watts
Now works with ARM, x64, Win32 plus Memento
2013-05-16Initial commit of windowsRT viewer code.Michael Vrhel
Lots of issues to resolve still and plenty of requirements to do but it is a start.
2013-05-16Add PWG raster output to mudraw.Robin Watts
2013-05-14svgwrite: First attempt at an SVG output device.Robin Watts
No font support (just font names are sent through). No group support. No shading support. No image mask support. Line art, text position/size, bitmaps, clipping all seem to work though.
2013-05-10Tweak png outputting functions.Robin Watts
Allow us to get an image as a png in a buffer.
2013-05-10Update fz_bound_{text,path} functions.Robin Watts
Pass stroke state into fz_bound_text to allow for stroked text. Simplifies some calling code. Add consts to clarify the meanings of the calls.
2013-05-06Fix formatting.Tor Andersson
2013-05-06Add simple visual-to-logic RTL reordering as a text extraction pass.Tor Andersson
2013-05-06Use linked list for text spans.Tor Andersson
2013-05-03Simple Image file format recogniserRobin Watts
Now can open jpeg/png/tiff files within mupdf.
2013-04-30Move fz_normalize_vector into base_geometry.cTor Andersson
2013-04-30Split dev_text into three parts.Tor Andersson
One for the raw span extraction pass, one for paragraph sorting, and another for HTML output.
2013-04-30Move device hint functions to a more appropriate source file.Tor Andersson
2013-04-29Fix copyright statementsSebastian Rasmussen
2013-04-29Bug 693939: Fix memory problems.Robin Watts
2 more memory problems pointed out by mhfan - many thanks. In the text device, run through the line height list to it's length, not to it's capacity. In the X11 image code, when copying data unchanged, copy whole ints, not just the first quarter of the bytes.
2013-04-29Add Memento build option to Android build. Fix memory leaks.Robin Watts
Following up on a report from a potential customer, fix various places in mupdf.c where we were leaking memory (devices not freed, context not properly freed etc). In order to track this down, I added a Memento build - just do: ndk-build MEMENTO=1 when building. This only checks for leaks, not for memory overwrites by default as it uses MEMENTO_LEAKONLY to avoid any possibility of the android kernel killing stuff for being too slow or using too much memory.
2013-04-29Fix various leaks in the dev_text device.Robin Watts
Thanks to mhfan for the reports.
2013-04-26Rename functions for consistency.Robin Watts
Rename fz_new_output_buffer to be fz_new_output_with_buffer. Rename fz_new_output_file to be fz_new_output_with_file. This is more consistent with other functions such as fz_new_pixmap_with_data.
2013-04-26Fix SNAFU in the store handling.Robin Watts
When the store fills up, the existing code throws away items to make room. Due to a silly oversight (not updating the 'size' after each round of evictions) it keeps throwing away repeatedly until it fails. Fix that here. Should make the store more efficient.
2013-04-26Multi-threaded store SEGV fixes and debug improvements.Robin Watts
Fix race condition in the store. When storing an item, we immediately put it into the hash (thus getting our existence check). We then check and try to free enough space for it in the budget. If we cannot free enough, we remove the item from the hash. The race condition comes if someone else finds it in the hash in the meantime. To fix this, we update all 'finds' of things in the hash to move it to the head of the LRU chain (regardless of whether it was in the chain before or not). We only remove it from the hash in the 'failed-to-fit-in-the-budget' case if it's not in the chain already. Also, we fix a bug in the "failed to fit" removal case where we were failing to realise that the the pos pointer was not valid any more. In the course of tracking this bug down various debug functions were improved. These are committed here too.