summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
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-03Removal of resource files from project.Michael Vrhel
2013-06-03Clean up of assets and manifest in preparation to submit to Windows App store.Michael Vrhel
Also added CBZ as input. Removed oxps since there appears to be an issue with that currently.
2013-06-03Added support for keyboard zooming (+/- key). Fixed issues when orientation ↵Michael Vrhel
changes. Also minor fixes for memory leaks in muctx.cpp, and clean up of some of the xaml code.
2013-06-03Fix for issue of link rectangle display when device is rotated.Michael Vrhel
The links rectangles need to be recomputed when we have a device orientation change occur. When a change in orientation occurs, the current rects are marked as being invalid and will be redrawn when needed.
2013-06-03Fix tile drawing problems with {x,y}step < width/heightRobin Watts
As seen in fts_15_1506.pdf
2013-06-03Improve rendering of fts_15_1506.pdfRobin Watts
Negative xstep or ysteps cause problems.
2013-06-03Fix SVG output.Robin Watts
Colorspace changes in mudraw had broken svg output.
2013-06-03Parse full PDF filespecs, not just filenamesSebastian Rasmussen
2013-06-03Do not print invalid hex character in warningSebastian Rasmussen
This means that warnings can now be rate limited.
2013-06-03Assume non-clang compilers support incbinSebastian Rasmussen