PyMuPDF 1.24.2 DocumentationPixmap 16 Chapter 5. The Basics PyMuPDF Documentation, Release 1.24.2 5.4 Extract vector graphics To extract all the vector graphics from a document page, do the following: doc = fitz.open("some.file") file") page = doc[0] paths = page.get_drawings() This will return a dictionary of paths for any vector drawings found on the page. Note: Taking it further Please refer to: How to Extract Drawings. API reference files while also joining the respective table of contents segments. It looks like this: 5.4. Extract vector graphics 17 PyMuPDF Documentation, Release 1.24.2 API reference • Document.insert_pdf() • Document0 码力 | 565 页 | 6.84 MB | 1 年前3
MuPDF 1.24.0 Documentationavailable: 4.3.1 mutool draw The draw command will render a document to image files, convert to another vector format, or extract the text content. • The supported input document formats are: pdf, xps, cbz, supported output image formats are: pbm, pgm, ppm, pam, png, pwg, pcl and ps. • The supported output vector formats are: svg, pdf, and debug trace (as xml). • The supported output text formats are: plain name) • raster: cbz, png, pnm, pgm, ppm, pam, pbm, pkm. • print-raster: pcl, pclm, ps, pwg. • vector: pdf, svg. • text: html, xhtml, text, stext. -A bits Specify how many bits of anti-aliasing to0 码力 | 249 页 | 830.15 KB | 8 月前3
MuPDF 1.25.0 Documentationavailable: 5.3.1 mutool draw The draw command will render a document to image files, convert to another vector format, or extract the text content. • The supported input document formats are: pdf, xps, cbz, supported output image formats are: pbm, pgm, ppm, pam, png, pwg, pcl and ps. • The supported output vector formats are: svg, pdf, and debug trace (as xml). • The supported output text formats are: plain name) • raster: cbz, png, pnm, pgm, ppm, pam, pbm, pkm. • print-raster: pcl, pclm, ps, pwg. • vector: pdf, svg. • text: html, xhtml, text, stext. -A bits Specify how many bits of anti-aliasing to0 码力 | 259 页 | 1.11 MB | 8 月前3
Django 4.2.x DocumentationCollections Prepared Geometries Geometry Factories I/O Objects Settings Exceptions GDAL API Overview Vector Data Source Objects OGR Geometries Coordinate System Objects Raster Data Objects Settings Exceptions unzipped, the world borders dataset includes files with the following extensions: .shp: Holds the vector data for the world borders geometries. .shx: Spatial index file for geometries stored in the .shp examine spatial data The GDAL ogrinfo utility allows examining the metadata of shapefiles or other vector data sources: $ ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp INFO: Open of `world/data/TM_WORLD_BORDERS-00 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x DocumentationCollections Prepared Geometries Geometry Factories I/O Objects Settings Exceptions GDAL API Overview Vector Data Source Objects OGR Geometries Coordinate System Objects Raster Data Objects Settings Exceptions unzipped, the world borders dataset includes files with the following extensions: .shp: Holds the vector data for the world borders geometries. .shx: Spatial index file for geometries stored in the .shp examine spatial data The GDAL ogrinfo utility allows examining the metadata of shapefiles or other vector data sources: $ ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp INFO: Open of `world/data/TM_WORLD_BORDERS-00 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 2.2.x DocumentationCollections Prepared Geometries Geometry Factories I/O Objects Settings Exceptions GDAL API Overview Vector Data Source Objects OGR Geometries Coordinate System Objects Raster Data Objects Settings Exceptions unzipped, the world borders dataset includes files with the following extensions: .shp: Holds the vector data for the world borders geometries. .shx: Spatial index file for geometries stored in the .shp examine spatial data The GDAL ogrinfo utility allows examining the metadata of shapefiles or other vector data sources: $ ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp INFO: Open of `world/data/TM_WORLD_BORDERS-00 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 4.0.x DocumentationCollections Prepared Geometries Geometry Factories I/O Objects Settings Exceptions GDAL API Overview Vector Data Source Objects OGR Geometries Coordinate System Objects Raster Data Objects Settings Exceptions unzipped, the world borders dataset includes files with the following extensions: .shp: Holds the vector data for the world borders geometries. .shx: Spatial index file for geometries stored in the .shp examine spatial data The GDAL ogrinfo utility allows examining the metadata of shapefiles or other vector data sources: $ ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp INFO: Open of `world/data/TM_WORLD_BORDERS-00 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 4.0.x Documentationunzipped, the world borders dataset includes files with the following extensions: • .shp: Holds the vector data for the world borders geometries. • .shx: Spatial index file for geometries stored in the examine spatial data The GDAL ogrinfo utility allows examining the metadata of shapefiles or other vector data sources: $ ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp INFO: Open of �world/data/TM_WORLD_BORDERS-0 also use the following: • ogr2ogr: A command-line utility included with GDAL that can import many vector data formats into PostGIS, MySQL, and Oracle databases. • shp2pgsql: This utility included with0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 3.2.x DocumentationCollections Prepared Geometries Geometry Factories I/O Objects Settings Exceptions GDAL API Overview Vector Data Source Objects OGR Geometries Coordinate System Objects Raster Data Objects Settings Exceptions unzipped, the world borders dataset includes files with the following extensions: .shp: Holds the vector data for the world borders geometries. .shx: Spatial index file for geometries stored in the .shp examine spatial data The GDAL ogrinfo utility allows examining the metadata of shapefiles or other vector data sources: $ ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp INFO: Open of `world/data/TM_WORLD_BORDERS-00 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 3.2.x Documentationunzipped, the world borders dataset includes files with the following extensions: • .shp: Holds the vector data for the world borders geometries. • .shx: Spatial index file for geometries stored in the examine spatial data The GDAL ogrinfo utility allows examining the metadata of shapefiles or other vector data sources: $ ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp INFO: Open of �world/data/TM_WORLD_BORDERS-0 also use the following: • ogr2ogr: A command-line utility included with GDAL that can import many vector data formats into PostGIS, MySQL, and Oracle databases. • shp2pgsql: This utility included with0 码力 | 2199 页 | 7.89 MB | 1 年前3
共 80 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













