-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MuPDF 1.12 #577
Merged
Merged
MuPDF 1.12 #577
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e6f1aa1
Updated to MuPDF 1.12
TnS-hun 826859b
mupdf_new_pixmap_with_data missed parameters
TnS-hun 962d94d
Make all parameters of fz_get_pixmap_from_image available, remove the…
TnS-hun 5dfbad5
Drop buffer and image as soon as possible as per poire-z's recommenda…
TnS-hun 3ba30a5
encrypted zip patch for MuPDF 1.12
TnS-hun 44d9736
external fonts patch for MuPDF 1.12
TnS-hun 7136f55
Use libjpeg as a shared library
TnS-hun 9144221
Wrong patch number
TnS-hun 968fb9e
git.ghostscript.com is slow, so we use the official mirror on GitHub
TnS-hun c5455e4
html-font patch, just enough to test html & epub rendering
poire-z fb7670f
TOC segmentation fault fix
poire-z 84bb6dc
Regenerated mupdf_h.lua with ffi-cdecl
TnS-hun c1eee61
fz_scale_pixmap was missing
TnS-hun 7ea4d64
fz_new_text_page has been renamed to fz_new_stext_page
TnS-hun f24310e
Fixed most of the warnings caused by the patches and wrap-mupdf.c
TnS-hun a9fc268
Wrong mupdf_new_text_page parameters, mupdf_new_text_sheet is no long…
TnS-hun 3677ae9
getPageText works again
TnS-hun bfa8d9c
Adding higlights almost works (width is 50% off), PDF saving works
TnS-hun b0c4bd9
Fixed wrong number of arguments for mupdf_new_pixmap_with_bbox
TnS-hun 347ad39
Do not select bullet points
TnS-hun 17ab6da
The incompatible bb error messages show the blitbuffer types
TnS-hun 5b68329
Support blitting from RGB24 to RGB32 in BB_alpha_blit_from
TnS-hun 185cb81
getPageText returned everything twice
TnS-hun 2b9058a
Unit test update
TnS-hun 5008599
vec_dot fix
TnS-hun 99396fb
MuPDF v1.12.0 has been tagged, use that
TnS-hun a529c65
Removed unused variable
TnS-hun 5c4e351
'SIZE_MAX' was undeclared on Android
TnS-hun d269c44
Forgot to remove the comment about the v1.12.0 tag
TnS-hun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
#include "ffi-cdecl.h" | ||
|
||
cdecl_const(FZ_PAGE_BLOCK_TEXT) | ||
cdecl_const(FZ_STEXT_BLOCK_TEXT) | ||
|
||
/* math */ | ||
cdecl_type(fz_point) | ||
|
@@ -41,9 +41,17 @@ cdecl_func(fz_transform_rect) | |
|
||
/* misc/assorted */ | ||
cdecl_type(fz_context) | ||
cdecl_type(fz_font) | ||
cdecl_type(fz_hash_table) | ||
cdecl_type(fz_storable) | ||
cdecl_type(fz_key_storable) | ||
cdecl_type(fz_store_drop_fn) | ||
cdecl_struct(fz_storable_s) | ||
cdecl_struct(fz_key_storable_s) | ||
|
||
/* buffer */ | ||
cdecl_func(mupdf_new_buffer_from_shared_data) | ||
cdecl_func(mupdf_drop_buffer) | ||
|
||
/* context */ | ||
cdecl_type(fz_alloc_context) | ||
|
@@ -57,27 +65,24 @@ cdecl_type(fz_image) | |
cdecl_type(fz_pixmap) | ||
cdecl_struct(fz_image_s) | ||
cdecl_struct(fz_pixmap_s) | ||
cdecl_func(fz_new_image_from_data) // compat, use wrapper instead: | ||
cdecl_func(mupdf_new_image_from_data) | ||
cdecl_func(fz_new_pixmap_from_image) // compat, use wrapper instead: | ||
cdecl_func(mupdf_new_pixmap_from_image) | ||
cdecl_func(mupdf_new_image_from_buffer) | ||
cdecl_func(mupdf_get_pixmap_from_image) | ||
cdecl_func(mupdf_save_pixmap_as_png) | ||
cdecl_func(fz_keep_image) | ||
cdecl_func(fz_drop_image) | ||
|
||
cdecl_func(fz_load_png) | ||
cdecl_func(fz_runetochar) | ||
|
||
/* document */ | ||
cdecl_enum(fz_link_kind_e) | ||
cdecl_type(fz_link_dest) | ||
cdecl_struct(fz_link_dest_s) | ||
cdecl_type(fz_annot) | ||
cdecl_struct(fz_annot_s) | ||
cdecl_type(fz_outline) | ||
cdecl_struct(fz_outline_s) | ||
cdecl_type(fz_document) | ||
cdecl_type(fz_page) | ||
cdecl_type(fz_write_options) | ||
cdecl_struct(fz_document_s) | ||
cdecl_type(fz_link) | ||
cdecl_struct(fz_document_s) | ||
cdecl_struct(fz_page_s) | ||
|
||
cdecl_func(mupdf_open_document) | ||
|
@@ -86,6 +91,7 @@ cdecl_func(fz_authenticate_password) | |
cdecl_func(fz_drop_document) // NOTE: libk2pdfopt uses old fz_free_document symbol | ||
cdecl_func(mupdf_count_pages) | ||
cdecl_func(fz_lookup_metadata) | ||
cdecl_func(fz_resolve_link) | ||
|
||
/* page */ | ||
cdecl_func(mupdf_load_page) | ||
|
@@ -102,33 +108,20 @@ cdecl_func(mupdf_load_outline) | |
cdecl_func(fz_drop_outline) // NOTE: libk2pdfopt uses old fz_free_outline symbol | ||
|
||
/* structured text */ | ||
cdecl_type(fz_text_style) | ||
cdecl_struct(fz_text_style_s) | ||
|
||
cdecl_type(fz_text_char) | ||
cdecl_struct(fz_text_char_s) | ||
|
||
cdecl_type(fz_text_span) | ||
cdecl_struct(fz_text_span_s) | ||
|
||
cdecl_type(fz_text_line) | ||
cdecl_struct(fz_text_line_s) | ||
|
||
cdecl_type(fz_text_sheet) | ||
cdecl_struct(fz_text_sheet_s) | ||
cdecl_func(mupdf_new_text_sheet) | ||
cdecl_func(fz_drop_text_sheet) // NOTE: libk2pdfopt uses old fz_free_text_sheet symbol | ||
cdecl_type(fz_stext_char) | ||
cdecl_struct(fz_stext_char_s) | ||
|
||
cdecl_type(fz_text_page) | ||
cdecl_type(fz_page_block) | ||
cdecl_struct(fz_text_page_s) | ||
cdecl_func(mupdf_new_text_page) | ||
cdecl_func(fz_drop_text_page) // NOTE: libk2pdfopt uses old fz_free_text_page symbol | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And this one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That cdecl and the comment are still there but fz_drop_text_page has been renamed to fz_drop_stext_page. |
||
cdecl_type(fz_text_block) | ||
cdecl_struct(fz_page_block_s) | ||
cdecl_struct(fz_text_block_s) | ||
cdecl_type(fz_stext_line) | ||
cdecl_struct(fz_stext_line_s) | ||
|
||
cdecl_func(fz_text_char_bbox) | ||
cdecl_type(fz_stext_block) | ||
cdecl_struct(fz_stext_block_s) | ||
cdecl_type(fz_stext_options) | ||
cdecl_struct(fz_stext_options_s) | ||
cdecl_type(fz_stext_page) | ||
cdecl_struct(fz_stext_page_s) | ||
cdecl_func(mupdf_new_stext_page_from_page) | ||
cdecl_func(fz_drop_stext_page) // NOTE: libk2pdfopt uses old fz_free_text_page symbol | ||
|
||
/* pixmaps */ | ||
cdecl_func(mupdf_new_pixmap) | ||
|
@@ -141,6 +134,7 @@ cdecl_func(fz_keep_pixmap) | |
cdecl_func(fz_drop_pixmap) | ||
cdecl_func(fz_clear_pixmap_with_value) | ||
cdecl_func(fz_gamma_pixmap) | ||
cdecl_func(fz_scale_pixmap) | ||
cdecl_func(fz_pixmap_width) | ||
cdecl_func(fz_pixmap_height) | ||
cdecl_func(fz_pixmap_components) | ||
|
@@ -154,28 +148,35 @@ cdecl_func(mupdf_new_draw_device) | |
cdecl_func(mupdf_new_text_device) | ||
cdecl_func(mupdf_new_bbox_device) | ||
cdecl_func(mupdf_run_page) | ||
cdecl_func(fz_close_device) | ||
cdecl_func(fz_drop_device) // NOTE: libk2pdfopt uses old fz_free_device symbol | ||
|
||
/* pdf specifics */ | ||
cdecl_enum(fz_annot_type) | ||
cdecl_type(pdf_hotspot) | ||
cdecl_struct(pdf_hotspot_s) | ||
cdecl_type(pdf_lexbuf) | ||
cdecl_struct(pdf_lexbuf_s) | ||
cdecl_type(pdf_lexbuf_large) | ||
cdecl_struct(pdf_lexbuf_large_s) | ||
cdecl_type(pdf_obj) | ||
cdecl_type(pdf_xobject) | ||
cdecl_type(pdf_annot) | ||
cdecl_type(pdf_page) | ||
cdecl_struct(pdf_xobject_s) | ||
cdecl_struct(pdf_annot_s) | ||
cdecl_type(pdf_document) | ||
cdecl_struct(pdf_document_s) | ||
cdecl_func(pdf_specifics) | ||
cdecl_func(mupdf_pdf_create_annot) | ||
cdecl_func(mupdf_pdf_set_markup_annot_quadpoints) | ||
cdecl_func(mupdf_pdf_set_annot_quad_points) | ||
cdecl_func(mupdf_pdf_set_text_annot_position) | ||
cdecl_func(mupdf_pdf_set_markup_appearance) | ||
|
||
/* saving documents */ | ||
cdecl_struct(fz_write_options_s) | ||
cdecl_func(mupdf_write_document) | ||
cdecl_type(pdf_write_options) | ||
cdecl_struct(pdf_write_options_s) | ||
cdecl_func(mupdf_pdf_save_document) | ||
|
||
/* the following is for our own wrapper lib: */ | ||
cdecl_func(mupdf_get_my_alloc_context) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about these comments? Do they no longer apply?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fz_drop_text_sheet function no longer exists.
I don't think those comments are relevant anymore because libk2pdfopt is built without using MuPDF (HAVE_MUPDF_LIB).