summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-06-19Fix of winRT solution with changes to header files in mupdfMichael Vrhel
2013-06-19Addition of code to allow files to be opened from skydrive and for app to be ↵Michael Vrhel
file activated. Also fixed a few issues for when we open a new file and close the current contents. There was an issue with the displaylist cache clean up.
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-19Fix win32, with-openssl buildPaul Gardiner
Also correct a comment
2013-06-19Update Win32 project with new header files.Robin Watts
2013-06-18Fix win32 and javascript build.Tor Andersson
2013-06-18Add gen_ prefix to generated header files.Tor Andersson
2013-06-18Fix makefile header dependencies.Tor Andersson
2013-06-18Move fz_write_pixmap wrapper into pdfextract (its only user).Tor Andersson
2013-06-18Split pdf.h into subheaders.Tor Andersson
2013-06-18Add explicit #include for header file interdependencies.Tor Andersson
2013-06-18Split fitz.h into subheaders.Tor Andersson
2013-06-18Fix win32 project files.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-17Tweaks to ink annotation for smoothness.Paul Gardiner
Patch from "andyhan2000" to make the ink annotations smoother.
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-14Missing update for slider when page is already rendered.Michael Vrhel
2013-06-14Fix error handling in WinRT code (that I broke).Robin Watts
Just before pushing the previous commit of Michaels, I removed an fz_var, thinking it wasn't required. After discussing it with him I realise that it was needed, so reintroduce it here with another error handling tweak. Apologies!
2013-06-14Addition of locking cache for display list in winRT libraryMichael Vrhel
2013-06-14Addition of zoom in and zoom out control on top app bar.Michael Vrhel
Also rework of some UI interactions to avoid zooming, text search, etc when in a specialized view like contents or reflow (webview)
2013-06-14Addition of display list rendering in WinRT libraryMichael Vrhel
The display list rendering is used when scaling within the current page to enable quicker response.
2013-06-13Bug 694313: Fix potential double frees of objectsRobin Watts
Thanks to zeniko for spotting these.
2013-06-13Fix typos in comments.Robin Watts
Spotted by Vincent Torri. Many thanks!
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-13Bug 694315: Fix locking problem in error case.Robin Watts
In some cases, the existing code can leave the GLYPHCACHE lock held if an error occurs during type3 rendering. Correct this oversight. Thanks to zeniko for spotting the bug and providing a fix.
2013-06-13Remove stray code from last commit.Robin Watts
When creating the previous commit, I considered an alternative way of working. While we didn't use this in the end, I forgot to remove it from the code before committing. Stripping it out here. Sorry.
2013-06-13Bug 694303: Fix various problems in pdf parsingRobin Watts
Spot a 'startxref' of 0 as being an error; otherwise the code falls through and we SEGV. Also update the pdf_repair_obj function to cope better with the new way we parse ints. Previously we parsed ints into the buffer and atoi'd them there - to step backwards over the int was therefore a matter of stepping backwards over the specified number of chars. In the 'new' code (now quite old) we parse ints directly, hence we cannot do this stepping back. Also, stepping backwards by more than 1 byte is risky anyway. We therefore adopt a smarter approach of returning the next lexed token from pdf_repair_obj. Thanks to zeniko for reporting these problems and providing a test file.
2013-06-12Call begin/end page in pdfapp.Tor Andersson
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-12Some Makefile cleanups.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-08Silence warning.Tor Andersson
2013-06-08Add ctags make target.Tor Andersson
2013-06-08Update openjpeg submodule with ARM build fix.Robin Watts
2013-06-08Fix for crash if no file present and links button pressed.Michael Vrhel
2013-06-08Fix up of winrt project so that all the configs and platforms compileMichael Vrhel
2013-06-08Remove debug prints from the file spec parsing codeSebastian Rasmussen
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-05Maintain the separation of xref sections when loading a documentPaul Gardiner
Also on first alteration create a further section to hold the updates. This is in preparation for supporting incemental update.
2013-06-05Rework the xref loading code in preparation for separately holding sectionsPaul Gardiner
Now directly read the sections handling trailers as we go, rather than processing the most-recent trailer up front. Handle XRefStm separately from the main section-loading loop so as to ignore Prev when it occurs in a XRefStm (as specified in the spec). That has the side-effect of avoiding recursion.
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-03fix MSVC compilation warnings in appszeniko
* pdfapp_save in pdfapp.c contains unreachable code (and could be simplified by inverting most of the checked conditions) * RegSetValueExA expects a const BYTE pointer instead of a char pointer (warns about signedness mismatch) * same for SendMessageA where -1 is signed even though WPARAM isn't Also, there's no need to include mupdf.h, muxps.h, etc. at the top of applications which only use the fz_* API (fitz.h comes included with pdfapp.h).
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.