Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
Tested with msysgit 1.8.3 environment.
|
|
Remove fz_free_display_list from the API; instead use fz_drop_display_list.
|
|
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.
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
file fails to open.
Removal of null checks for object freeing in interface to mupdf.
|
|
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.
|
|
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.
|
|
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!
|
|
Negative xstep or ysteps cause problems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Skip over successive whitespace in search string.
Make android use text_search.c
|
|
|
|
Fix from zeniko.
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
This should (pretty much) give us enough to write a mupdftoraster
equivalent of gstoraster.
|
|
To prepare for color management, we have to make the device colorspaces
per-context and able to be overridden by users.
|
|
|
|
|
|
Remove stray win32 changes. Update indentation style.
|
|
|
|
Issues exist though in the
xaml WebView object used in the windows UI.
|
|
Now works with ARM, x64, Win32 plus Memento
|
|
Lots of issues to resolve still and plenty of requirements to do but it is a start.
|