summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-13Add fz_strncasecmp.Tor Andersson
2018-11-13Add more encoding tables.Tor Andersson
Add tables for Windows-1250, Windows-1251, and ISO-8859-1. Also add unicode_from_encoding tables. Move encodings from PDF namespace to Fitz.
2018-11-13jni: Only include gproof helper function when including gproof.Sebastian Rasmussen
2018-11-13Use first character's bbox even if it is empty.Tor Andersson
Otherwise we get unsightly [0 0 0 0] bounding boxes for lines with a single zero area character.
2018-11-13Bug 697206: Tweak when to use the PDF font metrics in fz_advance_glyph.Tor Andersson
Only use the PDF font metrics for stretched substitute fonts, in all other cases, trust the embedded font file instead.
2018-11-13gl: Calculate accurate initial window size when scaling to fit screen.Tor Andersson
2018-11-13Bug 700143: Ignore duplicate text objects in text extraction.Tor Andersson
Rendering modes like fill+stroke or fill+stroke+clip send the same text object multiple times. Only extract the text from the first instance.
2018-11-13Bug 692592: Handle relative file links.Tor Andersson
The core library doesn't know where a document comes from, since we can open it as a stream, etc. Let the viewer handle relative file URLs.
2018-11-13Bug 696569: Get rid of drop shadow and use black background when inverted.Tor Andersson
2018-11-13Bug 699217: Show whether outline items are open in 'mutool show outline'.Tor Andersson
A '+' prefix indicates an open branch. A '-' prefix indicates a closed branch. A ' ' prefix indicates a leaf node.
2018-11-13Add pdf-dejpx.js example script.Tor Andersson
2018-11-13Use fz_image.imagemask field when adding PDF image resources.Tor Andersson
Don't pass the information as a separate argument.
2018-11-13js: Add PDFDocument.loadImage() function.Tor Andersson
2018-11-13js: Use Image.toPixmap arguments.Tor Andersson
2018-11-12Fix 697783: Invert mouse wheel mapping in mupdf-win32.Tor Andersson
A positive wParam value maps to button rotated forward, away from the user, which is equivalent to button 4 in X11.
2018-11-12Fix 699094: Never decompress JPX streams in mutool clean.Tor Andersson
2018-11-12Bug 699992: Use feBlend filters in SVG output for PDF blendings.Robin Watts
This doesn't cover all the PDF options, but it's better than nothing. This does mean we have to "enable-background" for all SVG files whether they use blending or not.
2018-11-12Bug 700154: Don't pass blends into groups within softmasks.Robin Watts
When generating a softmask, which is to be rendered with a blend, don't pass that blend down into the rendering of the softmask. Otherwise the blend gets used twice. In the example given this is causing the content to disappear.
2018-11-12Remove bitrotted and not working PDF portfolio code.Tor Andersson
Extracting embedded files can be trivially done with 'mutool show' or a simple mutool run script. The portfolio creation code is incomplete, and would require a lot of work and testing with Adobe in order to be useful.
2018-11-12Clean up pdf-portfolio.cTor Andersson
Remove pointless paranoia checks. Move the check whether it has already been loaded into load_portfolio().
2018-11-12Fix 697728: Use UTF-8 strings in PDF portfolio functions.Tor Andersson
2018-11-12Fix 697913: Make sure PDF portfolios are saved as version >= 1.7.Tor Andersson
2018-11-12Add example script to list and extract embedded files from PDF documents.Tor Andersson
2018-11-12Fix 697687: Use #if rather than #ifdef HAVE_SIGSETJMP.Tor Andersson
Allows to turn it off with make XCFLAGS=-DHAVE_SIGSETJMP=0 or by adding -DHAVE_SIGSETJMP=0 to the relevant Makerules section.
2018-11-12Remove confusing flag define.Tor Andersson
What's the difference between PDF_OBJ_FLAG_MARK and PDF_FLAGS_MARKED? PDF_OBJ_FLAG_MARK is used to flag an xref entry as one that we want to keep cached with the pdf_mark_xref/pdf_clear_xref_to_mark functions. PDF_FLAGS_MARKED is used to detect unwanted recursion in PDF structures. Renaming the xref_entry.flags field to xref_entry.marked should remove this source of potential confusion.
2018-11-12Remove stray js_endtry in obj.asString().Tor Andersson
2018-11-09Fix 698734: Use invoked binary name in usage message for mupdf-x11.Mohamad Barbar
2018-11-09Fix 698320: Add 'z' keybinding to reset zoom.Tor Andersson
This matches the behaviour of mupdf-gl.
2018-11-09Fix 696302: Support numeric keypad arrow keys in mupdf-x11.Tor Andersson
2018-11-09Fix 697461: Use floating point resolution in mupdf-x11.Tor Andersson
Fitting the page to the screen needs more precision than an integer DPI.
2018-11-09Fix 696310: Limit the initial window size to fit on the screen.Tor Andersson
Also zoom to fit the window.
2018-11-09Fix 695893: Match page rotation when creating FreeText annotations.Tor Andersson
This uses an undocumented Rotate property of annotations, which is also used by Adobe.
2018-11-09Fix 695390: Increase number of samples in Type 1 function shadings.Tor Andersson
15 years have passed since we first set the sampling to a 32x32 mesh. Quadrupling it to 64x64 sounds about right to me.
2018-11-09Update mupdf-gl documentation.Tor Andersson
2018-11-08Fix 699343: Skip spaces before data in DCTDecode filter.Tor Andersson
2018-11-08Fix 699310: Add -q option to mudraw to suppress 'page %d' messages.Tor Andersson
Useful if printing text or traces to stdout. Be quiet automatically if printing to stdout.
2018-11-08Fix 699336: Add more levels to mupdf-x11 zoom list.Tor Andersson
2018-11-08Fix 699352: Call begin_layer for all marked content in PDF.Tor Andersson
Since we call end_layer without distinction, we should also call begin_layer the same way. Also change the XML to emit separate tags for beginning and ending a layer, since there is no guarantee the layer calls will be neatly nested with clipping pushes and pops; nor is there a guarantee that the PDF will even balance the BMC/BDC and EMC operators.
2018-11-07Fix typo.Tor Andersson
2018-11-07Fix 698971: Detect ICC colorspace mismatch in TIFF loader.Tor Andersson
Make sure that the ICC colorspace has the same number of components as the photometric interpretation.
2018-11-07Use utility parsing functions in svg_parse_transform.Tor Andersson
2018-11-07Fix 699747: Apply viewBox transform.Tor Andersson
2018-11-07Resolve objects in pdf_debug_obj().Sebastian Rasmussen
2018-11-07Don't remove unused functions in debug builds.Sebastian Rasmussen
Garbage collecting unused functions in debug mode meant that pdf_debug_obj() was not longer accessible in gdb, which defeats the purpose of this debug function.
2018-11-07Write placeholder appearance streams for digital signatures.Tor Andersson
A proper appearance stream is written when signing with a certificate. This is just to create a placeholder appearance when the original document did not write one.
2018-11-07Fix 699840: Use saved sig_widget pointer to sign signatures, not selected_annot.Tor Andersson
2018-11-07Fix 700140: Ask LCMS transform to copy alpha channels.Tor Andersson
2018-11-07Make compression bomb detection optional.Tor Andersson
2018-11-07pnm: Take alpha into account when skipping over image data.Sebastian Rasmussen
2018-11-07Fix double header output in muraster.Robin Watts
Also fiddle the #ifdeffery to get sane defaults.