summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-06-25Update ios project for reshuffle.Tor Andersson
2013-06-25Rid the world of "pdf_document *xref".Robin Watts
For historical reasons lots of the code uses "xref" when talking about a pdf document. Now pdf_xref is a separate type this has become confusing, so replace 'xref' with 'doc' for clarity.
2013-06-25Update pdf_obj's to have a pdf_document field.Robin Watts
Remove the fz_context field to avoid the structure growing.
2013-06-24Shrink pdf_obj type by using a flags word, and moving refs to a short.Robin Watts
'marked' moves into the flags word. 'kind' becomes an unsigned char. 'sorted' moves from in the dictionary specific bit of the object into the flags word. This should shrink us by 8 bytes.
2013-06-24Update annotation handling in preparation for incremental updatePaul Gardiner
When incremental update is in place, functions that alter one structure may have the side-effect of altering another: i.e., updating an annotation may require the Annots array or even the page to be cloned. This commit makes the existing annotation code hardy to this eventuallity. It also cleans up a slight mess of the past where not all annotation-altering functions had access to the pdf_annot struture, instead having to work with just the pdf object.
2013-06-24Update gitignore to account for the shufflePaul Gardiner
2013-06-24Free fz_context at end of win32 appPaul Gardiner
2013-06-24fix recent regressionszeniko
* at one place, code returns from inside an fz_try which borks up the error stack * pdf_load_xref wrongly assumes that at least one non-empty xref has been read if there were no errors thrown during parsing * pdf_repair_xref skips integers when object numbers are out of range
2013-06-24Fix "make all-nojs" target.Tor Andersson
2013-06-21Initial PDF editing/page creation commitRobin Watts
2013-06-21Fix Android builds.Robin Watts
Had to rejig the thumb entry/exit veneers to allow for NDK_PROFILER operation, but this seems to have negated the need for Core2.mk, so removed that here.
2013-06-20Fix default make target.Tor Andersson
2013-06-20Rename fz_image_to_pixmap to fz_new_pixmap_from_image.Tor Andersson
Match our naming conventions.
2013-06-20Update source, makefiles and win32 projects.Tor Andersson
2013-06-20Rearrange source files.Tor Andersson
2013-06-20Comment fixes (rename fz_ to pdf_ was missed)Robin Watts
2013-06-19Fix up of issues in Windows 8 app prior to submission to Windows storeMichael Vrhel
Fix of logos and icons to match Android and iOS applications. Switch to using DLL for the mupdf winRT library. Static libraries for winRT defined calls is not allowed. Added linker options for security issues. Also fix of some circular header/namespace issues.
2013-06-19Android build fixes.Robin Watts
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-19Use subdirs in build directory for thirdparty libraries.Tor Andersson
2013-06-19Fix exception handling changes in X11 app.Tor Andersson
2013-06-19Move pixmap md5 summing into pixmap.cTor Andersson
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.