PyMuPDF 1.24.2 Documentation
annotation with two mathematical curves (sine and cosine function graphs) as line segments: import math import fitz #------------------------------------------------------------------------------ # preliminary and cosine #------------------------------------------------------------------------------ w360 = math.pi * 2 # go through full circle deg = w360 / 360 # 1 degree as radians rect = fitz.Rect(100,200 first_x # current x coordinate y = -math.sin(x * deg) # sine p = (x_coord, y * y_scale + first_y) # corresponding point sin_points.append(p) # append y = -math.cos(x * deg) # cosine p = (x_coord,0 码力 | 565 页 | 6.84 MB | 1 年前3MuPDF 1.23.0 Documentation
annot.setBorderWidth(5) annot.addInkListStroke() for (let i = 0; i < 360; i += 5) { let y = Math.sin(i * Math.PI / 180) annot.addInkListStrokeVertex([ 200 + i, 700 + y * 50 ]) } page.createLink([ 500 The core module contains the runtime context, exception handling, and various string manipulation, math, hash table, binary tree, and other useful functions. Core API Almost all functions in the MuPDF quotes and Postscript escapes. %n char* Formats string using prefix / and PDF name hex-escapes. Math Functions We obviously need to deal with lots of points, rectangles, and transformations in MuPDF0 码力 | 245 页 | 817.74 KB | 7 月前3MuPDF 1.25.0 Documentation
annot.setBorderWidth(5) annot.addInkListStroke() for (let i = 0; i < 360; i += 5) { let y = Math.sin(i * Math.PI / 180) annot.addInkListStrokeVertex([ 200 + i, 700 + y * 50 ]) } page.createLink([ 500 The core module contains the runtime context, exception handling, and various string manipulation, math, hash table, binary tree, and other useful functions. Core API Almost all functions in the MuPDF quotes and Postscript escapes. %n char* Formats string using prefix / and PDF name hex-escapes. Math Functions We obviously need to deal with lots of points, rectangles, and transformations in MuPDF0 码力 | 259 页 | 1.11 MB | 7 月前3MuPDF 1.24.0 Documentation
annot.setBorderWidth(5) annot.addInkListStroke() for (let i = 0; i < 360; i += 5) { let y = Math.sin(i * Math.PI / 180) annot.addInkListStrokeVertex([ 200 + i, 700 + y * 50 ]) } page.createLink([ 500 The core module contains the runtime context, exception handling, and various string manipulation, math, hash table, binary tree, and other useful functions. Core API Almost all functions in the MuPDF quotes and Postscript escapes. %n char* Formats string using prefix / and PDF name hex-escapes. Math Functions We obviously need to deal with lots of points, rectangles, and transformations in MuPDF0 码力 | 249 页 | 830.15 KB | 7 月前3MuPDF 1.22.0 Documentation
The core module contains the runtime context, exception handling, and various string manipulation, math, hash table, binary tree, and other useful functions. Core API Almost all functions in the MuPDF quotes and Postscript escapes. %n char* Formats string using prefix / and PDF name hex-escapes. Math Functions We obviously need to deal with lots of points, rectangles, and transformations in MuPDF direction of the text represented. typedef struct { fz_point ul, ur, ll, lr; } fz_quad; List of math functions These are simple mathematical operations that can not throw errors, so do not need a context0 码力 | 175 页 | 698.87 KB | 7 月前3
共 5 条
- 1