 MuPDF 1.23.0 Documentationwith a margin of 20 points from the top & bottom (vertical) and 30 points from the left & right (horizontal): mutool trim -b mediabox -m 20,30 -o out.pdf in.pdf Trim a document by trimming the MediaBox [a,b,c,d,e,f]. The transform matrix. • glyph – Integer. • unicode – Integer. • wmode – 0 for horizontal writing, and 1 for vertical writing. text.showGlyph(new mupdf.Font("Times-Roman"), mupdf.Matrix Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph as unicode character. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns0 码力 | 245 页 | 817.74 KB | 8 月前3 MuPDF 1.23.0 Documentationwith a margin of 20 points from the top & bottom (vertical) and 30 points from the left & right (horizontal): mutool trim -b mediabox -m 20,30 -o out.pdf in.pdf Trim a document by trimming the MediaBox [a,b,c,d,e,f]. The transform matrix. • glyph – Integer. • unicode – Integer. • wmode – 0 for horizontal writing, and 1 for vertical writing. text.showGlyph(new mupdf.Font("Times-Roman"), mupdf.Matrix Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph as unicode character. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns0 码力 | 245 页 | 817.74 KB | 8 月前3
 MuPDF 1.22.0 Documentationobject. • transform – [a,b,c,d,e,f]. The transform matrix. • glyph – • unicode – • wmode – 0 for horizontal writing, and 1 for vertical writing. showString(font, transform, string) Add a simple string wmode) Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns Width mutool JavaScript API 87 MuPDF Documentation, Release 1.21.2 • language – String. • wmode – 0 for horizontal writing, and 1 for vertical writing. • style – String. addFont(font) Create a PDF object from0 码力 | 175 页 | 698.87 KB | 8 月前3 MuPDF 1.22.0 Documentationobject. • transform – [a,b,c,d,e,f]. The transform matrix. • glyph – • unicode – • wmode – 0 for horizontal writing, and 1 for vertical writing. showString(font, transform, string) Add a simple string wmode) Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns Width mutool JavaScript API 87 MuPDF Documentation, Release 1.21.2 • language – String. • wmode – 0 for horizontal writing, and 1 for vertical writing. • style – String. addFont(font) Create a PDF object from0 码力 | 175 页 | 698.87 KB | 8 月前3
 MuPDF 1.24.0 Documentationwith a margin of 20 points from the top & bottom (vertical) and 30 points from the left & right (horizontal): mutool trim -b mediabox -m 20,30 -o out.pdf in.pdf Trim a document by trimming the MediaBox [a,b,c,d,e,f]. The transform matrix. • glyph – Integer. • unicode – Integer. • wmode – 0 for horizontal writing, and 1 for vertical writing. text.showGlyph(new mupdf.Font("Times-Roman"), mupdf.Matrix Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph as unicode character. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns0 码力 | 249 页 | 830.15 KB | 8 月前3 MuPDF 1.24.0 Documentationwith a margin of 20 points from the top & bottom (vertical) and 30 points from the left & right (horizontal): mutool trim -b mediabox -m 20,30 -o out.pdf in.pdf Trim a document by trimming the MediaBox [a,b,c,d,e,f]. The transform matrix. • glyph – Integer. • unicode – Integer. • wmode – 0 for horizontal writing, and 1 for vertical writing. text.showGlyph(new mupdf.Font("Times-Roman"), mupdf.Matrix Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph as unicode character. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns0 码力 | 249 页 | 830.15 KB | 8 月前3
 MuPDF 1.25.0 Documentationwith a margin of 20 points from the top & bottom (vertical) and 30 points from the left & right (horizontal): mutool trim -b mediabox -m 20,30 -o out.pdf in.pdf Trim a document by trimming the MediaBox [a,b,c,d,e,f]. The transform matrix. • glyph – Integer. • unicode – Integer. • wmode – 0 for horizontal writing, and 1 for vertical writing. text.showGlyph(new mupdf.Font("Times-Roman"), mupdf.Matrix Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph as unicode character. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns0 码力 | 259 页 | 1.11 MB | 8 月前3 MuPDF 1.25.0 Documentationwith a margin of 20 points from the top & bottom (vertical) and 30 points from the left & right (horizontal): mutool trim -b mediabox -m 20,30 -o out.pdf in.pdf Trim a document by trimming the MediaBox [a,b,c,d,e,f]. The transform matrix. • glyph – Integer. • unicode – Integer. • wmode – 0 for horizontal writing, and 1 for vertical writing. text.showGlyph(new mupdf.Font("Times-Roman"), mupdf.Matrix Return advance width for a glyph in either horizontal or vertical writing mode. Arguments • glyph – The glyph as unicode character. • wmode – 0 for horizontal writing, and 1 for vertical writing. Returns0 码力 | 259 页 | 1.11 MB | 8 月前3
 PyMuPDF 1.24.2 DocumentationAmong them are the integers width, height (each in pixels) and stride (number of bytes of one horizontal image line). Attribute samples represents a rectangular area of bytes representing the image data PyMuPDF Documentation, Release 1.24.2 10.9 How to Mark Non-horizontal Text The previous section already shows an example for marking non-horizontal text, that was detected by text searching. But text extraction image with a four times better resolution for us (and also about 4 times the size): zoom_x = 2.0 # horizontal zoom zoom_y = 2.0 # vertical zoom mat = fitz.Matrix(zoom_x, zoom_y) # zoom factor 2 in each dimension0 码力 | 565 页 | 6.84 MB | 1 年前3 PyMuPDF 1.24.2 DocumentationAmong them are the integers width, height (each in pixels) and stride (number of bytes of one horizontal image line). Attribute samples represents a rectangular area of bytes representing the image data PyMuPDF Documentation, Release 1.24.2 10.9 How to Mark Non-horizontal Text The previous section already shows an example for marking non-horizontal text, that was detected by text searching. But text extraction image with a four times better resolution for us (and also about 4 times the size): zoom_x = 2.0 # horizontal zoom zoom_y = 2.0 # vertical zoom mat = fitz.Matrix(zoom_x, zoom_y) # zoom factor 2 in each dimension0 码力 | 565 页 | 6.84 MB | 1 年前3
 PyMuPDF 1.12.2 documentationit will be embedded. Of the font file, index 0 is used. Be sure to choose a font that supports horizontal, left-to-right spacing. color (sequence) – RGB text color specified as a triple of floats in range effect Y direction Matrix.c shearing effect X direction Matrix.d zoom factor Y direction Matrix.e horizontal shift Matrix.f vertical shift Class API class Matrix __init__(self) __init__(self, zoom-x effect: each Point(x, y) will become Point(x, y - b*x). Therefore, looking from left to right, e.g. horizontal lines will be “tilt” - downwards if b > 0, upwards otherwise (b is the tangens of the tilting0 码力 | 387 页 | 2.70 MB | 1 年前3 PyMuPDF 1.12.2 documentationit will be embedded. Of the font file, index 0 is used. Be sure to choose a font that supports horizontal, left-to-right spacing. color (sequence) – RGB text color specified as a triple of floats in range effect Y direction Matrix.c shearing effect X direction Matrix.d zoom factor Y direction Matrix.e horizontal shift Matrix.f vertical shift Class API class Matrix __init__(self) __init__(self, zoom-x effect: each Point(x, y) will become Point(x, y - b*x). Therefore, looking from left to right, e.g. horizontal lines will be “tilt” - downwards if b > 0, upwards otherwise (b is the tangens of the tilting0 码力 | 387 页 | 2.70 MB | 1 年前3
共 6 条
- 1













