summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-24Bug 696983 - Fix bidirectional XPS spacing.Tor Andersson
Bidirectional setting was not accounted for when advance width was set in the XPS Indices Attribute.
2016-08-24When NULL is added to PDF dicts/arrays, insert null objects.Sebastian Rasmussen
2016-08-24Be stricter in what can be added into arrays/dicts.Sebastian Rasmussen
2016-08-24Do not resolve PDF dict keys before using them.Sebastian Rasmussen
Only direct PDF name objects should be used as arguments, indirect PDF name objects cannot be used.
2016-08-24Always check that PDF dict keys are names in same way.Sebastian Rasmussen
2016-08-24Add macros for checking PDF object type.Sebastian Rasmussen
This avoids resolving object references which is important for dictionary keys.
2016-08-24Turn warnings in dict/array functions into exceptions.Sebastian Rasmussen
2016-08-23Java - correct the JNI signatures for bbox fields in StructuredText inner ↵Fred Ross-Perry
classes.
2016-08-22Document part of fz_stream interface.Sebastian Rasmussen
2016-08-21Fix typo in document creation macro.Sebastian Rasmussen
2016-08-19Android example: added text searching.Fred Ross-Perry
2016-08-19Java - change contains() in Rect and RectI to properly handle empty rects.Fred Ross-Perry
2016-08-17Android example - add first page and last page buttonsFred Ross-Perry
also, change DocPageView to paint a white background before doing anything else. Makes for smoother-looking scrolling. And, re-introduce the slower scrolling (400 msec) when moving between pages.
2016-08-17zip: Used unpacked entry size, not listed entry size.Sebastian Rasmussen
The size listed in the central directory can be used to allocate an output buffer and inflate can be told to not write more than this number of bytes. The listed size cannot be assumed to be the size of the output data however as the zip file may be corrupted. Instead the size of the output data must be given by inflate and must be less than or equal to the listed size. The same reasoning goes for uncompressed entries and simply reading the uncompressed data from the archive file (which may terminate early). Fixes indeterminism broken_png_image.xps.
2016-08-16Android example - update gradle versionfredross-perry
2016-08-16Android example - remove isBlank, start2=afterFirstLayoutComplete, ↵fredross-perry
ul/dr=upperLeft/lowerRight
2016-08-16Java/JNI - add TextChar.isWhitespacefredross-perry
2016-08-16Android example - simple implementation of reflow.fred ross-perry
page text (one page at a time) is converted to HTML and shown in a class that extends WebView.
2016-08-16Android java - ad textAsHtml() to the Page class.fred ross-perry
The JNI implementation is taken from core.textAsHtml() in the old viewer.
2016-08-16Android viewer: get experimental proofing to build again.fred ross-perry
- use FZ_ENABLE_GPRF everywhere - chasing changed fz APIs in gprf-doc.c
2016-08-16Android example: fix initial layout timing issue.fred ross-perry
2016-08-16Android example - fix a crash bug by recycling bitmaps between documents.fred ross-perry
2016-08-16Android example : improved text selection.fred ross-perry
2016-08-16Java/JNI - Add empty ctor and union method to Rect and RectI.fred ross-perry
2016-08-16JNI: Add finalizers for Shade and PDFGraftMap.Sebastian Rasmussen
2016-08-16JS: Push null if image lacks an image mask.Sebastian Rasmussen
2016-08-15JNI: BufferOutputStream should only be used for writing.Sebastian Rasmussen
2016-08-08Android example - collected changesfred ross-perry
- move UI into the "mupdf" module. The app simply sets up a DocView and starts it with a file path. The app can call DocView.showUI to determine whether the built-in UI is used. The plan is for apps to be able to use the built-in UI, or supply their own. Also includes some rudimentary UI for show/hiding annotations, and listing links and outlines. Just for testing JNI features. - add toolbar and tabs at the top of the view. - refactoring DocView becomes DocActivityView, DocViewInner becomes DocView. - add Pages toolbar and page list view. make the page list a little narrower. give the document view and the pages view separate bitmaps, and have DocPageView implement clipping when it draws. - fix tabbing and brace style. - add simple text selection and highlighting. This is still a work in progress. - various code review items. fix tabs and brace styles remove function calls from loop statements use "highlight", not "hilight" put a few strings into resources avoid Right Hand Drift (tm) Rects are inclusive...exclusive for the purpose of testing limits put "else" on a separate line put "catch" and "finally" on separate lines
2016-08-08Java/JNI: Added blocks/lines/spans/chars to StructuredText.fred ross-perry
added TextBlock, TextLine, TextSpan and TextChar inner classes to StructuredText. Calling StructuredText.getBlocks() returns an array of TextBlocks, which in turn contains an array of TextLines, etc.
2016-08-08android java - add "contains" function to Rect.fred ross-perry
2016-08-07Fix fz_vsnprintf() so it prints %zu.Sebastian Rasmussen
Previously we might and up with prints such as: error: malloc of array (%zu x %zu bytes) failed because %zu was never interpreted on 32-bit platforms where sizeof(size_t) < 8. After this fix we now get: error: malloc of array (14445 x 118800 bytes) failed
2016-08-07JNI: Only store links/annotations if all are successfully handled.Sebastian Rasmussen
2016-08-02JS: Add Path.curveTo*(), similar to JNI.Sebastian Rasmussen
2016-08-02JS: Add several Image.get*() methods similar to JNI.Sebastian Rasmussen
2016-08-02JS: Add Pixmap.getX() and .getY() similar to JNI.Sebastian Rasmussen
2016-08-02JNI: Add/change PDFDocument.save() related methods.Sebastian Rasmussen
Added methods: * PDFDocument.hasUnsavedChanges() * PDFDocument.canBeSavedIncrementally() The interface for PDFDocument.save() now returns the number of errors encountered while saving.
2016-08-02JNI: Delete forgotten global references to classes.Sebastian Rasmussen
2016-08-02JNI: Put all Pixmap.clear() in a single location.Sebastian Rasmussen
2016-08-02Re-add line endings for mutool show grep.Sebastian Rasmussen
Commit c22e6a6dc2bf6acbac955bd5fbdd896329dfd725 accidentally removed the line endings for: mutool show file.pdf grep
2016-08-02Remove function not being called.Sebastian Rasmussen
2016-08-02Parse more fz_document_writer() options.Sebastian Rasmussen
2016-08-01Move to bitfields in fz_font rather than chars/ints etc.Robin Watts
2016-08-01Bug 696984: Badly rendered characters.Robin Watts
The type3 font(s) in the file have an invalid (0 sized) bbox, hence the clipping of the chars goes wrong. We now spot the invalid bbox, and suppress the clipping.
2016-07-31Java: Add import of ByteArrayOuputStream.Sebastian Rasmussen
This allows compilation using older Android NDKs. This was mistakenly omitted from commit 537a467dfd6392d70624805943ac65182ec881b4.
2016-07-31Make mutool clean only iterate over valid link annotations.Sebastian Rasmussen
2016-07-31Make sure that number of colors in mesh params is valid.Sebastian Rasmussen
Fixes bug 696954.
2016-07-22Bug 696941: Fix use after free.Robin Watts
The file is HORRIBLY corrupt, and triggers Sophos to think it's PDF malware (which it isn't). It does however trigger a use after free, worked around here.
2016-07-22Move hash calculation outside locked region.Robin Watts
Try to reduce contention on the glyphcache lock.
2016-07-22Speed tweaks to muraster.Robin Watts
Divide up the work amongst the threads to solve the odd situation of larger buffers producing slower runtimes. Avoid creating (and hence clearing) larger bitmaps than required at the end of the run.
2016-07-22Fix pixmap and reference leak in pdfextract.Sebastian Rasmussen