From 4d13ba9adbe46fc84fea662b906347bfa90ce208 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 4 Jul 2016 13:38:18 +0200 Subject: Add annotations to murun. --- docs/mutool/run.html | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/mutool/run.html b/docs/mutool/run.html index ed1a9707..19433681 100644 --- a/docs/mutool/run.html +++ b/docs/mutool/run.html @@ -183,17 +183,31 @@ MuPDF can open many document types (PDF, XPS, CBZ, EPUB, FB2 and a handful of im
Page#bound()
Returns a rectangle containing the page dimensions. -
Page#run(device, transform) +
Page#run(device, transform, skipAnnotations)
Calls device functions for all the contents on the page, using the specified transform matrix. The device can be one of the built-in devices or a JavaScript object with methods for the device calls. The transform maps from user space points to device space pixels. -
Page#toPixmap(transform, colorspace, alpha) +If skipAnnotations is true, ignore annotations. +
Page#toPixmap(transform, colorspace, alpha, skipAnnotations)
Render the page into a Pixmap, using the transform and colorspace. If alpha is true, the page will be drawn on a transparent background, otherwise white. -
Page#toDisplayList() +
Page#toDisplayList(skipAnnotations)
Record the contents on the page into a DisplayList.
Page#search(needle)
Search for 'needle' text on the page, and return an array with rectangles of all matches found. +
Page#getAnnotations() +
Return array of all annotations on the page. +
+ +
+
Annotation#bound() +
Returns a rectangle containing the location and dimension of the annotation. +
Annotation#run(device, transform) +
Calls device functions to draw the annotation. +
Annotation#toPixmap(transform, colorspace, alpha) +
Render the annotation into a Pixmap, using the transform and colorspace. +
Annotation#toDisplayList() +
Record the contents of the annotation into a DisplayList.

-- cgit v1.2.3