Saravanan666/pypi-org huggingface dataset:
Package: pdf-play
PDFPlayWatermarkPDFfiles!PDFPlayis a Python package that aims to provide easy-to-use utilities to manipulate
PDF documents. Currently there's just one utility available, which is to "watermark"
PDF files.Get StartedInstall it>>pipinstallpdf-playPlay With It>>watermarkoto-twatermarktext-isample.pdfUse It In Your Projectsfrompdf_playimportwatermark# set some variableswm_text='use this text as the watermark!'target_file='MyPC/Downloads/PDFFiles/sample.pdf'output_file='MyPC/Downloads/PDFFiles/sample_watermarked.pdf'font_name='Helvetica'font_size='medium'text_alignment='horizontal'# call the watermark functionwatermark(wm_text,target_file,output_file,font_name=font_name,font_size=font_size,text_alignment=text_alignment)Features🍥 Provides easy-to-use functions to code against and a neat CLI to work directly in
your terminal.🀄️ Provides a bunch of configurable options with each command to set things just right.🌈 Designed to be flexible, provides easy intergration for new commands & user-options.DependenciesPyPDF4 >= 1.27.0reportlab >= 3.6.1Limitations❗️ RequiresPython >= 3.6❗️ "watermark" is the only command available as of now.Get Helppdf-play-hwatermark-hLicenseMIT
Package: pdfplot
pdfplotpdfplot is a Python library for easily managing your matplotlib figures as PDF files.InstallationUse the package managerpipto install pdfplot.pipinstallpdfplotUsageimportpdfplotfig,ax=pdfplot.make_fig()ax.plot([0,1,2,3],[4,3,2,1])ax.set_title('First Plot plot!')fig,ax=pdfplot.make_fig()ax.plot([0,1,2,3],[1,2,3,4])ax.set_title('Second plot!')pdfplot.save_figs(folder='figures')ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: pdfpop
Automate PDF population with pdfpop.InstallationYou can installpdfpopwith:pipinstallpdfpopUsageThepdfpopusage consists of two steps: (1) form configuration and (2)
execution.Step 1. Form Configurationℹ️  This step only needs to be run once for each unique form.This step generates a form-specific configuration file that allows you to informpdfpophow data should be routed from the data file to the PDF form. You can
generate this file with theconfigcommand:# Usage: pdfpop config <form>pdfpopconfigexamples/example-form.pdfThis will output apdfpop-prefixed JSON file in your current working
directory (e.g.,pdfpop-example-form.json). By default, all fields will be
assigned a value ofnulland, therefore, will be ignored until thenullvalue is replaced with instructions on how to populate the field. An example of
an edited configuration file is availablehere.Step 2. ExectuionOnce you have a form configuration file you can populate your PDF form using theruncommand:# Usage: pdfpop run <config> <data>pdfpoprunexamples/example-form.jsonexamples/example-data.xlsxThis will generate a populated PDF form at the location prescribed by the values
of<output_dir>/<output_name>in the configuration file (e.g.,examples/pdfpop-example-form.pdf).LicenseCopyright (C) 2022 Ian DinwoodieLicensed underGNU General Public License v3.0.Exceptions:Material covered byThird Party Licenses.Logo icon:Popsicle stick icons created by Freepik - Flaticon
Package: pdf-preview
Preview Excel/Word documents via PDF.Installpy -m pip install pdf-preview
py -m pdf_preview -iThis command adds a registry KEYHKEY_CLASSES_ROOT\Directory\shell\pdf_Preview.convert\commandand default VALUE<python executable>-mpdf_preview "%1".
You will see context menu for directory. Select it for execute PDF Preview application.
When you select a Word / Excel document in the tree, the result converted to pdf is displayed.Dependenciespywin32PyPDF2PySide2openpyxland their requirement packages.UsesPDFjs(included)
Package: pdfpug
Python PDF GeneratorPdfPugis a tool that makes it easy to create beautiful PDF files from scratch.
It provides simple and easy to use APIs that allow for quick creation of PDF files.
PdfPug consists of small building blocks/components like Table, List, Header etc.
and the ability to customise these components to suit different use cases.Note: PdfPug is a very new package whose APIs are not stable. It can be considered
to be in pre-alpha development stage! Keep an eye out for updates.Here is an example,>>> from pdfpug import Header, Paragraph, PdfReport
>>> intro_header = Header('Introduction to PdfPug')
>>> para = Paragraph(
...     "Lorem Ipsum is <b>simply</b> <u>dummy</u> text of the printing and typesetting "
...     "industry. Lorem Ipsum has been the industry's standard dummy text "
...     "ever since the 1500s, when an unknown printer took a galley of type"
...     " and scrambled it to make a type specimen book. It has survived not "
...     "only five centuries, but also the leap into electronic typesetting, "
...     "remaining essentially unchanged. It was popularised in the 1960s with "
...     "the release of Letraset sheets containing Lorem Ipsum passages, and "
...     "more recently with desktop publishing software like Aldus PageMaker "
...     "including versions of Lorem Ipsum."
... )
>>> report = PdfReport()
>>> report.add_element(intro_header)
>>> report.add_element(para)
>>> report.generate_pdf('pdfpug-report.pdf')InstallationPdfPug is published onPyPiand can be installed
from there:$ pip install pdfpugDocumentationDocumentation is available fromhttps://pdfpug.readthedocs.io/en/latest/
Package: pdfreader
Info:Seethe tutorials & documentationfor more information.Author & Maintainer:Maksym Polshcha <maxp@sterch.net>SeeGitHubfor the latest source.Aboutpdfreaderis a Pythonic API for:extracting texts, images and other data from PDF documents (plain or protected)accessing different objects within PDF documentspdfreaderisNOTa tool (maybe one day it become!):to create or update PDF filesto split PDF files into pages or other piecesconvert PDFs to any other formatNevertheless it can be used as a part of such tools.SeeTutorials & Documentation.FeaturesExtracts texts (plain text and formatted text objects)Extract PDF forms data (pure strings and formatted text objects)Supports all PDF encodings, CMap, predefined cmaps.Extracts images and image masks asPillow/PIL ImagesSupports encrypted and password-protected PDF documentsAllows browse any document objects, resources and extract any data you need (fonts, annotations, metadata, multimedia, etc.)FollowsPDF-1.7 specificationLazy objects access allows to process huge PDF documents quite fastInstallationpdfreadercan be installed withpip:$ python -m pip install pdfreaderOreasy_installfromsetuptools:$ python -m easy_install pdfreaderYou can also download the project source and do:$ python setup.py installTutorial and DocumentationTutorial, real-life examples and documentationSupport, Bugs & Feature RequestspdfreaderusesGitHub issuesto keep track of bugs,
feature requests, etc.Related ProjectspdfminerpyPdf2xpdfpdfboxmupdfReferencesDocument management - Potable document format - PDF 1.7Adobe CMap and CIDFont Files SpecificationPostScript Language Reference ManualAdobe CMap resourcesAdobe glyph list specification (AGL)DonationIf this project is helpful, you can treat me to coffee :-)
Package: pdfrename
MIT license, Xavier Olive 2017The addressed use case comes the frustration caused by opening tons of
pdf files (mainly scientific publications) in order to copy-paste the
title and rename the file accordingly.The proposed workflow goes as follow:$pdfrename*.pdfRename'/home/xo/Downloads/1606.04838.pdf'to'/home/xo/Downloads/Optimization Methods for Large-Scale Machine Learning.pdf'?[y/n/j/s/a]>Chooseamongy(es)/n(o)/j(oin)/s(kip)/a(bort)>yThe script first searches the metadata, then parses each line of the
first page of the file to suggest it as a file name.Usej(oin)to merge the current suggestion with next line (for
papers with a two-line title).InstallationLatest release:pipinstallpdfrenameTrypip install--userpdfrenameif need be.The executable will be installed in a directory with read/write
access.Check the directory (which depends on your Python installation) is in
yourPATHvariable.Try/usr/local/bin,$HOME/.local/bin, …From source:pipinstallgit+https://github.com/xoolive/pdfrename
Package: pdf-renamer
pdf-renamerpdf-renamer is a Python library to automatically rename the pdf files of a scientific paper, or in general any publication which can be associated to aDOIor
other identifiers (e.g.arXiv). It can be used to address single files or to scan entire folders and sub-folders.
The format of the filename can be specified by the user by choosing among several tags.DescriptionTo DO.To Do-check if file with the same filename already exists in folderInstallationUse the package manager pip to install pdf_renamer.pipinstallpdf-renamerUsagepdf_renamer can be used either as a stand-alone application invoked from the command line, or by importing it in your python project.Usage inside a python script:TO DOCommand line usage:TO DOContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: pdf-reports
PDF Reports(complete documentationhere) is a Python library to create nice-looking PDF reports from HTML orPugtemplates. It features modern-looking components (via theSemantic UIframework) and provides routines to embed tables or plots in the documents.Example of useYour Pug template filetemplate.pugmay look like this (see afull example):#sidebarI am the text in the sidebar.h1{{ title }}.ui.piled.segmentpOh hi there ! I am some text in a cool box.Your Python code will be as follows:frompdf_reportsimportpug_to_html,write_reporthtml=pug_to_html("template.pug",title="My report")write_report(html,"example.pdf")And your final result may look like this (PDF file):InfosPIP installation:pipinstallpdf_reportsWeb documentation:https://edinburgh-genome-foundry.github.io/pdf_reports/Github Page:https://github.com/Edinburgh-Genome-Foundry/pdf_reportsLive demo:http://cuba.genomefoundry.org/sculpt_a_sequenceLicense:MIT, Copyright Edinburgh Genome Foundry
Package: pdfriend
Simple command line PDF editorpdfriendis a simple command line program for editing PDF files at the page level. It can, among other things:merge many PDFs, PNGs and JPGs into a single PDFsplit a PDF into different partsexctract images from PDFsselect pages from a PDFrotate PDF pagesdelete PDF pageschange the order of pages in a PDFencrypt and decrypt PDFssee and edit PDF metadataInstallationThe recommended way to installpdfriendis throughpipx. Simply run:pipxinstallpdfriendYou need a working python 3.11 or newer installation.Alternatively, you can install it as you would any other PyPI package, for example using pip:pipinstallpdfriendUsageTo access instructions for the usage ofpdfriend:pdfriendhelpAs a quick overview:Merging PDFs and imagesPDFs:pdfriendmergedoc0.pdfdoc1.pdf-ooutput.pdfImages:pdfriendmergeimg0.pngimg1.jpgimg2.pngimg3.png-ooutput.pdfPDFs and images:pdfriendmergedoc0.pdfimg0.pngdoc32.pdf-ocomb.pdfGlob patterns are also supported:pdfriendmergeinput_dir/*.png-ooutput.pdfEditing PDFsTo edit a PDF file in place, enter the edit shell:pdfriendeditdoc.pdfYou can then use the edit subcommands, for examplerotate 12 90To rotate page 12 by 90 degrees, ordelete 6To delete page 6, orswap 3 7To swap pages 3 and 7, orundoTo undo the previous command, etc. Usepdfriendencryptsus.pdf-osus-encrypted.pdfto encrypt the PDF with a password. Usepdfriendinvertwrong.pdf-oright.pdfto invert the order of the pages in a PDF. UsehelpTo see all the available subcommands
Package: pdfs
# pdfsSimple Bibliography Database## IntroductionThis tool manages article PDFs.  This tool is based on two working principles.First, DOIs are central. Only documents with a DOI can be stored in thedatabase. All metadata is acquired through the [Crossref](https://crossref.org)[API](https://github.com/CrossRef/rest-api-doc) through DOIs scraped from thePDF or entered by the user. Second, document repositories are local to adirectory hierarchy. For example, if I have a project based in ~/projects/foo,I can create a document repository bycd ~/projects/foopdfs initThis creates a new direcory in ~/projects/foo called articles. All PDFsimported into the database will be copied here. Running `pdfs` in~/projects/foo, or any directory below it will use the repository at~/projects/foo/articles.## Commandsusage: pdfs command ...| Command | Description                                ||---------|--------------------------------------------|| add     | Import new PDF into repository             || aux2bib | Read LaTeX .aux file and dump a .bib file  || bibtex  | Dump bibtex for keys                       || edit    | Edit bibtex, metadata and file attachments || import  | Import entries from other database         || info    | Print information about current repository || init    | Initialize new document repository         || list    | List all items in database                 || search  | Search full text of PDF                    || view    | View article PDF and attachements          || watch   | Watch a directory for new pdf files to add || www     | Spin up http server                        |## Command line completionCommand line autocomplete support via[argcomplete](https://argcomplete.readthedocs.io).To start quickly with zsh:autoload bashcompinitbashcompiniteval "$(register-python-argcomplete pdfs)"
Package: pdfsak
PDFsakAbout itLogo fromkgullionprovidedhere.PDFsak (PDF Swiss Army knife) is an utility to manipulate PDF files.The previous name of the project (as of 2021-10-10) was "pdftools".It allows you to:MergeN-up pages (put more than one input page into a single output page)Trim pagesExtract pagesRotate pagesSwap pagesDelete pagesCreate handoutsAdd text (like page numbers)Remove owner protection (the one which allows you to open the file without a password, but not to print, annotate or copy from it)Remove metadataSimulate Adobe Acrobat Clearscan: vectorize the text to improve quality and readabilityAdd watermarks or imagesAnd morePDFsak has been tested on Windows and Linux (Fedora).It should work also on macOS, although it has not been tested on this platform.DocumentationCheckout theonline documentationfor requirements, installation, usage and examples.
Package: pdf-scout
pdf_scoutThis CLI tool automatically generates PDF bookmarks (also known as an 'outline' or a 'table of contents') for computer-generated PDF documents.You can install it globally via pip:pip install --user pdf_scout
pdf_scout ./my_document.pdf

pip uninstall pdf_scoutThis project is a work in progress and will likely only generate suitable bookmarks for documents that conform to the following requirements:Single column of text (not multiple columns)Font size of header text > font size of body textHeader text is justified or left-alignedParagraph spacing for headers > body text paragraph spacingConsistent left margins on every pageSupported document typespdf_scouthas been tested on and expressly supports the following classes of documents:Singapore State Court and Supreme Court Judgments (unreported)Singapore Law ReportsOpenDoc-generated PDFs, such as theState Court Practice Directions 2021and theSupreme Court Practice Directions 2021It may support other types of documents as well. If a particular class of document isn't supported or does not work well, please open an issue and I will consider adding support for it.DevelopmentThis project manages its dependencies usingpoetryand is only supported for Python ^3.9. After installing poetry and entering the project folder, run the following to install the dependencies:poetryinstallTo open a virtualenv in the project folder with the dependencies, run:poetryshellTo run a script directly, run:poetryrunpython./pdf_scout/app.py<INPUT_FILE_PATH>TestsThere are snapshot tests. Input PDFs are not provided at the moment, so you will have to populate the/pdffolder manually using the relevant sources (you may want to consider usingClerkentto download the unreported versions of judgments):poetryrunpytest
poetryrunpytest--snapshot-updateStatic type-checkingpoetryrunmypypdf_scout/app.pyTipsProcessing a large PDF can take some time, so to iterate faster when debugging certain behaviour, extract the problematic part of the PDF as a separate file
Package: pdfsearch
pdfsearch is a command line tool tha searches a directory for pdf files containing a specified keyword in the filename, the n first pages of the file, or in the keyword section of the metadata.Installationpdfsearch can be installed via pip$pipinstallpdfsearchExamples1)
To search a keyword in the filenames in a specific directory use the -d option.
The two following examples search ‘2020-04-06’ in the filenames (default) in the directory ‘~/Documents/bills’ and in the current directory (default):$pdfs.py-d~/Documents/bills2020-04-06$pdfs.py2020-04-062)
To search in the n first pages of the pdfs for the keyword in the directory use the -n [number] option. If you don’t specify a numer after -n make sure to put the option at the end of the line, in this case the default are the first 3 pages. Warning: if you choose [number] too big, the program gets slow.
The first examples searchs the current folder for the keyword ‘Python’ in the first 2 pages of each pdf-file in the directory.
The second line searchs the first 3 pages (default) of each pdf for the word ‘solidstate’ in the folder ‘~/Documents/articles’:$pdfs.py-n2Python$pdfs.py-d~/Documents/articlessolidstate-n3)
You can also search the keyword section of the meta data of the pdfs. To do that use the -k option. The next example searchs ‘Physics’ in the keyword metadata:$pdfs.py-kPhysics4)
Finally you can combine every option. If you use one or more of the options -n or -k you have to specify -f if you also would like to search the filenames:$pdfs.py-d~/Documents/articles-k-f-n2python
Package: pdf-segregation
# After installation use syntax :

## Load library
#
from pdf_segregation import pdf_classifier

result, digital_pages, nondigital_pages = pdf_classifier.digital_nondigital_classifier("scansmpl.pdf")
#scansmpl.pdf replace with your file name.

print(result)
print(digital_pages)
print(nondigital_pages)

# result - Digital, Non-Digital or Mixed based on document.
# digital_pages - Page numbers which are digital.
# nondigital_pages - Page numbers which are nondigital.Thanks and Enjoy !!!
Package: pdfserenitynow
PDF Serenity NowPDF Serenity Now was born from our increasing contact with annoying PDFs. The
biggest culprits are multi-layered PDFs and PDFs with large pictures or
graphics embedded in them which take forever to print, if you can get them to
print at all. We created the original script to convert these PDFs to a more
printer-friendly format (for the KIP series of plotters), namely flattened
TIF Group 4.At this time, it converts a single-page or multi-page PDF to a folder of TIFs.
It handles large, crappy, multi-layer PDFs if you have enough RAM.PopplerandImagemagickdo all of the hard work.In the future it will be smarter about converting, and offer more target
formats (JPG, PDF). The ultimate goal is a service where users can
upload/submit a crappy PDF and get a nice set of TIFs or JPGs or a fixed PDF
returned to them. It will have a control panel where you can monitor and
manipulate conversions in progress or in a queue.CreditsPopplerImagemagickNews0.6.6Release Date: 2013-01-15Fixed many import and Python3 errorsAdded command line switch to preserve intermediate PS files (default is delete)Mucho code cleanup and extra error checkingUsage: serenifypdf <pdf_file> [<output_dpi>] [–preserve-ps]0.5Release Date: 2013-01-14Removed pyPdf since it is a dead project and not Python3 ready.0.4Release Date: 2013-01-14Changed to a two step conversion process: PDF -> postscript -> TIFSplit out serenifypdf, pdfbursttops, and psconverttotif into separate modulesCan only convert one PDF (but multiple pages) at a timePS file and TIF file locations are standardized based on PDF file nameRemoved Python 2.6 and Python 2.7 support (Python 3.2 and 3.3 only now)Usage: serenifypdf <pdf_file> [<output_dpi>]0.3Release Date: NoneSwitched to Poppler for splitting PDFsAdded pdfbursttops script for splitting PDFs (using Poppler)0.2Release Date: 2011-09-02Switched to MIT LicenseAdded command line argument for DPIAdded Python 2.6 compatability0.1Release date: 2011-09-01Produce print-quality TIFFs and JPGs from a directory of PDFs.Works on multilayer PDFs and some types of bad vectorsEach page of a multipage PDF will become one TIFFtif_dir must exist before running scriptHard-coded values for output file format and DPIImageMagic (convert) must be installed and on your system pathUsage: serenifypdf <pdf_dir> <tif_dir>
Package: pdfservices-extract-sdk
PDFServices Extract Python SDKThe Adobe PDFServices Extract Python SDK provides APIs for extracting elements and renditions from PDFs.Adobe Document Cloud’s simple cloud-based APIs help you get up and running quickly. Once you’ve received your developer credential, download and set up the sample project. After you’re familiar with the APIs, leverage the samples in your own server-side code.InstallationInstallPython3.6 or higher.pip install pdfservices-extract-sdkResourcesQuickStartSamplesAPI Reference
Package: pdfservices-sdk
PDFServices Python SDKThe Adobe PDFServices Python SDK provides ML APIs. Currently, it containsExtract API for extracting elements and renditions from PDFsAutotag API for improving accessibility of the PDF document. This generates the tagged PDF, along with an optional XLSX report providing detailed information about the added and already existing tags.Adobe Document Cloud’s simple cloud-based APIs help you get up and running quickly. Once you’ve received your developer credential, download and set up the sample project. After you’re familiar with the APIs, leverage the samples in your own server-side code.InstallationInstallPython3.6 or higher.pip install pdfservices-sdkResourcesQuickStartSamplesAPI Reference
Package: pdfshot
pdfshotA Python CLI to export pages from PDF files as images.QuickstartInstallpoppler(macOS):brew install poppler.Usage:$pdfshot[OPTIONS]INPUT_PATHPDF_PAGEArguments:INPUT_PATH: The input PDF file.  [required]PDF_PAGE: The page number of the PDF file to export as an image. Page numbering starts at 1 (1-based indexing).  [required]Options:-b, --add-border: Add border to the page image.  [default: False]--version: Show the version and exit.--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.Notespdf2image:Toonly convertPDF files to images.Commands:poetry init+poetry install.poetry add "typer[all]".which pdfshot.pdfshot test.pdf 1orpdfshot test.pdf 1 --add-border.Typer:CLI arguments (requiredby default): CLI parameters (./myproject, for example) passed in some specific order to the CLI application (ls, for example).CLI options (optionalby default):CLI parameters(--size, for example) passed to the CLI application with a specific name.Data validation.Numeric validation.For commands, think ofgit(git push,git clone, etc.).Poetry:Outdated metadata after version bump for local package(open) issue.ReferencesBuilding a Package.Version CLI Option, is_eager.