Saravanan666/pypi-org huggingface dataset:
Package: pdfly
pdflypdfly (say: PDF-li) is a pure-python cli application for manipulating PDF files.Installationpipinstall-UpdflyAspdflyis an application, you might want to install it withpipx.Usage$pdfly--helpUsage: pdfly [OPTIONS] COMMAND [ARGS]...pdfly is a pure-python cli application for manipulating PDF files.╭─ Options ───────────────────────────────────────────────────────────────────╮│ --version                                                                   ││ --help             Show this message and exit.                              │╰─────────────────────────────────────────────────────────────────────────────╯╭─ Commands ──────────────────────────────────────────────────────────────────╮│ 2-up             Create a booklet-style PDF from a single input.            ││ cat              Concatenate pages from PDF files into a single PDF file.   ││ compress         Compress a PDF.                                            ││ extract-images   Extract images from PDF without resampling or altering.    ││ extract-text     Extract text from a PDF file.                              ││ meta             Show metadata of a PDF file                                ││ pagemeta         Give details about a single page.                          ││ x2pdf            Convert one or more files to PDF. Each file is a page.     │╰─────────────────────────────────────────────────────────────────────────────╯You can see the help of every subcommand by typing:$pdfly2-up--helpUsage: pdfly 2-up [OPTIONS] PDF OUTCreate a booklet-style PDF from a single input.Pairs of two pages will be put on one page (left and right)usage: python 2-up.py input_file output_file╭─ Arguments ─────────────────────────────────────────────────────────────────╮│ *    pdf      PATH  [default: None] [required]                              ││ *    out      PATH  [default: None] [required]                              │╰─────────────────────────────────────────────────────────────────────────────╯╭─ Options ───────────────────────────────────────────────────────────────────╮│ --help          Show this message and exit.                                 │╰─────────────────────────────────────────────────────────────────────────────╯
Package: pdf-mail
It will send a pdf documnet from your gmail account to another gmail account .How does it work ?from pdf-mail import sendpdfsender_email=input()       #”abcd@mail.com”
receiver_email=input()     #”abcd@mail.com”
sender_password=input()    # “abcd1412”
subject=input()            # “Heading”
body=input()               # “Any Text ”
filename=input()           #”Name of file”
address_of_file=input()    # “C:/Users/Vasu Gupta/Desktop” It should be in this format (slash(‘/’) is to be corrected while providing input)k=sendpdf(sender_email,receiver_email,sender_password,subject,body,filename,address_of_file)
k.email_send()
Package: pdfmailmerge
pdf-mailmergeMailmerge to a pdf or html file. Adds csv data to an html jinja template.
Can be configured to generate filenames and subdirectories as well as sort order from columns in the csv.Installpip install pdf-mailmergeUsageRequires aconfig.ymlfile in your directory containing:data: Some.csv

template: "Some_jinja.html"

identifier_columns:
  - "col1"
  - "col2"

filename_columns:
  - "col3"
  - "col4"

output_folders:
  - "col1"
  - "col5"

sort:
  - "col2"
  - "col3"Required Configuration Fieldsdata: csv file with the data you wish to mailmergetemplate: jinja template being used for the mailmergeidentifier_columns: columns used to construct a primary key for the data. If a column already contains the primary key, list it but only it. A mailmerge document will be created for every unique value or unique value combination of the identifier columns.filename_columns: columns used to construct the filename for the document. Name will be "col1_col2_" etc.Optional Configuration Fieldsoutput_folders: columns used to construct output subdirectories. All files placed in eitherhtmlorpdfdirectory. Additional folder nesting levels based on order of output folders. Sample file pathpdf/col1/col5.sort: columns used to sort documents within their output folder. If multiple options, sort precedence given in order of list.
Package: pdfmajor
PDFMajorLatest ReleasePDF-Major is acomplete re-writeofPDFMiner.six. It is meant to be a more light-weight implementation that makes fewer assumptions on the data. The ultimate goal of this project is to provide a simpler, faster and more functional library that both casual and low-level developers could build upon.DocumentationSeefull API documentation here.Basic Examplefrompdfmajor.interpreterimportPDFInterpreterforpageinPDFInterpreter("/path/to/pdf.pdf"):print("page start",page.page_num)foriteminpage:print(" >",item)print("page end",page.page_num)Why a re-write?PDFMinerwas designed to run in python 2.7,PDFMiner.sixwas written to bring cross-version support for python 2 and 3. However, after attempting to build and extend uponPDFMiner.sixI found it rather difficult to extend and identify additional details regarding the items encoded in the pdf. This library will attempt to expose as much information as possible to end-users, without having them solely rely on to-xml or to-json exports.FeaturesFunctional extraction method based on generatorsParse, analyze, and convert PDF documents.PDF-1.7 specification support. (well, almost)Font-Color extractionShape fill and stroke color extractionCJK languages and vertical writing scripts support.Various font types (Type1, TrueType, Type3, and CID) support.Basic encryption (RC4) support.Note: We took out the layout-analysis process in this version (there is no more LTTextHorizontal or LTTextVertical). While the mathematics behind the grouping process was sound, the coupling of the layout-analysis process with the parsing and interpretation process produced unfriendly-code. This feature could be brought back by running your own implementation of it on thepdfmajor.interpreter.PageInterpreterclass, but at the current time is not supported.How to InstallSourceInstall Python 3.6.4 or newer.clone this repogit clone https://github.com/asosnovsky/pdfmajorinstall repopython setup.py installPypiInstall Python 3.6.4 or newer.install repopip install pdfmajorTerms and Conditions(This is so-called MIT/X License)Copyright (c) 2018-2019  Ariel SosnovskyPermission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: pdf-mangler
pdf-manglerpdf-mangler is a Python library to mangle the contents of a PDF while preserving structure. The goal is to remove identifying metadata, randomly replace text, distort vector graphics, and replace images such that the meaning and intellectual property of the document is lost, but the structure is preserved. This allows for PDF software developers to reproduce issues encountered by end users with proprietary documents.This project is in the very early stages of development and does not handle all possible PDF elements.
Package: pdfmap
PDFMapInstallationWe recommend using the most up-to-date version ofpipandwheelpackages, so first run:pipinstall-UpipwheelThen install PDFMap with:pipinstallpdfmapUsageSimple usage can be achieved with:frompdfmapimportPDFWordMappdfwm=PDFWordMap()print(pdfwm.parse_pdf('folder/pdfname.pdf'))You can also extractwordmaze.WordMazeinstances by usingPDFMaze:frompdfmapimportPDFMazepdfmaze=PDFMaze()print(pdfmaze.parse_pdf('folder/pdfname.pdf'))For other examples, check outour example script
Package: pdfmark
PDF Bookmark AdderOfficial Mirrorshttps://gitlab.com/imtheforce/pdfmarkhttps://bitbucket.org/fourthorigin/pdfmarkhttps://github.com/NoviceLive/pdfmarkFeaturesAutomatically add bookmarks to pdf documents
according to the given regex.You have to go through a somewhat painful debugging process
if you want every added bookmark is exactly what you want
and never omit where you desire it to be added.Installationpip install pdfmarkDependenciesPyPDF2, which can be installed via pippdftotext, which is available from the packages listed belowFedora,poppler-utilsArch,popplerUsageSeesamples.txt.Also see this real world case,
man2pdf,https://github.com/NoviceLive/man2pdf,
for which this quick and dirty script was written.And./pdfmark--help.TODOSupport heirarchical bookmarks.LicenseSeeLICENSE.txt.
Package: pdfmate
PDFMateAsync / sync wrapper for PyppeteerInstallpip install pdfmateUsageFor simple async tasks:importpdfmateasyncdeff():awaitpdfmate.from_url('http://google.com','out.pdf')awaitpdfmate.from_file('test.html','out.pdf')awaitpdfmate.from_string('Hello!','out.pdf')Sync API is also provided atpdfmate.syncfor all the above-mentioned functions:importpdfmatepdfmate.sync.from_url('http://google.com','out.pdf')pdfmate.sync.from_file('test.html','out.pdf')pdfmate.sync.from_string('Hello!','out.pdf')You can pass a list with multiple URLs or files:pdfmate.sync.from_url(['google.com','yandex.ru','engadget.com'],'out.pdf')pdfmate.sync.from_file(['file1.html','file2.html'],'out.pdf')Also you can pass an opened file:withopen('file.html')asf:pdfmate.sync.pdfmate(f,'out.pdf')If you wish to further process generated PDF, you can read it to a
variable:# Ignore output_path parameter to save pdf to a variablepdf=pdfmate.sync.from_url('http://google.com')You can specify allPyppeteer
optionsused for saving PDF as shown below:options={'scale':2.0,'format':'Letter','margin':{'top':'0.75in','right':'0.75in','bottom':'0.75in','left':'0.75in',},'pageRanges':'1-5,8',}pdfmate.sync.from_url('http://google.com','out.pdf',options=options)You can also pass any options through meta tags in your HTML:body="""<html><head><meta name="pdfmate-format" content="Legal"/><meta name="pdfmate-landscape" content="False"/></head>Hello World!</html>"""pdfmate.sync.from_string(body,'out.pdf')ConfigurationEach API call takes an optional options parameter to configure print PDF behavior. However, to reduce redundancy, one can certainly set default configuration to be used for all API calls. It takes the
configuration options as initial paramaters. The available options are:options- the dict used by default for pyppeteerpage.pdf(options)call.optionspassed as argument to API call will take precedence over the default options.meta_tag_prefix- the prefix forpdfmatespecific meta tags - by
default this ispdfmate-.environ- the dict used to provide env variables to pyppeteer headless browser.importpdfmatepdfmate.configuration(options={'format':'A4'})asyncdeff():# The resultant PDF at 'output_file' will be in A4 size and 2.0 scale.awaitpdfmate.from_string(html_string,output_file,options={'scale':2.0})Setup for developmentpoetry install -v --no-rootRun testspoetry run pytest tests/Enable git-hooks with lint-stagednpx mrm lint-staged
npx husky installCreditsThis is adapted version of PDFGen-Python and python-PDFKit library, so big thanks to them!PDFGen-Pythonpython-pdfkitPyppeteerOther projectsdjango-pdf-reactorIs it any good?Yes.
Package: pdfmb
pdfmbMerge PDF files with bookmarks.All the work is done by the excellent librarypikepdf.InstallationYou can install this package via pip.pip install pdfmbFeaturesmergePDFs from alistinto anewpdfaddPDFs from alistto anexistingpdfmerge allPDFs from afolderinto anewpdfadd allPDFs from afolderto anexistingpdfoption toconserveorflattenthe folder structure in the bookmark outlineexisting PDF files arenot modifiedtheaddandadd_from_folderfunctions create anew PDFat the same location with atimestampUsagefrompathlibimportPathimportpdfmbpdfmb.merge(pdfs_to_merge=Path("example pdfs").rglob("*.pdf"),output_folder=Path("output"),)pdfmb.add(pdfs_to_add=Path("example pdfs").rglob("*.pdf"),existing_pdf=Path("example pdfs/file1.pdf"),)pdfmb.merge_from_folder(source_folder=Path("example pdfs"),output_folder=Path("output"),)pdfmb.add_from_folder(source_folder=Path("example pdfs"),existing_pdf=Path("example pdfs/file1.pdf"),add_flat_hierachy=True,)
Package: pdfme
pdfmeThis is a powerful library to create PDF documents easily.The way you create a PDF document with pdfme is very similar to how you create
documents with LaTex: you just tell pdfme at a very high level what elements you
want to be in the document, without worrying about wrapping text in a box,
positioning every element inside the page, creating the lines of a table, or the
internals of the PDF Document Format. pdfme will put every element
below the last one, and when a page is full it will add a new page to keep
adding elements to the document, and will keep adding pages until all of the
elements are inside the document. It just works.If you want the power to place elements wherever you want and mess with the PDF
Document Format internals, pdfme got you covered too. Give the docs a look to
check how you can do this.Main featuresYou can create a document without having to worry about the position of each
element in the document. But you have the possibility to place any element
wherever you want too.You can add rich text paragraphs (paragraphs with text in different sizes,
fonts, colors and styles).You can add tables and place whatever you want on their cells, span columns
and rows, and change the fills and borders in the easiest way possible.You can add content boxes, a multi-column element where you can add
paragraphs, images, tables and even content boxes themselves. The elements
inside this content boxes are added from top to bottom and from left to right.You can add url links (to web pages), labels/references, footnotes and
outlines anywhere in the document.You can add running sections, content boxes that will be included in every
page you add to the document. Headers and footers are the most common running
sections, but you can add running sections anywhere in the page.InstallationYou can install using pip:pip install pdfmeDocumentationDocs and examples:https://pdfme.readthedocs.io
Package: pdfmerge
pdfmergeCommand-line utility for merging, splicing, and rotating PDF documents.Changelog-Issues-DocumentationWhy?I find myself merging bits of different PDFs fairly regularly and really wanted a simple CLI way to do it.Installpython-mpipinstallpdfmergeUsage$ pdfmerge [-h] [--version] [-o FILE|--output FILE] [-p PASSWORD|--password PASSWORD] PATH[RULE[, RULE ...]] [PATH[RULE, ...]] ...]-o,--outputoutput file (default:output.pdf).Must not be any of the input files.-p, '--password` password for encrypted files (default: empty string).PATHa file, directory, or wildcard string (e.g.,file*.pdf) of files
to merge.RULEan optional string indicating which pages to extract and rotate.
The syntax for each rule is:[START][..][END][ROTATE]WhereSTARTandENDare positive (1-based) or negative page numbers andROTATEis one of>,V, or<indicating a clockwise rotation of
90, 180, 270 degrees, respectively.Command-line Example$ pdfmerge -o out.pdf file1.pdf file2.pdf[3,3] file2.pdf[1V,2..-1] "other*.pdf[<]" "/path/pdf[1..4>,5]"This example illustrates several features:specifying an output file (must not be any of the input files)merging multiple files, some more than oncesplicing parts of file using indices (1-based; negatives allowed)including the same page multiple timesrotating a page or page rangemerging all the PDFs in a directoryRead more about the optionsPython Module Usagepdfmergecan also be imported into python scripts.frompdfmergeimportpdfmergepdfmerge(["pdf-1.pdf","pdf-2.pdf[2>]"],"output.pdf")LicenseMIT License
Package: pdfmerge2
General infoIt is a simple CLI app that merges PDF files in given directoryTechnologiesPython 3.10PyPDF2 1.26.0InstallUsing pippip install pdfmerge2Cloning repository for developmentClone repositoryInstall requirementspip install -r requirements.txtorpoetry installUsagePass only path to merge ALL pdf files in therepdfmerge2 /path/to/pdf/filesPass path and file names to merge only thempdfmerge2 /path/to/pdf/files -f file1 file2You can also pass output pathpdfmerge2 /path/to/pdf/files -f file1 file2 -o /path/to/outputContactCreated by@Gasper3- feel free to contact me!
Package: pdfminer2
Maintained fork of PDFMiner using six for Python 2+3 compatibilityPDFMiner is a tool for extracting information from PDF documents.
Unlike other PDF-related tools, it focuses entirely on getting
and analyzing text data. PDFMiner allows to obtain
the exact location of texts in a page, as well as
other information such as fonts or lines.
It includes a PDF converter that can transform PDF files
into other text formats (such as HTML). It has an extensible
PDF parser that can be used for other purposes instead of text analysis.
Package: pdfminer3
gwk/pdfminer3 is a fork of pdfminer/pdfminer.six, which is in turn derived from euske/pdfminer.pdfminer3 is a tool for extracting information from PDF documents.
Unlike other PDF-related tools, it focuses entirely on getting and analyzing text data.
pdfminer3 obtains the exact location of texts in a page, as well as other information such as fonts or lines.
It includes a PDF converter that can transform PDF files into other text formats (such as HTML).
It has an extensible PDF parser that can be used for other purposes instead of text analysis.
Package: pdfminer3k
pdfminer3k is a Python 3 port of pdfminer.
PDFMiner is a tool for extracting information from PDF documents.
Unlike other PDF-related tools, it focuses entirely on getting
and analyzing text data. PDFMiner allows to obtain
the exact location of texts in a page, as well as
other information such as fonts or lines.
It includes a PDF converter that can transform PDF files
into other text formats (such as HTML). It has an extensible
PDF parser that can be used for other purposes instead of text analysis.We had to forked this because original package was removed from pypi
Package: pdfminer.aemc
pdfminer.sixWe fathom PDFPdfminer.six is a community maintained fork of the original PDFMiner. It is a tool for extracting information from PDF
documents. It focuses on getting and analyzing text data. Pdfminer.six extracts the text from a page directly from the
sourcecode of the PDF. It can also be used to get the exact location, font or color of the text.It is built in a modular way such that each component of pdfminer.six can be replaced easily. You can implement your own
interpreter or rendering device that uses the power of pdfminer.six for other purposes than text analysis.Check out the full documentation onRead the Docs.FeaturesWritten entirely in Python.Parse, analyze, and convert PDF documents.Extract content as text, images, html orhOCR.PDF-1.7 specification support. (well, almost).CJK languages and vertical writing scripts support.Various font types (Type1, TrueType, Type3, and CID) support.Support for extracting images (JPG, JBIG2, Bitmaps).Support for various compressions (ASCIIHexDecode, ASCII85Decode, LZWDecode, FlateDecode, RunLengthDecode,
CCITTFaxDecode)Support for RC4 and AES encryption.Support for AcroForm interactive form extraction.Table of contents extraction.Tagged contents extraction.Automatic layout analysis.How to useInstall Python 3.6 or newer.Install pdfminer.six.pip install pdfminer.six(Optionally) install extra dependencies for extracting images.pip install 'pdfminer.six[image]'Use the command-line interface to extract text from pdf.pdf2txt.py example.pdfOr use it with Python.frompdfminer.high_levelimportextract_texttext=extract_text("example.pdf")print(text)ContributingBe sure to read thecontribution guidelines.AcknowledgementThis repository includes code frompyHanko; the original license has been includedhere.
Package: pdfminer-cython
PDFMiner is a tool for extracting information from PDF documents.
Unlike other PDF-related tools, it focuses entirely on getting
and analyzing text data. PDFMiner allows to obtain
the exact location of texts in a page, as well as
other information such as fonts or lines.
It includes a PDF converter that can transform PDF files
into other text formats (such as HTML). It has an extensible
PDF parser that can be used for other purposes instead of text analysis.
Package: pdfminer.hitalent
pdfminer.sixWe fathom PDFPdfminer.six is a community maintained fork of the original PDFMiner. It is a tool for extracting information from PDF
documents. It focuses on getting and analyzing text data. Pdfminer.six extracts the text from a page directly from the
sourcecode of the PDF. It can also be used to get the exact location, font or color of the text.It is built in a modular way such that each component of pdfminer.six can be replaced easily. You can implement your own
interpreter or rendering device that uses the power of pdfminer.six for other purposes than text analysis.Check out the full documentation onRead the Docs.FeaturesWritten entirely in Python.Parse, analyze, and convert PDF documents.Extract content as text, images, html orhOCR.PDF-1.7 specification support. (well, almost).CJK languages and vertical writing scripts support.Various font types (Type1, TrueType, Type3, and CID) support.Support for extracting images (JPG, JBIG2, Bitmaps).Support for various compressions (ASCIIHexDecode, ASCII85Decode, LZWDecode, FlateDecode, RunLengthDecode,
CCITTFaxDecode)Support for RC4 and AES encryption.Support for AcroForm interactive form extraction.Table of contents extraction.Tagged contents extraction.Automatic layout analysis.How to useInstall Python 3.6 or newer.Install pdfminer.six.pip install pdfminer.six(Optionally) install extra dependencies for extracting images.pip install 'pdfminer.six[image]'Use the command-line interface to extract text from pdf.pdf2txt.py example.pdfOr use it with Python.frompdfminer.high_levelimportextract_texttext=extract_text("example.pdf")print(text)ContributingBe sure to read thecontribution guidelines.AcknowledgementThis repository includes code frompyHanko; the original license has been includedhere.