Saravanan666/pypi-org huggingface dataset:
Package: pdf-importer
READMEStatement PDF Importerpdf-importeris a PDF parser for credit card statements.
It accepts statement from the following issuers:Cembra & CumulusMasterCardSwissCard Cashback(AMEX / VISA / MasterCard)The data can be saved to a CSV file compatible withWallet by budgetbakersimport feature.DependenciesPython 3.6andpip 10.0.camelot-pyandopencv-pythonfor PDF parsing.python-dateutilfor date format management.pandasfor CSV export.InstallationYou can install the package by cloning theGitHub repositoryor directly
usingpip:python -m pip install pdf-importerUsageYou can parse a PDF statement simply withpython -m pdf_importer [filename] [type] [-o csv_file]wherefilenameis the full path to the PDF filetypeis eithercembraorcashbackcsv_fileis the full path to the CSV file where the data is saved.AuthorsCarlos Vigo-Initial work-GitHubContributingPlease read ourcontributing policyfor details on our code of
conduct, and the process for submitting pull requests to us.VersioningWe useGitfor versioning. For the versions available, see thetags on this repository.LicenseThis project is licensed under theGNU GPLv3 LicenseBuilt WithPyCharm Professional 2020- The IDE used
Package: pdfimpose
Check out my other PDF tools:pdfautonup|dummypdf.Imposition consists in the arrangement of the printed product’s pages on
the printer’s sheet, in order to obtain faster printing, simplify binding
and reduce paper waste (source:http://en.wikipedia.org/wiki/Imposition).This software can perform imposition on PDF files of arbitrary size.
It handles several imposition schemas: hardcover binding, saddle stitch, one page zine, etc.
Seedocumentationfor more details.Examples2024 calendar(source, see LaTeX source file in sources repository).Flash cards(source);Copy, cut, fold(source);Cut, stack, fold(source);One-page-zine(source);Hardcover binding(source);Saddle stitch(source);Wire binding(source).What’s new?Seechangelog.Download and installSee the end of list for a (quick and dirty) Debian package.From sources:Download:https://pypi.python.org/pypi/pdfimposeInstall (in avirtualenv, if you do not want to mess with your distribution installation system):python setup.py installFrom pip:pip install pdfimposeQuick and dirty Debian (and Ubuntu?) packageThis requiresstdebto be installed:python setup.py --command-packages=stdeb.command bdist_deb
sudo dpkg -i deb_dist/python<PYVERSION>-pdfimpose_<VERSION>_all.debDocumentationThe compiled documentation is available onreadthedocsTo compile it from source, download and run:cd doc && make html
Package: pd.find
Short module description=========================Module pd.find present simple way use filesystemto search and read files on it. File system usingshowed as simple as using ordinal dict::>>> import pd.find>>> f=pd.find.file.File("/etc/sysconfig")>>> f'/etc/sysconfig'>>> f.keys()['harddisk', 'lm_sensors', 'ipw3945d~', 'syscheckerrc', 'mouse']>>> f['lm_sensors']'/etc/sysconfig/lm_sensors'>>> print str(f['lm_sensors'])#    /etc/sysconfig/lm_sensors - Defines modules loaded byOther important pakage mission is find files by the way similarto command line find utility::>>> import pd.find>>> pd.find.find("/etc/sysconfig",lambda x : x.isreg() and x.check_regex(".*rc"))<generator object at 0xb7cca7cc>>>> for item in pd.find.find("/etc/sysconfig",lambda x : x.isreg() and x.check_regex(".*rc$")) :... print item.path.../etc/sysconfig/xinitrc/etc/sysconfig/syscheckerrc>>>Using  pd.find.file.File--------------------------Constructor issued as in example above, with one requiredargument - path to file or directory. There are otherarguments:dereferenceFollow symlinks (is False by default)The File object to provide some useful methods and attributes:pathAttribute present absolute file path;__str__()Method returns file body if it can;Other attributes do condition check and will be described bellow.Issue pd.find.find utility--------------------------The pd.find.find utility issued to reqursive search files to satisfysome conditions. Utility accept followed arguments:pathDirectory path to search begin with;conditionCondition checked on scanned files and directories. If condition satisfy - objectyielded by utility;preconditionCondition checked before subdirectory scan. If condition does not satisfy,subdirectory will not be scaned;dereferenceOn true value of this argument searhing will be followed by symboliclink.Utility return generator of list object find by them.Tests provided by File Object-----------------------------mtimeReturn modification timeatimeReturn last access timectimeReturn creation time """return self.__checktime_(stat.ST_CTIME)newerReturn true if object is more newer then input pathcheck_nameReturn true if object name are equal to input namecheck_pathReturn true if object path are equal to input pathcheck_path_regexReturn true if regexp matched object pathcheck_regexReturn true if regexp matched object namecheck_iregexReturn true if regexp matched object namedepthReturn current depth on file treedeleDelete file by path of current objectexecuteFrm will be substituted by substring "{}" on path and executedby os.system() callHo-ho. Sorry my English :)* Sat Nov 10 2007  Andrey Orlov <cray@neural.ru> 0.0.3- Some documentation wrote* Wed Nov 9 2007 Andrey Orlov <cray@neural.ru> 0.0.2- first official release
Package: pdf-info
Data extractor for PDF documents - pdf-infoA command line tool and Python library to support your analysis of pdf documents.Extracts important fetures from a document like headers, paragraphs, important keywords and subscripts.Returns a vector of relevant details!!InstallationInstallpdf-infousing pippip install pdf-infoUse as Python LibraryYou can easily addpdf-infoto your own Python scripts as library.from pdf_info import pdf_info_classob = pdf_info_class()result = ob.pdf_info('path/to/my/file.pdf',page_number,tag)List of tags supported are - "headers", "paragraphs", "keywords", "subscripts".MaintainersSatyam Prakash
Package: pdf-information
PDF InformationMaps output ofpdfinfoto a dataclass.UsagefrompathlibimportPathfrompdf_informationimportPDFInfopdf_file=Path("pdf_files/some_file.pdf")pdf_info=PDFInfo.from_cmd(pdf_file=pdf_file)DevelopmentFor help getting started developing checkDEVELOPMENT.md
Package: pdfino
PDFinoPDFino (/pəˈdɪfino/) is a Python library for generating PDF files. It is built on top ofReportLab,
a powerful PDF generation library for Python. PDFino is designed to be simple and easy to use.
It provides a high-level API for generating PDF files without having to deal with the low-level details of ReportLab.Getting started 🌯frompdfinoimportDocumentdoc=Document()doc.h1("Hello World",options={"color":"blue","margin_bottom":30})doc.p("Generate PDFs effortlessly with PDFino.")doc.hr(height=2,options={"color":"#ffa500","margins":(30,100,0,100)})data=doc.bytesPDFino keeps things streamlined, butit won't replace all of ReportLab's powers. You can always add ReportLab
flowables directly to your document if you need to.frompdfinoimportDocumentfromreportlab.platypusimportParagraphdoc=Document()doc.add(Paragraph("Hello World",doc.stylesheet["h1"]))doc.save_as("hello_world.pdf")For detailed usage, check outpdfino.readthedocs.io.Run the tests 🧪poetryrunpytest--cov=pdfino--cov-report=termStyle guide 📖Tab size is 4 spaces. Keep lines under 120 characters. Feeling iffy? Runruffbefore you commit:poetryrunruffformat.&&poetryrunruffcheckpdfino
Package: pdfire
PDFire PythonThis package provides a client for thePDFire.ioAPI. Read theDocumentationfor a list of available options.InstallationpipinstallpdfireBasic usagefrompdfireimportClient,ConversionParamsclient=Client('YOUR-API-KEY')pdf=client.convert(ConversionParams(url='https://google.com',margin=0,format='A4',))pdf.save_to('/path/on/disk.pdf')LicenseMIT
Package: pdfix-sdk
PDFix SDK PackagePDFix SDK - High Performace PDF librarykeywords: pdf, accessibility, remediation, extraction, html, conversion, render, watermark, redact, sign, formsPDFix SDK analyses the key components of the PDF and makes it easily available for you to manipulate. It’s a high-performance library that helps software developers and end-users integrate PDF functionality into their workflows.FeaturesAutomated PDF Remediation (PDF/UA)Automated Data Extraction (JSON, XML)PDF to HTML Conversion (Original, Responsive, by Tags)Standard PDF Editing Features (render, watermark, redact, sign, forms, and more)Supported platformsLinux amd64Windows amd64macOS amd64, arm64Installationpip install pdfix-sdkExamplefrom pdfixsdk.Pdfix import *

pdfix = GetPdfix()
doc = pdfix.OpenDoc("path/to/your.pdf", "")
print(doc.GetNumPages())
doc.Close()More Python examples onhttps://github.com/pdfix/pdfix_sdk_example_python
Package: pdfjinja
Use jinja templates to fill and sign PDF forms.You can use this library to fill out a PDF form using data from an external
source such as a database or an excel file. Use a PDF editing software to edit
the form and specifiy a jinja template in the tooltip property of the form
field.DependenciesYou’ll need the pdftk library. If you want to paste images, you’ll need whatever
dependencies are necessary for Pillow to load your preferred image format.
Most of the packages below are taken from the Pillow documentation. You don’t
need all of them. In most cases, just pdftk will do.Ubuntu:apt-get install python-dev python-pip libtiff5-dev libjpeg8-dev \
    zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev \
    tk8.6-dev python-tk pdftk libmagickwand-devOSX:* Install pdftk (https://www.pdflabs.com/tools/pdftk-server/).
* Install dependencies for Pillow if you want to paste images.Windows:* Install pdftk (https://www.pdflabs.com/tools/pdftk-server/).
* Install dependencies for Pillow if you want to paste images.InstallationYou can install pdfjinja with pip:$ pip install pdfjinja
$ pdfjinja -hUsage:See examples/sample.pdf for an example of a pdf file with jinja templates.
The template strings are placed in the tooltip property for each form field
in the pdf.See examples/output.pdf for the output. The data that the form is filled with
comes from examples/sample.json.Basic:$ pdfjinja -j examples/simple.json examples/sample.pdf examples/output.pdfAttachments:$ pdfjinja --font examples/open-sans/regular.ttf \
           --json examples/sample.json \
           examples/sample.pdf \
           examples/output.pdfPython:from pdfjinja import PdfJinja

pdfjinja = PdfJinja('form.pdf')
pdfout = pdfjinja(dict(firstName='Faye', lastName='Valentine'))
pdfout.write(open('filled.pdf', 'wb'))If you are using this with Flask as a webserver:from flask import current_app
from pdfjinja import PdfJinja
pdf = PdfJinja('form.pdf', current_app.jinja_env)See examples/example.py for a more detailed python example. It might also be
helpful to example the sample pdf template in examples/sample.pdf.
Package: pdfkivygui
DataframeGUIKivyPort of Dataframe GUI module to a Kivy widget. Original module can be found at this repository:https://github.com/bluenote10/PandasDataFrameGUIUpdatesThis fork has been updated to use the current version of all required libraries.matplotlib _png is no longer needed to be imported and was removedpandas.DataFrame.from_items wasdeprecated since version 0.23.0and has been replaced with pandas.DataFrame.from_dictkivy.garden.matplotlib was giving me trouble so I just included the source in garden.matplotlibadded in requirements.txt so all requirements can be installed through pip.Demo Run Instructions$pythondemo.pyDemo Screenshots
Package: pdf-language-detector
PLD (PDF Language Detector)PLD is a Python program that analyzes PDF files, extracts images, processes them using Optical Character Recognition (OCR), and detects the dominant language of the text. It provides language detection information in JSON format and calculates the average confidence coefficient for each language.RequirementsPython 3.8or aboveTesseract OCRpdftoppmInstallationInstall Tesseract OCR and pdftoppm using your package manager. For example, on Ubuntu:sudoaptinstalltesseract-ocrtesseract-ocr-allpoppler-utilsFrom PyPiInstall with pip:python3-mpipinstall--userpdf-language-detectorThen run directly from your terminal:pld--helpFrom the sourcesClone the PLD repository:gitclonegit@github.com:github.com/icij/pld.gitInstall the required Python packages with poetry:poetryinstallThen run inside a virtual env managed by poetry:poetryrunpld--helpFrom DockerInstall with Docker:dockerpullicij/pldThen run inside a container:dockerrun-iticij/pldpld--helpUsageDetectThis command process PDF files and detect the dominant language.pld detect --help

    --language A list of ISO3 language codes to detect.
    --input-dir: Path to the input directory containing PDF files. Default is the current directory.
    --output-dir (optional): Path to the output directory. Default is 'out' directory in the current directory.
    --max-pages (optional): Maximum number of pages to process per PDF file. Default is 5.
    --resume (optional): Skip PDF files already analyzed.
    --skip-images (optional): Skip the extraction of PDF files a images.
    --skip-ocr (optional): Skip the OCR of images from PDF files.
    --parallel (optional): Number of threads to run in parallel.
    --relative-to (optional): Path to the directory relative to which build the output dir path.ReportThis command print a report from the previously detected language (using the same output dir).pld report --help

    --output-dir: Path to the output directory. Default is 'out' directory in the current directory.TestYou can run the test suite (propulsed by pytest) with this command:maketestExamplesProcess PDF files in the current directory, detect English and Spanish languages, and save the results in the 'results' directory:pld--languageeng--languagespa--input-dirdocuments--output-dirresultsProcess PDF files in the 'documents' directory, detect French and Greek languages, and limit the processing to 3 pages per file:pld--languagefra--languageell--input-dirdocuments--max-pages3LicenseThis project is licensed under the MIT License.
Package: pdflatex
OverviewThis is a simple module to execute pdflatex in an easy and clean way.
The pdflatex command line utility by default generates a lot of output and can create many files.InstantiationThe PDFLaTeX class can be instantiated directly or through helpers:from_texfile(filename)from_binarystring(binstr, jobname)from_jinja2_template(jinja2_template, jobname = None, **render_kwargs)jobname is any string that can be used to create a valid filename;Examples:In all the following examples, no files are left on the filesystem,
unless requested with thekeep_pdf_fileandkeep_log_fileparameters
to thecreate_pdfmethod.Create PDF from .tex filefrom pdflatex import PDFLaTeX

pdfl = PDFLaTeX.from_texfile('my_file.tex')
pdf, log, completed_process = pdfl.create_pdf(keep_pdf_file=True, keep_log_file=True)The functioncreate_pdfreturns 3 results:The pdf file in a binary string;The log file generated by pdflatex as text;An instance of subprocess.CompleteProcess with the results of the pdflatex execution.Also,create_pdftakes a few parameters:keep_pdf_file: an optional boolean. Default to False. If True a pdf file is maintained. Its location and name depends on the value of the -output-directory and -jobname parameters. It is also derived from the tex filename or the jinja2 template filename if no parameter is given;keep_log_file: same thing, for the log file.env: a default ENV mapping for the execution of pdflatex. You probably want to skip this.Create PDF from Jinja2 Templateimport os
import pdflatex
import jinja2 

env = pdflatex.JINJA2_ENV
env['loader'] = jinja2.FileSystemLoader(os.path.abspath('.'))
env = jinja2.Environment(**env)
template = env.get_template('jinja.tex')
pdfl = pdflatex.PDFLaTeX.from_jinja2_template(template, data='Hello world!')
pdf, log, cp = pdfl.create_pdf()Quite self explanatory, just note that pdflatex includes a dictionary
JINJA2_ENV with a suggestion of environment parameters for you to use with
jinja2 and LaTeX. It os defined as:JINJA2_ENV = {'block_start_string': '\BLOCK{',
              'block_end_string': '}',
              'variable_start_string': '\VAR{',
              'variable_end_string': '}',
              'comment_start_string': '\#{',
              'comment_end_string': '}',
              'line_statement_prefix': '%%',
              'line_comment_prefix': '%#',
              'trim_blocks': True,
              'autoescape': False }Create PDF file from binary string:import pdflatex

with open('my_file.tex', 'rb') as f:
    pdfl = pdflatex.PDFLaTeX.from_binarystring(f.read(), 'my_file')
pdf, log, cp = pdfl.create_pdf()
Package: pdflayers
pdflayerspdflayersis a tool for changing default visibility of PDF layers
(OCGs, Optional Content Groups).Installationpython3-mpipinstall--userpdflayersUsagepdflayers <input file> <output file> --show <layer name(s)>orpython3 -m pdflayers <input file> <output file> --show <layer name(s)>Acknowledgementspikepdfis doing most of the work.ReferencesPDF 1.7 ReferenceAcrobat JavaScript API ReferenceAcrobat DC SDK Documentation
Package: pdflayoutxt
pdflayoutxtpdflayoutxt is a Python library for extracting text from searchable pdf's (Non Scanned) and it make sures the extracted text is in the same layout as the document.InstallationUse the package managerpipto install foobar.pipinstallpdflayoutxtUsage# import the libraryimportpdflayoutxt# creates an object of pdfextracterpdfobj=pdflayoutxt.pdfextracter()# returns a list, each index being the text extracted from that index page.# In simple terms no_of_pages_in_document==len(list_returned)pdf_path="./abc.pdf"text=pdfobj.get_pdf_text(pdf_path=pdf_path)# outputprint(text)MethodDescription.get_pdf_text(pdf_path,pdf_password="",pages=[],left_most_x=0,left_most_y=0,right_most_x=1,right_most_y=1)Returns a list of list, of texts, present in each of the page in the document.pdf_passwordargument takes a string input,if pdf is encrypted with password, the password needs to be passed to this argument.Pagesargument takes a list of pages or int (single page)  from where the text needs to be extracted, if text from all pages are required the default parameter will take care.left_most_xthis parameter defines the starting point of text extraction on x axis (width). Its value lies between [0,1], like if we need .25 percent of right side of page (width) then we will pass .75 as argument.left_most_ythis parameter defines the starting point of text extraction on y axis (height). Its value lies between [0,1], like if we need .25 percent of text from bottom side of page  (height) then we will pass .75 as argument.right_most_xthis parameter defines the end point of text extraction on x axis (width). Its value lies between [0,1].right_most_ythis parameter defines the end point of text extraction on y axis (height). Its value lies between [0,1]. These parametersright_most_y,left_most_x,right_most_x,left_most_yare set to default for extracting text from complete page without cropping, if the text needs to be extracted from a particular area of page, these parameters become handy.ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.LicenseMIT
Package: pdf-link-checker
pdf-link-checkeris a simple tool that parses a PDF document and checks for
broken hyperlinks. This done by sending a simple HTTP request to each link
found in a given document.Getting it runningpip install pdf-link-checker
pdf-link-checker my-awesome-slides.pdfOptions–max-threadsSpecifies the maximum number of allowed threads (default: 100).To speedup the run, pdf-link-checker will launch several threads
in order to check several links in parallel.
This option allows to set a limit to the number of threads.–max-requests-per-hostSpecifies the maximum number of allowed requests per host.Some URLs may belong to the same host, and since pdf-link-checker
can check many URLs at the same time, we may want to set a limit
to the number of requests per host.
Otherwise, some hosts may confuse the check with a DoS attack.Getting helpYou can post your questions to our dedicated mailing list:http://lists.free-electrons.com/mailman/listinfo/pdf-link-checker-updatesTODO(…because there’s no active project without a TODO list!)Fix: some documents are failing on doc.initialize().Fix: if the URL is a huge document, we should just check and not
download it entirely.Replace the thread array into a nice thread pool.
Each thread from the pool should take an URL from a (protected) queue.
We could also have one queue per host and thus handle the
max-requests-per-host constraint without a separate parameter.Version History1.1.1Remove extra print, just a leftover1.1.0Only allow https and ftp URIs. This prevents from failing on mailto:
andfile://URIs.Add better exception handling to avoid crashingAdd better timeout and request exception handlingFix broken thread managementRemove stupid double-requestsSeveral small fixes1.0.2Updated repo locationMoved from distutils to setuptools1.0.1Version bump1.0Initial release
Package: pdflinkchecker-cli
PDF Link CheckerGithub Action and CLI tool to automatically check all links in a PDF for availability to find dead or broken links.UsageInstall the package usingpippipinstallpdflinkchecker_cliand use it as a CLI toolpdflinkchecker.# to search for and check all pdfs in the current directory recursivelypdflinkcheckerpath/to/pdf# to check a specific filepdflinkcheckerpath/to/pdf1path/to/pdf2# to check multiple specific filesExemplary output looks like thisAnalyzed/data/dummy1.pdf,foundthefollowingtypesoflinks/httpcodes:{200:13}Analyzed/data/dummy2.pdf,foundthefollowingtypesoflinks/httpcodes:{'mail':4,'tel':4,200:49,'error':3}|PageNumber|URL|Details||---------------+--------------------------+---------------------------------------------------------------------||1|https://www.example1.com|<HTTPError999:'INKApi Error'>||1|https://www.example2.com|URLError(timeout('_ssl.c:1112: The handshake operation timed out'))||1|https://www.example3.com|<HTTPError403:'Forbidden'>|To use the Github Action, create apdf_link_checker.ymlin.github/workflows:on:[push]jobs:check_pdf_links:runs-on:ubuntu-latestname:Check PDF Linkssteps:-name:Checkoutuses:actions/checkout@v3-name:PDF Link Checkeruses:a-nau/pdf-link-checker@v0.2.0with:paths:'.'# checks all PDFs, otherwise specify to file path(s)To run within Dockerdockerbuild-tpdf_link_checker.
dockerrun-it--rm--mounttype=bind,source=${PWD},target=/data/--namepdf_link_checkerpdf_link_checker/data/.CreditsI started frompdf-link-checkerbyMatt Briggs. Especiallyget_links_from_pageis still heavily borrowed from the
original.This work is licensed under theMITlicense.
Package: pdfls
pdflspdfls is a small utility to debug a PDF file.pdftitle uses pdfminer.six project to parse PDF document.Installationpip install pdflsUsagepdfls -p <pdf-file>displays the structure of the PDF file.For example:$ pdfls -p knuth65.pdf

catalog.objnum: 713
outlines:
pagetree.objnum: 709
  page[1].objnum: 715
		xobject.types: [ Im1=XObject.Image/CCITTFaxDecode.1710x2580 ]
		content.length: [ 654/2094 548/2092 556/2090 600/2094 605/2103 595/2090 560/2096 615/2066 ]
	page[2].objnum: 1
		xobject.types: [ Im1=XObject.Image/CCITTFaxDecode.1710x2580 ]
		content.length: [ 113/134 4054/22698 41/39 11/3 ]
	page[3].objnum: 13
		xobject.types: [ Im1=XObject.Image/CCITTFaxDecode.1710x2580 ]
		content.length: [ 172/332 2784/14487 79/80 41/39 11/3 ]
...
...shows the catalog, page tree and first 3 page objects. For each page object, xobjects and contents (content streams) are shown. For each XObject, its type.subtype/filter.widthxheight is shown. For each content stream, its raw data len/decoded data len is shown.If-ioption is given, it also shows the instructions.More info can be seen in verbose mode with-v. This is mostly for development and debugging of pdfls.Changes0.1:first public release.probably unstable version, only for testing.