Commit bb8913fa authored by Kan-Ru Chen's avatar Kan-Ru Chen

New upstream version 1.14.0+ds1

parent 07e79589
# Macros:
[attr]tabs whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
[attr]spaces whitespace=trailing-space,space-before-tab,tabs-in-indent
[attr]makefile whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=8
# Source files:
* text=auto
Make* tabs
*.mk tabs
Make* makefile
*.mk makefile
*.make makefile
*.[chm] tabs
*.java tabs
*.xml tabs
......
# Optional thirdparty libraryes
thirdparty/luratech
thirdparty/jpegxr
thirdparty/mapping-resources-pdf
thirdparty/cmap-resources
# Generated files:
build
generated
include/mupdf/pdf/name-table.h
source/pdf/pdf-name-table.h
tags
cscope.*
......@@ -21,6 +21,7 @@ cscope.*
.gradle
*.xcworkspace
*.xcuserdatad
user.make
# Test files:
*.pdf
......
List of changes in MuPDF 1.14.0
* New features:
* Added "Source Han Serif" CJK fallback font.
* Added more scripts to the Noto fallback fonts.
* Multi-page PNM support.
* "mutool show" now supports a path syntax for selecting objects to show.
* Build system simplifications:
* Auto-generated CMap, ICC, and JS source files are checked in to git.
* Embedded CMap resources are now generated by a python script.
* Embedded font resources are linked directly if using GNU ld or windows.
* Namegen tool replaced by use of C macros.
* Simplified Makefile.
* Annotation editing:
* New annotation editing mode in mupdf-gl.
* Can create, edit, and delete most annotation types.
* Can create appearance streams for most annotation types.
* Can create appearance streams for Tx form fields.
* Can create appearance streams for Ch form fields.
* Form filling in mupdf-gl:
* Can click buttons, checkboxes, and radioboxes.
* Can fill out text fields using dialog box.
* Can select choice options using dialog box.
* Can verify and sign digital signatures.
* Improved UI for mupdf-gl:
* Password dialog.
* Error dialog.
* Open/save file dialog.
* Snap selection to words or lines by holding control or control+shift.
* Save and restore current location, bookmarks, and navigation history.
* Bug fixes:
* Improved CJK character fallback handling in EPUB.
* API changes:
* Pass rectangle and matrix structs by value.
* Replaced PDF_NAME_Xxx macros with PDF_NAME(Xxx).
* Added PDF_TRUE, PDF_FALSE, and PDF_NULL constant pdf_obj* macros.
* Added helper functions: pdf_dict_get_int, etc.
* Removed 'doc' argument in pdf_new_int, etc.
* Quads instead of rects when highlighting and searching text.
* mutool run: Pass arguments to script in scriptArgs global.
List of changes in MuPDF 1.13.0
* This is primarily a bugfix release.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -3,7 +3,6 @@
<head>
<title>MuPDF Android SDK</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {counter-reset: h2}
h2 {counter-reset: h3}
......@@ -17,22 +16,12 @@ h5:before {counter-increment: h5; content: counter(h2) "." counter(h3) "." count
h6:before {counter-increment: h6; content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". "}
</style>
</head>
<body>
<header>
<h1>MuPDF Android SDK</h1>
</header>
<nav>
<a href="http://mupdf.com/index.html">About</a>
<a href="http://mupdf.com/news.html">News</a>
<a href="index.html">Documentation</a>
<a href="http://mupdf.com/downloads/">Downloads</a>
<a href="http://git.ghostscript.com/?p=mupdf.git;a=summary">Source</a>
<a href="https://bugs.ghostscript.com/">Bugs</a>
</nav>
<article>
<p>
......@@ -81,7 +70,6 @@ components in your app. This includes (but is not limited to)
<p>
Just because a library ships with Android or is made by Google does <i>not</i> make it AGPL compatible!
<p>
If you cannot or do not want to comply with these restrictions,
you <i><b>must</b></i> acquire a commercial license instead.
......@@ -322,8 +310,8 @@ Good luck!
</article>
<footer>
<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2017 Artifex Software Inc.
<a href="http://www.artifex.com/"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2018 Artifex Software Inc.
</footer>
</body>
......
......@@ -3,24 +3,13 @@
<head>
<title>How to build MuPDF</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<h1>How to build MuPDF</h1>
</header>
<nav>
<a href="http://mupdf.com/index.html">About</a>
<a href="http://mupdf.com/news.html">News</a>
<a href="index.html">Documentation</a>
<a href="http://mupdf.com/downloads/">Downloads</a>
<a href="http://git.ghostscript.com/?p=mupdf.git;a=summary">Source</a>
<a href="https://bugs.ghostscript.com/">Bugs</a>
</nav>
<article>
<h2>License</h2>
......@@ -41,11 +30,12 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details.
<p>
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
with this program. If not, see
<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>
<p>
For commercial licensing, including our "Indie Dev" friendly options,
please contact sales@artifex.com.
For commercial licensing, including our "Indie Dev" friendly options, please
contact <a href="https://artifex.com/contact-us/">Artifex Software</a>.
<h2>Download</h2>
......@@ -105,8 +95,8 @@ make HAVE_X11=no HAVE_GLUT=no prefix=/usr/local install
</article>
<footer>
<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2017 Artifex Software Inc.
<a href="http://www.artifex.com/"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2018 Artifex Software Inc.
</footer>
</body>
......
......@@ -3,24 +3,13 @@
<head>
<title>MuPDF Overview</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<h1>MuPDF Overview</h1>
</header>
<nav>
<a href="http://mupdf.com/index.html">About</a>
<a href="http://mupdf.com/news.html">News</a>
<a href="index.html">Documentation</a>
<a href="http://mupdf.com/downloads/">Downloads</a>
<a href="http://git.ghostscript.com/?p=mupdf.git;a=summary">Source</a>
<a href="https://bugs.ghostscript.com/">Bugs</a>
</nav>
<article>
<h2>Contents</h2>
......@@ -33,9 +22,9 @@
<li><a href="#cloning-the-context">Cloning the context</a>
</ul>
<h2><a id="basic-mupdf-usage-example">
<h2><a id="basic-mupdf-usage-example"></a>
Basic MuPDF usage example
</a></h2>
</h2>
<p>
For an example of how to use MuPDF in the most basic way, see
......@@ -44,9 +33,9 @@ To limit the complexity and give an easier introduction
this code has no error handling at all, but any serious piece of code
using MuPDF should use the error handling strategies described below.
<h2><a id="common-function-arguments">
<h2><a id="common-function-arguments"></a>
Common function arguments
</a></h2>
</h2>
<p>
Most functions in MuPDF's interface take a context argument.
......@@ -66,9 +55,9 @@ parsing or rendering pages of the document. It contains for example:
Without the set of locks and accompanying functions the context and
its proxies may only be used in a single-threaded application.
<h2><a id="error-handling">
<h2><a id="error-handling"></a>
Error handling
</a></h2>
</h2>
<p>
MuPDF uses a set of exception handling macros to simplify error return
......@@ -218,9 +207,9 @@ Things to note about this:
NULL things.
</ol>
<h2><a id="multi-threading">
<h2><a id="multi-threading"></a>
Multi-threading
</a></h2>
</h2>
<p>
First off, study the basic usage example in
......@@ -347,9 +336,9 @@ For an example of how to do multi-threading see
<a href="examples/multi-threaded.c">docs/examples/multi-threaded.c</a>
which has a main thread and one rendering thread per page.
<h2><a id="cloning-the-context">
<h2><a id="cloning-the-context"></a>
Cloning the context
</a></h2>
</h2>
<p>
As described above, every context contains an exception stack which is
......@@ -373,8 +362,8 @@ that can be used on new threads.
</article>
<footer>
<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2017 Artifex Software Inc.
<a href="http://www.artifex.com/"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2018 Artifex Software Inc.
</footer>
</body>
......
......@@ -3,24 +3,13 @@
<head>
<title>MuPDF Progressive Loading</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<h1>MuPDF Progressive Loading</h1>
</header>
<nav>
<a href="http://mupdf.com/index.html">About</a>
<a href="http://mupdf.com/news.html">News</a>
<a href="index.html">Documentation</a>
<a href="http://mupdf.com/downloads/">Downloads</a>
<a href="http://git.ghostscript.com/?p=mupdf.git;a=summary">Source</a>
<a href="https://bugs.ghostscript.com/">Bugs</a>
</nav>
<article>
<p>
......@@ -28,7 +17,6 @@ How to do progressive loading with MuPDF.
<h2>What is progressive loading?</h2>
<p>
The idea of progressive loading is that as you download a PDF file
into a browser, you can display the pages as they appear.
......@@ -370,8 +358,8 @@ a server.
</article>
<footer>
<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2017 Artifex Software Inc.
<a href="http://www.artifex.com/"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2018 Artifex Software Inc.
</footer>
</body>
......
......@@ -3,24 +3,13 @@
<head>
<title>MuPDF Coding Style</title>
<link rel="stylesheet" href="style.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<header>
<h1>MuPDF Coding Style</h1>
</header>
<nav>
<a href="http://mupdf.com/index.html">About</a>
<a href="http://mupdf.com/news.html">News</a>
<a href="index.html">Documentation</a>
<a href="http://mupdf.com/downloads/">Downloads</a>
<a href="http://git.ghostscript.com/?p=mupdf.git;a=summary">Source</a>
<a href="https://bugs.ghostscript.com/">Bugs</a>
</nav>
<article>
<h2>Names</h2>
......@@ -117,8 +106,8 @@ your own copy.
</article>
<footer>
<a href="http://artifex.com"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2017 Artifex Software Inc.
<a href="http://www.artifex.com/"><img src="artifex-logo.png" align="right"></a>
Copyright &copy; 2006-2018 Artifex Software Inc.
</footer>
</body>
......
function BBoxDevice(bbox) {
function extend(x,y) {
if (x < bbox[0]) bbox[0] = x;
if (x > bbox[2]) bbox[2] = x;
if (y < bbox[1]) bbox[1] = y;
if (y > bbox[3]) bbox[3] = y;
}
function extendPoint(m, px, py) {
var x = px * m[0] +