summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-04-10scripts/wrap/classes.py: fix incorrect assert.HEADmasterJulian Smith
2025-04-10scripts/wrap/: Add PLA_ as shorter alternative to Py_LIMITED_API_ in build ↵Julian Smith
directory. This is to help work on systems with limited command-line size.
2025-04-10Bug 708442: Avoid crash due to unallocated stroke state.Sebastian Rasmussen
Commit 5576bba26c0fe38243b25365c6b0faf0638114b5 accidentally omitted allocating a new stroke state when a new line is allocated. ASAN detects the NULL dereference that causes a crash. The fix is to ensure that the stoke state is allocated when a new line is allocated. This is reasonable since the original code just depended on fz_default_stroke_state. After this fix ASAN no longer complains.
2025-04-10Initialize PCLm options to zero to avoid warnings in Win32.Sebastian Rasmussen
2025-04-09Always get GL cflags/libs from the system.Sebastian Rasmussen
2025-04-09Bug 708383: Update man page with missing key bindings.Sebastian Rasmussen
2025-04-09Don't use embedded stroke state in pdf-op-filter segmenter.Tor Andersson
2025-04-09Don't stack allocate stroke states.Tor Andersson
2025-04-08Bug 708421: Free buffer in object printing only if not externally allocated.Sebastian Rasmussen
Thanks to Piotr Kajda for finding, reporting and suggesting a fix for this bug!
2025-04-08Fix pdf_enable_layer so it works.Tor Andersson
2025-04-07Bug 708397: Fix the fix for pdf_delete_page_range.Tor Andersson
End of the range for exclusive loop is "count", not "count+1". Clamp both start and end values to be in range.
2025-04-07jshellTor Andersson
2025-04-07Use flexible array for stroke state dash list.Tor Andersson
2025-04-07java: Add 'jshell' make target.Tor Andersson
2025-04-07Rename fz_skew_detect to fz_detect_skew!Tor Andersson
Verb the noun, don't noun the verb!
2025-04-07js/java/docs: Describe existing and add described StructuredText interfaces.Sebastian Rasmussen
2025-04-07js/java: Adhere to described StrokeState interfacesSebastian Rasmussen
Also add convenience functions to C interface for converting fz_linejoin/fz_linecap to/from strings, which makes implementing the murun interface neater.
2025-04-07docs: Add existing Shade interfaces.Sebastian Rasmussen
2025-04-07docs/js: Describe existing and add described Pixmap interfaces.Sebastian Rasmussen
2025-04-07docs/java: Describe existing and add described PDFWidget interfaces.Sebastian Rasmussen
2025-04-07docs/java: Describe existing and add described PDFPage interfaces.Sebastian Rasmussen
2025-04-07docs: Describe existing PDFObject interfaces.Sebastian Rasmussen
2025-04-07js/java/docs: Describe existing and add described PDFDocument interfaces.Sebastian Rasmussen
2025-04-07js/java/docs: Describe existing and add described PDFAnnotation interfaces.Sebastian Rasmussen
2025-04-07java: Add missing Page interface described in documentation.Sebastian Rasmussen
2025-04-07java: Fix mistake making OutlineIterator interface inaccessible.Sebastian Rasmussen
2025-04-07docs: Describe already existing Link interfaces.Sebastian Rasmussen
2025-04-07java: Add missing DrawDevice interfaces described in documentation.Sebastian Rasmussen
2025-04-07java: Add missing DocumentWriter interfaces described in documentation.Sebastian Rasmussen
2025-04-07java: Add missing ColorSpace interfaces described in documentation.Sebastian Rasmussen
2025-04-07js/java: Add missing Buffer interfaces described in documentation.Sebastian Rasmussen
2025-04-07Add API to check whether annotation supports rich content.Sebastian Rasmussen
Add checks to ensure that annotations have support when a caller tries to set rich content.
2025-04-07Add API to check whether annotation supports default appearance.Sebastian Rasmussen
Add checks to ensure that annotations have support when a caller tries to set default appearance.
2025-04-01Update CHANGES for 1.26 release.Tor Andersson
2025-04-01Clean up mutool barcode option handling.Tor Andersson
Separate creation and decoding based on first option, since they share no behavior and have different valid options.
2025-04-01Fix behavior of -webkit-stroke-width.Tor Andersson
Default should be 0 as per CSS spec. Fix scaling of value by "em".
2025-04-01fz_save_pixmap_as_pclm should have const string for input filename.Tor Andersson
2025-04-01Update copyright for files changes this year.Sebastian Rasmussen
The list of files was obtained from git log: for f in $(git log -p --since=2025-01-01 | grep -- '^diff --git' | cut -d' ' -f4 | sed -e 's,^b/,,' | sort -u | grep -v resources.fonts | grep -v thirdparty); do echo "$f: $(head -1 $f)"; done | grep Artifex | grep -v 2025
2025-04-01Do not multiply values that may overflow.Sebastian Rasmussen
Instead adjust the comparison value correspondingly to ensure that the expressions of the comparison cannot overflow. This fixes Coverity issue 392921.
2025-04-01Check whether objstm xref entry exists before labelling it as free.Sebastian Rasmussen
Coverity complains that pdf_get_xref_entry_no_change() is usually followed by a NULL-check, except in the case of unpack_objstsm_objs(). Since the object labelled 'o' in the xref must come from an objstm, that objstm ought exist. Add an assert() to appease Coverity. This fixes Coverity issue 509073.
2025-04-01Add oldest version of each thirdparty that MuPDF builds with.Sebastian Rasmussen
2025-04-01Bug 708372: Always use 128/256 bit key lengths for AES encryption.Sebastian Rasmussen
Previously the code used the default key length of 40 bits, which is incorrect according to spec. This was not discovered because most files explicitly set the key length to 128/256 bits in their crypt filters, but the file from this bug does not.
2025-03-31Add Rich Contents and Defaults annotation property accessors.Tor Andersson
2025-03-31Improve how we provide custom images to stamp annotations.Tor Andersson
Detect the case when a Stamp annotation appearance has a resource dictionary with a single Image defined. Use this detection to provide functions to get and set a custom image for stamp annotations. This allows us to delay creating the appearance stream, and will allow us to change other appearance properties such as the opacity (CA) without clobbering the image.
2025-03-28Bug 708393: Fix pdf_count_q_balance.Robin Watts
pdf_count_q_balance relies on counting q and Q operations to detect mismatches. Unfortunately, it does this by running the standard PDF interpretation mechanisms, and these attempt to autocorrect for missing Q's at the end of a page. This autocorrection affects our reading. Insert a new processor event that happens before the auto correction, and use that so that pdf_count_q_balance can get the uncorrected values.
2025-03-28source/fitz/noto.c: avoid segv if font_entry .size is null.Julian Smith
On platforms with HAVE_OBJCOPY false (e.g. MacOS), the INBUILT_SIZE macro gave segv if .size was null, e.g. for fonts defined with EMPTY.
2025-03-26Bug 708373: Record clip/layer nesting more efficiently.Robin Watts
The file in question uses multiple (1000+!) nested clip regions. This was running us off the fixed size array. We now store a count of clips at each level rather than 1 per level to avoid this.
2025-03-26Tweak markdown for mutool audit entry in the mutool list.Robin Watts
2025-03-25Add barebones docs for mutool audit.Robin Watts
2025-03-25Initialize the redaction target annotation in the redaction state.Tor Andersson