Skip to content

Commit 23628ad

Browse files
committed
Update to MuPDF 1.23.3
1 parent d554134 commit 23628ad

File tree

4 files changed

+50
-9
lines changed

4 files changed

+50
-9
lines changed

Demo/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static class NativeMethods
114114
const uint FZ_STORE_DEFAULT = 256 << 20;
115115
const string DLL = "MuPDFLib.dll";
116116
// note: modify the version number to match the FZ_VERSION definition in "include\fitz\version.h" file
117-
const string FZ_VERSION = "1.22.2";
117+
const string FZ_VERSION = "1.23.3";
118118

119119
[DllImport(DLL, CallingConvention = CC.Cdecl, EntryPoint = "fz_new_context_imp", BestFitMapping = false)]
120120
static extern IntPtr NewContext(IntPtr alloc, IntPtr locks, uint max_store, [MarshalAs(UnmanagedType.LPStr)] string fz_version);

MuPDFLib/gen_libmupdf.def.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def main():
5353
doc_exports = collectFunctions("source/fitz/document-all.c") + ["fz_get_annot_type", "fz_log_dump_store","fz_outline_from_iterator"]
5454
more_formats = collectFunctions("source/fitz/svg-device.c") + collectFunctions("source/fitz/output-pcl.c") + collectFunctions("source/fitz/output-pwg.c")
5555
form_exports = collectFunctions("source/pdf/pdf-form.c") + collectFunctions("source/pdf/pdf-event.c") + collectFunctions("source/pdf/pdf-appearance.c") + ["pdf_access_submit_event", "pdf_init_ui_pointer_event"]
56-
misc_exports = collectFunctions("source/fitz/test-device.c") + ["fz_set_stderr", "fz_set_stdout", "fz_colorspace_name_process_colorants", "fz_getoptw", "fz_valgrind_pixmap", "fz_stderr", "track_usage"]
56+
misc_exports = collectFunctions("source/fitz/test-device.c") + ["fz_set_stderr", "fz_set_stdout", "fz_colorspace_name_process_colorants", "fz_getoptw", "fz_valgrind_pixmap", "fz_stderr", "track_usage", "fz_log_errorFL", "fz_log_error_printfFL", "fz_morph_errorFL", "fz_rethrowFL", "fz_rethrow_ifFL", "fz_throwFL", "fz_vlog_error_printfFL", "fz_vthrowFL", "fz_vwarnFL", "fz_warnFL"]
5757
sign_exports = ["pdf_crypt_buffer", "pdf_read_pfx", "pdf_sign_signature", "pdf_signer_designated_name", "pdf_free_designated_name"]
5858
jbig2_exclude = collectFunctions("thirdparty/jbig2dec/jbig2_image_rw.h") + ["jbig2_dump_huffman_binary", "jbig2_dump_huffman_state", "jbig2_arith_has_reached_marker"]
5959

MuPDFLib/libmupdf.def

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ EXPORTS
77

88
fz_open_archive
99
fz_open_archive_with_stream
10+
fz_try_open_archive_with_stream
1011
fz_open_directory
1112
fz_is_directory
1213
fz_drop_archive
@@ -15,7 +16,9 @@ EXPORTS
1516
fz_list_archive_entry
1617
fz_has_archive_entry
1718
fz_open_archive_entry
19+
fz_try_open_archive_entry
1820
fz_read_archive_entry
21+
fz_try_read_archive_entry
1922
fz_is_tar_archive
2023
fz_open_tar_archive
2124
fz_open_tar_archive_with_stream
@@ -109,6 +112,7 @@ EXPORTS
109112
fz_colorspace_is_device_cmyk
110113
fz_colorspace_is_lab_icc
111114
fz_is_valid_blend_colorspace
115+
fz_base_colorspace
112116
fz_device_gray
113117
fz_device_rgb
114118
fz_device_bgr
@@ -154,6 +158,9 @@ EXPORTS
154158
fz_caught_message
155159
fz_caught
156160
fz_rethrow_if
161+
fz_log_error_printf
162+
fz_vlog_error_printf
163+
fz_log_error
157164
fz_start_throw_on_repair
158165
fz_end_throw_on_repair
159166
fz_flush_warnings
@@ -275,8 +282,12 @@ EXPORTS
275282
fz_bound_display_list
276283
fz_new_image_from_display_list
277284
fz_display_list_is_empty
285+
fz_box_type_from_string
286+
fz_string_from_box_type
278287
fz_register_document_handler
279288
fz_recognize_document
289+
fz_recognize_document_content
290+
fz_recognize_document_stream_content
280291
fz_open_document
281292
fz_open_accelerated_document
282293
fz_open_document_with_stream
@@ -313,6 +324,7 @@ EXPORTS
313324
fz_load_links
314325
fz_new_page_of_size
315326
fz_bound_page
327+
fz_bound_page_box
316328
fz_run_page
317329
fz_run_page_contents
318330
fz_run_page_annots
@@ -661,6 +673,7 @@ EXPORTS
661673
fz_separation_name
662674
fz_count_separations
663675
fz_count_active_separations
676+
fz_compare_separations
664677
fz_clone_separations_for_overprint
665678
fz_convert_separation_colors
666679
fz_separation_equivalent
@@ -703,6 +716,7 @@ EXPORTS
703716
fz_story_positions
704717
fz_file_exists
705718
fz_open_file
719+
fz_try_open_file
706720
fz_open_file_w
707721
fz_open_memory
708722
fz_open_buffer
@@ -715,6 +729,7 @@ EXPORTS
715729
fz_skip
716730
fz_read_all
717731
fz_read_file
732+
fz_try_read_file
718733
fz_read_uint16
719734
fz_read_uint24
720735
fz_read_uint32
@@ -746,6 +761,11 @@ EXPORTS
746761
fz_dirname
747762
fz_basename
748763
fz_urldecode
764+
fz_decode_uri
765+
fz_decode_uri_component
766+
fz_encode_uri
767+
fz_encode_uri_component
768+
fz_encode_uri_pathname
749769
fz_format_output_path
750770
fz_cleanname
751771
fz_realpath
@@ -819,6 +839,7 @@ EXPORTS
819839
fz_new_pixmap_from_page_with_separations
820840
fz_new_pixmap_from_page_number_with_separations
821841
fz_new_pixmap_from_page_contents_with_separations
842+
fz_fill_pixmap_from_display_list
822843
fz_new_stext_page_from_page
823844
fz_new_stext_page_from_page_number
824845
fz_new_stext_page_from_chapter_page_number
@@ -856,7 +877,15 @@ EXPORTS
856877
fz_write_pixmap_as_png
857878
fz_new_png_band_writer
858879
fz_new_buffer_from_image_as_png
880+
fz_new_buffer_from_image_as_pnm
881+
fz_new_buffer_from_image_as_pam
882+
fz_new_buffer_from_image_as_psd
883+
fz_new_buffer_from_image_as_jpeg
859884
fz_new_buffer_from_pixmap_as_png
885+
fz_new_buffer_from_pixmap_as_pnm
886+
fz_new_buffer_from_pixmap_as_pam
887+
fz_new_buffer_from_pixmap_as_psd
888+
fz_new_buffer_from_pixmap_as_jpeg
860889
fz_save_pixmap_as_pnm
861890
fz_write_pixmap_as_pnm
862891
fz_new_pnm_band_writer
@@ -917,6 +946,9 @@ EXPORTS
917946
fz_new_pixmap_writer
918947
fz_new_document_writer_of_size
919948
fz_parse_xml
949+
fz_parse_xml_stream
950+
fz_parse_xml_archive_entry
951+
fz_try_parse_xml_archive_entry
920952
fz_parse_xml_from_html5
921953
fz_keep_xml
922954
fz_drop_xml
@@ -941,7 +973,9 @@ EXPORTS
941973
fz_xml_find_next_match
942974
fz_xml_find_down_match
943975
fz_xml_find_dfs
976+
fz_xml_find_dfs_top
944977
fz_xml_find_next_dfs
978+
fz_xml_find_next_dfs_top
945979
fz_dom_body
946980
fz_dom_document_element
947981
fz_dom_create_element
@@ -985,10 +1019,13 @@ EXPORTS
9851019
pdf_walk_tree
9861020
pdf_resolve_link
9871021
pdf_resolve_link_dest
988-
pdf_new_destination_from_link
9891022
pdf_new_action_from_link
990-
pdf_format_link_uri
991-
pdf_parse_link_uri
1023+
pdf_new_dest_from_link
1024+
pdf_new_uri_from_explicit_dest
1025+
pdf_append_named_dest_to_uri
1026+
pdf_append_explicit_dest_to_uri
1027+
pdf_new_uri_from_path_and_named_dest
1028+
pdf_new_uri_from_path_and_explicit_dest
9921029
pdf_annot_transform
9931030
pdf_new_link
9941031
pdf_create_annot_raw
@@ -1100,8 +1137,6 @@ EXPORTS
11001137
pdf_get_embedded_file_params
11011138
pdf_load_embedded_file_contents
11021139
pdf_verify_embedded_file_checksum
1103-
pdf_parse_link_dest
1104-
pdf_parse_link_action
11051140
pdf_lookup_dest
11061141
pdf_load_link_annots
11071142
pdf_annot_MK_BG
@@ -1120,6 +1155,7 @@ EXPORTS
11201155
pdf_set_annot_filespec
11211156
pdf_annot_hidden_for_editing
11221157
pdf_set_annot_hidden_for_editing
1158+
pdf_apply_redaction
11231159
pdf_clean_file
11241160
pdf_new_cmap
11251161
pdf_keep_cmap
@@ -1227,6 +1263,7 @@ EXPORTS
12271263
pdf_save_journal
12281264
pdf_load_journal
12291265
pdf_read_journal
1266+
pdf_minimize_document
12301267
pdf_access_exec_menu_item_event
12311268
pdf_load_encoding
12321269
pdf_set_font_wmode
@@ -1329,6 +1366,7 @@ EXPORTS
13291366
pdf_deep_copy_obj
13301367
pdf_keep_obj
13311368
pdf_drop_obj
1369+
pdf_drop_singleton_obj
13321370
pdf_is_null
13331371
pdf_is_bool
13341372
pdf_is_int
@@ -1396,6 +1434,7 @@ EXPORTS
13961434
pdf_dict_getsa
13971435
pdf_dict_get_inheritable
13981436
pdf_dict_getp_inheritable
1437+
pdf_dict_gets_inheritable
13991438
pdf_dict_put
14001439
pdf_dict_put_drop
14011440
pdf_dict_get_put_drop
@@ -1471,6 +1510,7 @@ EXPORTS
14711510
pdf_begin_operation
14721511
pdf_begin_implicit_operation
14731512
pdf_end_operation
1513+
pdf_abandon_operation
14741514
pdf_undoredo_state
14751515
pdf_undoredo_step
14761516
pdf_can_undo
@@ -1491,13 +1531,14 @@ EXPORTS
14911531
pdf_load_page_tree
14921532
pdf_drop_page_tree
14931533
pdf_drop_page_tree_internal
1494-
pdf_lookup_anchor
14951534
pdf_flatten_inheritable_page_items
14961535
pdf_load_page
14971536
pdf_load_page_imp
14981537
pdf_page_has_transparency
14991538
pdf_page_obj_transform
15001539
pdf_page_transform
1540+
pdf_page_obj_transform_box
1541+
pdf_page_transform_box
15011542
pdf_page_resources
15021543
pdf_page_contents
15031544
pdf_page_group

mupdf

Submodule mupdf updated 602 files

0 commit comments

Comments
 (0)