PyMuPDF 1.24.2 Documentation'image': b'\xff\xd8\xff\xe0\x00\x10JFIF\...', # CAUTION: LARGE! 'size': 80518, 'transform': (200.0, 0.0, -0.0, 228.2460174560547, 100.0, 135.8769989013672), 'type': 1, 'width': 439, 'xres': 96, 'yres': 96} >>> pprint(page.get_drawings()) [{'closePath': True, 'color': [1.0, 0.0, 0.0], 'dashes': '[] 0', 'even_odd': False, 'fill': [1.0, 1.0, 0.0], 'items': [('c', Point(100.0, 150.0), Point(100.0, 177.614013671875) 6%;2020 Benin;Porto-Novo;264320;2.0%;2013 Suriname;Paramaribo;240924;39.3%;2012 India;New Delhi;249998;0.0%;2011 Sahrawi Arab Democratic Republic;Laayoune (claimed) - Tifariti (de facto);217732 - 3000; ˓→—;20140 码力 | 565 页 | 6.84 MB | 1 年前3
PyMuPDF 1.12.2 documentation[1.0, 0.0, 0.0] stands for RGB and color red. Both lists can be [] if not specified. The dictionary will be empty {} if no PDF. The value of each float is mapped to integer values from 0 (<=> 0.0) to 1) or fitz.Matrix(0) instead, like so: >>> fitz.Matrix(0).preTranslate(2, 5) fitz.Matrix(1.0, 0.0, -0.0, 1.0, 2.0, 5.0) © Copyright 2015-2018, Jorj X. McKie. Last updated on 13. Jan 2018. Created using # shift the rect by 5 points fitz.IRect(15, 15, 415, 615) >>> >>> ir & fitz.Rect(0.0, 0.0, 15.0, 15.0) fitz.IRect(10, 10, 15, 15) >>> ir /= (1, 2, 3, 4, 5, 6) # divide by a matrix0 码力 | 387 页 | 2.70 MB | 1 年前3
共 2 条
- 1













