summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-08-16Bump version numbers to 1.1Tor Andersson
2012-08-16Use ULL suffix for SHA512 constants.Tor Andersson
2012-08-16Android: fix divide by zero errorPaul Gardiner
2012-08-16Read unsigned numbers in PNG parser to avoid negative numbersSebastian Rasmussen
Thanks to zeniko for pointing out this fix.
2012-08-16Adjust out of range tests for encryption key lengthsSebastian Rasmussen
Encryption keys for rev. 4 and prior may at most be 128-bits. Encryption keys for rev. 5/6 may only be 256-bits long Thanks to zeniko for pointing this out.
2012-08-16Add PDF 1.7 ExtensionLevel 8 encryption algorithmSebastian Rasmussen
Thanks to zeniko for implementing the algorithm.
2012-08-16Add SHA-384/-512 hash algorithmsSebastian Rasmussen
2012-08-16Prepare for addition of SHA-384/-512Sebastian Rasmussen
Adjust macros to make them reusable with 64-bit arithmetic. Rename functions to avoid future namespace collisions.
2012-08-16Make 64-bit integers available everywhere in fitzSebastian Rasmussen
2012-08-16Instead of giving error, throw exception when password is invalidSebastian Rasmussen
Previously this triggered an assertion in the cleanup code when freeing the partially opened document.
2012-08-16Silence some warnings.Robin Watts
Avoid the C++ code complaining about casting string literals to non-const char *'s.
2012-08-16Forms: respond to failed validation in windows appPaul Gardiner
2012-08-14Fix bug 693276: Mupdf/android gui widget overlapPaul Gardiner
Just fix a typo in the xml
2012-08-14Android: further increase the page-slider's resolution for small docsPaul Gardiner
2012-08-14Android: ensure the search dialog appears with correct initial progressPaul Gardiner
2012-08-14Fix bug 693227: Counter intuitive message on searching to last pagePaul Gardiner
Now selects between displaying "Text not found" and "No further occurences found"
2012-08-14Fix bug 693229: Mupdf/android has inconsistent search phrase highlightingPaul Gardiner
The highlights were unintentionally being cached between file invocations. In fact it was possible for the highlighting from one file to appear when opening another, even if those highlights didn't match words on the page. That could happen if both files happened to have been last opened on a common page (common in terms of page number).
2012-08-13Android: react to menu button.Paul Gardiner
Also change the search button to behave as a toggle.
2012-08-13bug 693225 android: Can't easily switch to last page using seek barPaul Gardiner
Fixed by doubling the seekbar resolution and rounding odd positions upwards.
2012-08-13Android: react to search buttonPaul Gardiner
2012-08-13Fix android build after last thirdparty updatePaul Gardiner
2012-08-12Fix comparison typo in encryption codeSebastian Rasmussen
2012-08-10Forms: handle Keystroke and Validate actionsPaul Gardiner
2012-08-10Forms: move js-side event setup out of execute_actionPaul Gardiner
Makes it easier to alter the setup for some action types
2012-08-10Forms: alter the handling of the javascript event objectPaul Gardiner
2012-08-09Forms: fix windows build after mergePaul Gardiner
No idea how it seemingly worked without these changes.
2012-08-09Fix bug 693245: pdf_new_rect()'s implementation is questionablePaul Gardiner
pdf_new_rect stored x0,y0,w,h. Now corrected to x0,y0,x1,y1. No current use is affected by the alteration, so no other changes are needed.
2012-08-08Give a warning when we ignore a transfer function.Robin Watts
Inspired by bug 693187.
2012-08-08Consistent use of whitespace in XML in trace device. Also print image size.Tor Andersson
2012-08-08ios: Bump version number.Tor Andersson
2012-08-08ios: use viewWillLayoutSubviews instead of layout out only after rotation.Tor Andersson
Handle the case where if the device is rotated while showing the outline view, popping back to the document view would show the pages using the old rotation layout.
2012-08-08Add delete button to iOS library view.Tor Andersson
2012-08-08Merge branch 'master' into formsPaul Gardiner
Conflicts: Makefile apps/mudraw.c pdf/pdf_write.c win32/libmupdf-v8.vcproj
2012-08-07Update VS solutions to new thirdparty files.Robin Watts
2012-08-07Remove fz_too_deeply_nested.Robin Watts
Rather than specifically checking for the nesting getting too deep and hence throwing an error, the error handling should do this for itself. Make it so that we spot the depth being too great in the fz_try() and throw to the fz_catch().
2012-08-07Fix various problems with linearisation when saving.Robin Watts
Unused objects could cause problems with the sort order and picking the object to start with. Now coped with. If the hintstream object replaces another object that already had a stream, pdf_open_raw_filter would get confused by the presence of a stm_buf. Now fixed. Fix a 64bit problem in page_objects_list_ensure, as well as tweaking the code for readability. When outputting single page files, we can end up with opts->start = 1 and this upset the offset calculating logic. Insist on compacting the xref when linearising. Thanks to Sebras and Zeniko for providing test cases. This commit should (hopefully) stop the SEGVs, but there are still cases where Acrobat doesn't think that the files output are "Optimised for Fast Web View". I cannot see why.
2012-08-07Forms: simple appearance generation for choice widgetsPaul Gardiner
2012-08-07When updating an xobject's contents also reset the LengthPaul Gardiner
2012-08-07Forms: for choices with a single selection avoid an unnecessary arrayPaul Gardiner
Also delete the 'I' element to avoid the indexes and values disagreeing.
2012-08-07Forms: mark choice field dirty after value change (and fix error handling)Paul Gardiner
2012-08-06Fix leak of page objects/refs for documents without page treeSebastian Rasmussen
PDF documents that do not have a page tree will have zero pages. Calling fz_count_pages() twice or more on those documents will have pdf_load_page_tree() repeatedly trying to load the page tree, each time leaking the page objects/refs arrays. Thanks to Zeniko for pointing out this fix.
2012-08-06Check for a display list before trying to render it in pdfappSebastian Rasmussen
Previously fix 13943b92f10796efb175e769afe5b0aea85d879a introduced continued rendering of further pages for documents where one page failed to load. However, if the entire page tree was missing from a PDF document then no display list would be obtained, yet MuPDF tried to render the display list causing a null pointer dereference. Now, check for a valid display list before trying to render it.
2012-08-06Remove old error mesages turned into comments when adding exceptionsSebastian Rasmussen
2012-08-06Handle out of range encoding differences for type3 fontsSebastian Rasmussen
Thanks to Zeniko for pointing out this fix.
2012-08-06Rewording of warning messages for PDF functionsSebastian Rasmussen
2012-08-06Add option to mudraw to process further files upon errorSebastian Rasmussen
2012-08-06Free jpeg state upon decoding error, even if not fully initedSebastian Rasmussen
Previously the jpeg decoder state had to be fully initialized in order to be freed when the jpeg decoder is closed, e.g. due to an error. Now, signal that the decode state is initialized earlier, even if the state has not been fully initialized, so that the state is freed.
2012-08-06Free entire type3 font descriptor upon loding error, not just the fontSebastian Rasmussen
2012-08-06Check whether font in xps has charmap before using itSebastian Rasmussen
Thanks to Zeniko for pointing out this fix.
2012-08-06Make fz_open_file_*() always throw exceptions upon errorSebastian Rasmussen
Thanks to Zeniko for pointing out the inconsistency.