summaryrefslogtreecommitdiff
path: root/fitz
AgeCommit message (Collapse)Author
2013-06-20Rearrange source files.Tor Andersson
2013-06-19Exception handling fixes.Robin Watts
Various tweaks to ensure the exception handling works as expected when throwing error values. The key thing is not to reset the error value on a try, as this can cause problems when code calls trys in the always section.
2013-06-19Move pixmap md5 summing into pixmap.cTor Andersson
2013-06-19Exception handling changesRobin Watts
In preparation for work on progressive loading, update the exception handling scheme slightly. Until now, exceptions (as thrown with fz_throw, and caught with fz_try/fz_catch) have merely had an informative string. They have never had anything that can be compared to see if an error is of a particular type. We now introduce error codes; when we fz_throw, we now always give an error code, and can optionally (using fz_throw_message) give both an error code and an informative string. When we fz_rethrow from within a fz_catch, both the error code and the error message is maintained. Using fz_rethrow_message we can 'improve' the error message, but the code is maintained. The error message can be read out using fz_caught_message() and the error code can be read as fz_caught(). Currently we only define a 'generic' error. This will expand in future versions to include other error types that may be tested for.
2013-06-18Add gen_ prefix to generated header files.Tor Andersson
2013-06-18Move fz_write_pixmap wrapper into pdfextract (its only user).Tor Andersson
2013-06-18Merge common and internal headers into one.Tor Andersson
2013-06-18Move header files into separate include directory.Tor Andersson
2013-06-17Make common wchar_t / utf-8 conversion functions for MSVC tools.Tor Andersson
2013-06-17Add support to build command line tools on MINGW.Tor Andersson
Tested with msysgit 1.8.3 environment.
2013-06-13Make display lists reference counted objects.Robin Watts
Remove fz_free_display_list from the API; instead use fz_drop_display_list.
2013-06-12Fix tiling breakage from b975f1bRobin Watts
It seems that the code for begin_tile currently assumes that area is passed in untransformed. Maybe this is something we should look at, but for now commit it to revert the rendering problems.
2013-06-12Support begin/end page calls in text extraction device.Tor Andersson
2013-06-12Add begin_page and end_page calls to device interface.Tor Andersson
2013-06-12Clean up whitespace errors.Tor Andersson
2013-06-09Remove fz_interactive API in favour of direct use of pdf APIPaul Gardiner
2013-06-08Simple PCL outputRobin Watts
Mono only for now. Copy the appropriate fz_pcl_options for the printer required and pass that to fz_write_pcl_bitmap. Add pcl output to mudraw - .pcl produces laserjet 4 compatible pcl.
2013-06-05Fix XPS leaking fz_buffers for images.Robin Watts
fz_new_image_from_buffer was building a new buffer from the data in the supplied buffer, rather than just using the supplied buffer. Also move the code into line with our standards; don't pass ownership of the buffer.
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.