pdfminer-master.zip

  • L4_164086
    了解作者
  • 4MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-01 06:34
    上传日期
PDFMiner 是一个 Python 的 PDF 解析器,可以从 PDF 文档中提取信息。与其他 PDF 相关的工具不同,它侧重的是获取和分析文本数据。PDFMiner 允许获取某一页中文本的准确位置和一些诸如字体、行数的信息。它包括一个 PDF 转换器,可以把 PDF 文件转换成 HTML 等格式。还有一个扩展的 PDF 解析器,可以用于除文本分析以外的其他用途。
pdfminer-master.zip
  • pdfminer-master
  • cmaprsrc
  • cid2code_Adobe_Japan1.txt
    2.6MB
  • cid2code_Adobe_Korea1.txt
    1004.2KB
  • cid2code_Adobe_GB1.txt
    1.8MB
  • README.txt
    2.8KB
  • cid2code_Adobe_CNS1.txt
    2MB
  • samples
  • nonfree
  • i1040nr.txt.ref
    5.6KB
  • f1040nr.xml.ref
    425.2KB
  • dmca.pdf
    71.1KB
  • naacl06-shinyama.pdf
    188.7KB
  • kampo.xml.ref
    248.1KB
  • naacl06-shinyama.txt.ref
    3.4KB
  • kampo.html.ref
    52.3KB
  • nlp2004slides.xml.ref
    8.3KB
  • i1040nr.xml.ref
    523.5KB
  • kampo.txt.ref
    7.9KB
  • kampo.pdf
    27.6KB
  • dmca.html.ref
    7.6KB
  • i1040nr.html.ref
    20.5KB
  • f1040nr.pdf
    640.1KB
  • f1040nr.html.ref
    60.9KB
  • nlp2004slides.html.ref
    1.3KB
  • i1040nr.pdf
    540.3KB
  • f1040nr.txt.ref
    4.4KB
  • naacl06-shinyama.html.ref
    7.6KB
  • dmca.txt.ref
    2KB
  • nlp2004slides.txt.ref
    141B
  • nlp2004slides.pdf
    793.6KB
  • naacl06-shinyama.xml.ref
    299.6KB
  • dmca.xml.ref
    166.7KB
  • encryption
  • base.xml
    1.1KB
  • base.pdf
    12.3KB
  • aes-256.pdf
    12.9KB
  • aes-128-m.pdf
    12.7KB
  • aes-128.pdf
    12.8KB
  • rc4-40.pdf
    12.4KB
  • aes-256-m.pdf
    12.9KB
  • Makefile
    449B
  • rc4-128.pdf
    12.4KB
  • jo.tex
    2.9KB
  • simple2.xml.ref
    443B
  • simple2.html.ref
    823B
  • jo.html.ref
    5KB
  • simple1.pdf
    849B
  • jo.txt.ref
    2.7KB
  • simple3.pdf
    1KB
  • simple1.xml.ref
    6.1KB
  • simple2.pdf
    1.1KB
  • simple1.html.ref
    2KB
  • jo.xml.ref
    84.8KB
  • simple1.txt.ref
    79B
  • jo.pdf
    3.3KB
  • simple3.html.ref
    1.2KB
  • simple3.xml.ref
    3.6KB
  • Makefile
    1.3KB
  • simple3.txt.ref
    60B
  • README
    2KB
  • simple2.txt.ref
    1B
  • pdfminer
  • pdfpage.py
    5KB
  • psparser.py
    19.7KB
  • pdfinterp.py
    24.8KB
  • ccitt.py
    24.9KB
  • __init__.py
    98B
  • image.py
    4KB
  • latin_enc.py
    7.7KB
  • converter.py
    18.3KB
  • pdfdevice.py
    5.1KB
  • arcfour.py
    1.2KB
  • pdfdocument.py
    26.1KB
  • fontmetrics.py
    60.7KB
  • rijndael.py
    45.1KB
  • ascii85.py
    2.4KB
  • pdfcolor.py
    750B
  • pdffont.py
    26.5KB
  • lzw.py
    2.9KB
  • cmapdb.py
    16.9KB
  • layout.py
    21.3KB
  • glyphlist.py
    118.7KB
  • Makefile
    114B
  • encodingdb.py
    1.6KB
  • runlength.py
    1.6KB
  • pdfparser.py
    5.2KB
  • utils.py
    9.4KB
  • pdftypes.py
    8.3KB
  • tools
  • runapp.py
    3.4KB
  • pdf2txt.py
    4.2KB
  • conv_glyphlist.py
    608B
  • conv_cmap.py
    735B
  • latin2ascii.py
    2.3KB
  • pdf2html.cgi
    7.4KB
  • conv_afm.py
    1.3KB
  • dumppdf.py
    8.9KB
  • Makefile
    79B
  • prof.py
    815B
内容介绍
# PDFMiner PDFMiner is a text extraction tool for PDF documents. [![Build Status](https://travis-ci.org/euske/pdfminer.svg?branch=master)](https://travis-ci.org/euske/pdfminer) [![PyPI](https://img.shields.io/pypi/v/pdfminer)](https://pypi.org/project/pdfminer/) **Warning**: Starting from version 20191010, PDFMiner supports **Python 3 only**. For Python 2 support, check out <a href="https://github.com/pdfminer/pdfminer.six" rel='nofollow' onclick='return false;'>pdfminer.six</a>. ## Features: * Pure Python (3.6 or above). * Supports PDF-1.7. (well, almost) * Obtains the exact location of text as well as other layout information (fonts, etc.). * Performs automatic layout analysis. * Can convert PDF into other formats (HTML/XML). * Can extract an outline (TOC). * Can extract tagged contents. * Supports basic encryption (RC4 and AES). * Supports various font types (Type1, TrueType, Type3, and CID). * Supports CJK languages and vertical writing scripts. * Has an extensible PDF parser that can be used for other purposes. ## How to Use: 1. `> pip install pdfminer` 1. `> pdf2txt.py samples/simple1.pdf` ## Command Line Syntax: ### pdf2txt.py pdf2txt.py extracts all the texts that are rendered programmatically. It also extracts the corresponding locations, font names, font sizes, writing direction (horizontal or vertical) for each text segment. It does not recognize text in images. A password needs to be provided for restricted PDF documents. > pdf2txt.py [-P password] [-o output] [-t text|html|xml|tag] [-O output_dir] [-c encoding] [-s scale] [-R rotation] [-Y normal|loose|exact] [-p pagenos] [-m maxpages] [-S] [-C] [-n] [-A] [-V] [-M char_margin] [-L line_margin] [-W word_margin] [-F boxes_flow] [-d] input.pdf ... * `-P password` : PDF password. * `-o output` : Output file name. * `-t text|html|xml|tag` : Output type. (default: automatically inferred from the output file name.) * `-O output_dir` : Output directory for extracted images. * `-c encoding` : Output encoding. (default: utf-8) * `-s scale` : Output scale. * `-R rotation` : Rotates the page in degree. * `-Y normal|loose|exact` : Specifies the layout mode. (only for HTML output.) * `-p pagenos` : Processes certain pages only. * `-m maxpages` : Limits the number of maximum pages to process. * `-S` : Strips control characters. * `-C` : Disables resource caching. * `-n` : Disables layout analysis. * `-A` : Applies layout analysis for all texts including figures. * `-V` : Automatically detects vertical writing. * `-M char_margin` : Speficies the char margin. * `-W word_margin` : Speficies the word margin. * `-L line_margin` : Speficies the line margin. * `-F boxes_flow` : Speficies the box flow ratio. * `-d` : Turns on Debug output. ### dumppdf.py dumppdf.py is used for debugging PDFs. It dumps all the internal contents in pseudo-XML format. > dumppdf.py [-P password] [-a] [-p pageid] [-i objid] [-o output] [-r|-b|-t] [-T] [-O directory] [-d] input.pdf ... * `-P password` : PDF password. * `-a` : Extracts all objects. * `-p pageid` : Extracts a Page object. * `-i objid` : Extracts a certain object. * `-o output` : Output file name. * `-r` : Raw mode. Dumps the raw compressed/encoded streams. * `-b` : Binary mode. Dumps the uncompressed/decoded streams. * `-t` : Text mode. Dumps the streams in text format. * `-T` : Tagged mode. Dumps the tagged contents. * `-O output_dir` : Output directory for extracted streams. ## TODO * Replace STRICT variable with something better. * Improve the debugging functions. * Use logging module instead of sys.stderr. * Proper test cases. * PEP-8 and PEP-257 conformance. * Better documentation. * Crypto stream filter support. ## Related Projects * <a href="http://pybrary.net/pyPdf/" rel='nofollow' onclick='return false;'>pyPdf</a> * <a href="http://www.foolabs.com/xpdf/" rel='nofollow' onclick='return false;'>xpdf</a> * <a href="http://pdfbox.apache.org/" rel='nofollow' onclick='return false;'>pdfbox</a> * <a href="http://mupdf.com/" rel='nofollow' onclick='return false;'>mupdf</a>
评论
    相关推荐