summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-08-28optionally detect initial EOL in CCITTFaxDecode streamsSimon Bünzli
If /EndOfLine is set for a CCITTFaxDecode stream, the image must start with an EOL per the spec. Other readers seem to ignore all data up to the first EOL in that case - instead of rejecting such images as broken. Required for e.g. "1848 - 1d faxd doesn't start with EOL.pdf".
2013-08-28fix various typosSimon Bünzli
2013-08-28Dump glyph cache size as part of mudraw -MRobin Watts
2013-08-28Fix big endian operation of paint code.Robin Watts
Broken in recent optimisations.
2013-08-28Fix bad interaction between incremental update and object streamsPaul Gardiner
The symptoms were that, created annoations were in some cases not saved. Some updated objects withing the document were not being moved into the incremental-save xref section. That in turn was due to nodes within the hierarchy of those objects not having their parent_num field set. The objects falling foul of this problem were those held in object streams. When any one object from a stream is cached, the whole stream is read and all other objects from that stream are also cached, but only the initial one has its parent_num set. This patch ensures that all objects from a stream are accounted for. In fact, for the initially-requested object, we now set parent_num twice, but that is harmless and the code to avoid doing so wouls be an unnecessary complication.
2013-08-27Android: support signingPaul Gardiner
2013-08-27A few updates to signing supportPaul Gardiner
2013-08-27Android: add signature checkingPaul Gardiner
2013-08-27Support openssl build in androidPaul Gardiner
2013-08-26Optimise fz_paint_scan_with_color and fz_paint_spanRobin Watts
2013-08-26Optimise fz_paint_affine_near and similar fnsRobin Watts
This is the single largest hotspot in J11_acrobat.pdf on the pi, by a massive margin. J12_acrobat.pdf hits fz_paint_affine_g2rgb too.
2013-08-26Remove conditional code from draw-paint.cRobin Watts
If we want the alternative versions we can pull them out of git later.
2013-08-26Optimise fz_paint_span_with_color and fz_paint_solid_colorRobin Watts
The 2 biggest hotspots in benchmarking on the Raspberry pi at 1200dpi.
2013-08-26Fix memory leak in new glyph cache code.Robin Watts
Forgot to drop the font.
2013-08-24Support named destinations in remote link annotations.Sebastian Rasmussen
Previously there was a bug when parsing GoToR link annotations that had a named destination. mupdf incorrectly attempted to resolve the destination in the current document. Now the destination name is present in the link objects returned to the application so it can resolve any names for GoToR links in the remote document instead.
2013-08-24Link annotation code rearranged for aesthetic reasons.Sebastian Rasmussen
2013-08-24Rename varible in pdfapp to relate it to searching.Sebastian Rasmussen
2013-08-24Display warnings in statusbar in x11 viewer.Sebastian Rasmussen
2013-08-24X11 viewer code rearranged for aesthetic reasons.Sebastian Rasmussen
Set display timeout where the page number is shown, not in x11 main.
2013-08-24Add support for showing messages in x11 viewer statusbar.Sebastian Rasmussen
2013-08-24Generalize search blitting in x11 to include page number.Sebastian Rasmussen
2013-08-24Cancel page timeout when searching in x11 viewer.Sebastian Rasmussen
The scenario is that the user first displayed the page number (visible for two seconds) and then searched while the page number was still visible. The page number was automatically cleared when entering search text, but the timeout for clearing the page number was never cancelled. This caused an unnecessary redraw of the window while the search text was still being edited.
2013-08-23Look up glyphs by the 'uniXXXX' form if the glyph list duplicates all fail.Tor Andersson
2013-08-22Rework glyph cache to enable partial eviction.Robin Watts
The current code uses a hash table with linear probing. This means that when the cache fills up, we have no alternative but to bin the whole thing (or do an expensive rebuild). Change to using a simple hash table with linked lists of bucket chains, and additional LRU lists. This way we can ditch the oldest glyphs as we need more space.
2013-08-22Add support for writing of xref streamsPaul Gardiner
Use of the feature is currently enabled only in the case that a file that already contains xref streams is being updated incrementally. To do so in that case is necessary because an old-style xref is then not permitted. This fixes bug #694527
2013-08-21Add simple memory use tracking to mudrawRobin Watts
2013-08-21Add -F flag to mudraw to allow format selection.Robin Watts
This allows us to "mudraw -F ppm -o /dev/null" etc.
2013-08-21Bug 694522: Cope with selection of text on a JPEG image.Robin Watts
If there is no text to select we return an array with a NULL in it and this causes the code to crash. Simple workaround.
2013-08-21Enable horizontal mouse scrolling in X11.Robin Watts
Based on a patch from Sebastian Neuser - many thanks. Use mouse buttons 6 and 7 to do the same as 4 and 5, but with Y rather than X being the default.
2013-08-21Update source code browser html generation scripts for new layout.Tor Andersson
2013-08-20Include platform source files in "make tags".Tor Andersson
2013-08-20Use unscaled metrics in xps_measure_font_glyph.Tor Andersson
2013-08-15Merge branch 'release' into 'master'.Tor Andersson
2013-08-14Bug 694516: Fix Android operation with passworded files.Robin Watts
Don't countPages until after we have a password.
2013-08-14Fix build of curl on macosx.Tor Andersson
Only build mupdf-x11-curl if the curl thirdparty library exists.
2013-08-13Signature creationPaul Gardiner
2013-08-13Remove unnecessary parameterPaul Gardiner
2013-08-13Insert the extra layers required for a signature-appearance streamPaul Gardiner
2013-08-13Add support for creating signature-field appearance streamsPaul Gardiner
2013-08-07Use ascender and descender to determine line skipPaul Gardiner
We should use the leading, if present, and if not present we should probably use a value a little greater than the sum of the ascender and descender, but this is definitely a step in the right direction and improves the look of filled-in forms.
2013-08-02Correctly account for alterations to xobject matrix and bboxPaul Gardiner
2013-08-02Handle more color cases in DA handlingPaul Gardiner
2013-08-02Improve naming consistencyPaul Gardiner
2013-07-30Fix signature-support buildPaul Gardiner
2013-07-30For freetext annotations, distinguish device and page space correctly.Paul Gardiner
2013-07-30Change pdf_measure_text to account for the borders around charactersPaul Gardiner
Prevously the true bounds of the glyph were used which didn't account for the total area blocked out by a character
2013-07-29Add support for freetext annotationsPaul Gardiner
This initial commit doesn't entirely complete the task: 1) There are a couple of ucs<->winansi conversions left out, 2) The text displayed by the appearance string can slightly overflow the annotation rectangle.
2013-07-29A few updates to the pdf devicePaul Gardiner
Ensure that only base14 fonts are used Set BaseFont using the name from the font Use WinAnsiEncoding Derive the font size from the trm matrix
2013-07-26Add script to create source tarballs using git-archive.Tor Andersson
2013-07-26Bump version number to 1.3.Tor Andersson