Saravanan666/pypi-org huggingface dataset:
Package: pdfbook
Author:Hartmut Goebel <h.goebel@crazy-compilers.com>Version:Version 0.1Copyright:2010-2023 by Hartmut GoebelLicence:GNU Affero General Public License v3 or later (AGPLv3+)Homepage:http://pdfbook.readthedocs.io/pdfbookrearranges pages from a PDF document into “signatures”
for printing books or booklets, creating a new PDF file.This is much likepsbookdoes for Postscript files, but working
with PDF. Indeedpdfbookwas inspired bypsbook.For more information please refer to the manpage or visit
theproject homepage.Requirements when Installating from SourceIf you want to installpdfbookfrom source, make sure you have the
following software installed:Python 3(tested with 3.8),pipfor installation, andPyPDF2.Hints for installing on Windows:Following the links above you will
find .msi and .exe-installers. Simply install them and continue
withinstalling pdfbook.Hints for installing on GNU/Linux:Most current GNU/Linux distributions
provide packages for the requirements. Look for packages names likepython-pypdf2. Simply install them and
continue withinstalling pdfbook.Hint for installing on other platforms:Many vendors provide Python.
Please check your vendors software repository. Otherwise please
download Python 3.8 (or any higher version from the 3.x series) fromhttp://www.python.org/download/and follow the installation
instructions there.If the commands below fail due to modulepipnot found,
please install it using:python -m ensurepipInstalling pdfbookIf your system has network access installingpdfbookis a breeze:pip install pdfbookIf you  downloaded and unpackedpdfbookjust run:python -m pip install .Without network access downloadpdfbookfromhttp://pypi.python.org/pypi/pdfbookand run:pip install pdfbook-*.tar.gzFor more details like custom installation locations
please refer tothe official end user guide for installing Python packages.
Package: pdfbookmarker
Add bookmarks to existing PDF filesUsage:$ pdfbm [options] <FILE.pdf> [FILE.txt] [FILE-new.pdf]Options:-h,--helpshow this helpExamples:$ pdfbm FILE.pdf  # will read FILE.pdf as PDF, FILE.txt as a
bookmarks file and shall give the FILE-new.pdf as output.Hence, parameters FILE.txt and FILE-new.pdf are optional, hah.
Package: pdf-bookmark-manager
pdf-bookmark-managerA simple GTK+3 PDF bookmark (table of contents) manager, with optional zathura integration.DependenciesPython 3pdftkGTK+3PyGObjectdbus-python (for integrating with zathura)zathuraIMPORTANT: Note that pdftk, GTK+3 and zathura will not be installed from PyPI,
as they are not Python packages.
Package: pdfbooktool
A python 3 tool for use in creating your own books.The input PDF can be of any size, and the default output is an A4 PDF,
ready to print twosided, cut, and bind to A6 books using the “perfect
binding” method. Optionally, one can print on A5 paper, fold, and bind
to an A6 book, using the same method.This package installs a script called ‘booktool’ and this is what you would
actually use for preparing your PDFs.UsageIn a terminal, navigate to the directory of your PDF, then do:` $ booktoolinput-file.pdf`Or optionally:` $ booktool--a5paperinput-file.pdf`For A5-sized paper output.This will output a couple of intermediary files (which will be removed once the
script is finished running) into the working directory, and eventually a file
called “out.pdf”. This new file is a reordered PDF, ready for double-sided
printing. Use “long edge binding” as your double-sided setting on
your printer for A4. If you opted for A5 paper, use “short edge” instead.Once printed, you can cut the sheets in half (only needed if you print in A4)
and bind them together using a technique called “perfect binding”. There exist
several videos on youtube that explains how to do this.A good open-source tool for creating suitable PDFs is ‘scribus’.RequirementsThis package requires python 3, and the library ‘PyPDF2’ to work, the install
process should install this automatically if needed.InstallationThe most convenient way to install pdfbooktool is with pip. Since the script
currently doesn’t seem to work on Windows, installation instructions are only
given for linux:Make sure you have python 3 installed, then open a terminal and type:` $ sudo pip3 install pdfbooktool `This should automatically install the tool, and it’s dependencies.Running under windowsRunning this script under Windows has barely been testet. Neither PyPDF2 nor
pdfbooktool should use any features that are platform specific, however it
doesn’t seem to currently work under Windows 7. Help with further testing and
making it work, is wanted.
Package: pdfbuilder
PdfBuilderPdfBuilder is a Python library for low-level PDF crafting. It allows:creating new PDF files from list of COS objects;adding new objects and editing existing ones via incremental saves;working with both old xref tables and new xref stream objects.How to install$ pip install pdfbuilderPdfBuilder is written in a pure Python and doesn't have any external dependencies. It requires Python 3.5 or higher to function properly.ExampleA minimalistic code sample that creates "Hello, world" PDF file is listed below:importos,zlibfrompdfbuilderimportPDF,Object,ObjectReference# (0) Open new, empty fileifos.path.isfile('test.pdf'):os.remove('test.pdf')doc=PDF('test.pdf')# (1) Add pages object to PDFpages_object=Object({'Type':'/Pages','Kids':[ObjectReference(5)],# We need to know page id beforehand :('Count':1,'MediaBox':[0,0,595.28,841.89]})doc.add_new_object(pages_object)# (2) Add font to pdffont_object=Object({'Type':'/Font','BaseFont':'/Helvetica','Subtype':'/Type1','Encoding':'/WinAnsiEncoding'})doc.add_new_object(font_object)# (3) Add info object to PDFpdf_info_object=Object({'ProcSet':['/PDF','/Text','/ImageB','/ImageC','/ImageI'],'Font':[Object({'F1':font_object.ref()})]})doc.add_new_object(pdf_info_object)# (4) Add first page content to PDFcontent=b'2 J\n0.57 w\nBT /F1 14.00 Tf ET\nBT 56.69 785.20 Td (Hello, world!) Tj ET\n'content_compressed=zlib.compress(content)content_object=Object({'Filter':'/FlateDecode','Length':len(content_compressed)},stream_data=content_compressed)doc.add_new_object(content_object)# (5) Add first page to PDFpage_object=Object({'Type':'/Page','Parent':pages_object.ref(),'Resources':pdf_info_object.ref(),'Contents':content_object.ref()})doc.add_new_object(page_object)# (6) Add main catalog to PDFcatalog_object=Object({'Type':'/Catalog','Pages':pages_object.ref(),'OpenAction':[page_object.ref(),'/FitH','null'],'PageLayout':'/OneColumn'})doc.add_new_object(catalog_object)# (7) Add xref table object and save PDFdoc.save(root_id=6,info_id=2)The following example shows how to add another page to newly created document. Updates in PDF structure will be saved incrementally.frompdfbuilderimportPDF,Object,ObjectReference# (0) Open already existing PDFdoc=PDF('test.pdf')# (1) Add new page to PDFsecond_page_object=Object({'Type':'/Page','Parent':ObjectReference(1),'Resources':ObjectReference(3),'Contents':ObjectReference(4)})doc.add_new_object(second_page_object)# (2) Update pages objectnew_pages_object=Object({'Type':'/Pages','Kids':[ObjectReference(5),second_page_object.ref()],'Count':2,'MediaBox':[0,0,595.28,841.89]},id=1)doc.update_object(new_pages_object,1)# (3) Add new xref table object and incrementally update PDFdoc.save(root_id=6,info_id=2)
Package: pdfcat
OverviewThis package provides library to concatenate PDF files.DependenciespdflatexAuthors:atReal Team -contac@atreal.net:Jean-Nicolas Bes [drjnut]Matthias Broquet [tiazma]CreditsSponsorised by City of Savigny-sur-OrgeChangelog for pdfcat(name of developer listed in brackets)pdfcat - 1.0Stable release.
[tiazma]pdfcat - 0.1dev-r14Fully functional
[drjnut]pdfcat - 0.1 UnreleasedInitial package structure.
[zopeskel]
Package: pdfCatalog
pdfCatalogOverviewpdfCatalog is a lightweight library which can build catalogs for pdf
documents automatically.RequirementsPython 3.xWorks on Linux, Windows, Mac OSXInstallThe quick way:pip install pdfCatalogUser Guide1.On the LinuxOpen the terminal, come the working directory.cd pdf-file-path/Use pdfCatalog command.pdfCatalog -f pdf-file-name.pdf -c catalog.txt -s your offset -o ./ -i 1Argument:ArgumentsDescription-hfor help information.-f(required) Specify the path of pdf file you want to import catalog in.-c(required) Specify the path of the catalog.-o(required) Specify the path to save output pdf file.-s(optional) Number, default is 0.The offset of PDF document compared with catalog.-i(optional) Value is 1 or 0, default is 1. 1 means ignoring the old catalog in the PDF documentCatalog should like this: title + page前言　话说“通信”基本概念　1
第 1章　通信发展史　9
古代通信：信息沟通的起步　10
近现代通信：电磁通信和数字时代的起步　11
当代通信：移动通信和互联网时代　14
未来通信：大融合时代　15
第 2章　用什么实现通信　17
电信网中的通信工具　17
互联网的通信手段　21
专业领域的通信工具　24
家电中的通信工具　25
第3章　通信到底是干嘛的　27
第 1个问题：用什么信息格式传递给对方——编码　28
第 2个问题：如何找到对方——寻址　30
第3个问题：信息传递的额外要求——网络优化　31
额外的一个问题——人性化　332.On the Windowswin + R open the terminal, the next steps are the same as on the Linux.Releasesv1.0.2: Use utf-8 encoding text and catalog becomes more beautiful!v1.0.1: Fixed some bugs.v1.0.0: First release. Build catalogs for pdf documents automatically.
Package: pdfchain
PDF ChainA graphical user interface for the PDF Toolkit (PDFtk).
The GUI is intended to offer the functions of the command line programpdftkto all users in a easy way.PDF Chain generates a command for the PDF Toolkit from the GUI settings and executes it on the system.  Therefore the PDF Toolkit must be already installed on the system.This version is a is a completely new implementation of PDF Chain in Python with a more modern interface design.PDF Chain comes without any warranty!RequiresPython3Python-GObjectExternal DependencyPDF ToolkitPDF Toolkit - ManualAlternativelyPDFtk JavaInstallationInstall/Update Required ToolsTools forinstallingpip: The PyPA recommended tool for installing Python packages$pacman-Spython-pip
$aptinstallpython3-pipTools forpackagingsetuptools: Easily download, build, install, upgrade, and uninstall Python packageswheel: A built-package format for Python$pacman-Spython-setuptoolspython-wheel
$aptinstallpython3-setuptoolspython3-wheel
$pip3install--user--upgradesetuptoolswheelInstalling From PyPI.org Repository$pip3install--user--upgradepdfchain
$pip3uninstallpdfchainPackaging and Installing From Git Repository$gitclonegit://git.code.sf.net/p/pdfchain/neopdfchain-neo$makedist
$makeinstall
$makeuninstall
$makecleanTarget directoriesDist directory:~/.local/lib/python3.x/site-packages/pdfchain/Data directory:~/.local/share/Exec directory:~/.local/bin/There is also a Arch Linux build script in thescripts/AURdirectory.UsageStarting the Program$pdfchainCommand line options are not working yet!User DocumentationThere is aUser Documentationfor the previous version.
Package: pdf-chatter
PDF ChatterQuestion Answering over PDFs using Nougat-OCR and GPT-4.Getting StartedPrerequisitesPython 3.9 or latera NVIDIA GPU with CUDA supportenvironment variableOPENAI_API_KEYset to your OpenAI API keyInstallationpipinstallpdf-chatterUsagepdf-chatterpath/to/pdfwhich opens a REPL where you can ask questions, and GPT-4 will answer them based on the content of the PDF.Note: pdf-chatter will save a .mmd (multi-markdown) next to the target pdf. This contains the extracted text from the PDF, and is used as a cache so the same PDF doesn't need to be re-processed every time you run pdf-chatter.Additionally you can run the summarize command to get a summary of the PDF before entering the REPL.pdf-summarizepath/to/pdfExampleTips & NotesNougat-OCR doesn't extract images, so any questions about images in the document will not be answeredNougart-OCR works best on documents similar to scientific papers, reports, etc.How it worksExtract text from the PDF usingNougat-OCRThe entire document is fed toGPT-4as part of its chat history via the OpenAI APIAsimple REPLcollects the user's questions and feeds them to GPT-4, which streams the answer back.
Package: pdf-cleanup-empty
pdf_cleanup_emptyThis package can be used to remove white/empty pages from a pdf.UsageInstall via pip$ pip install pdf_cleanup_emptyUse via CLI$ cleanup --help
Usage: cleanup [OPTIONS] [INPUT_PATH]...

Removes empty and blank pages from the provided pdf files and saves them
with the suffix _clean.

Options:
-t, --target PATH  Provide a target path where the newly create files will
                    be saved.
-v, --verbose      Show some details while processing the documents.
--help             Show this message and exit.
Package: pdfcli
pdfcliA simple tool for pdfs. Stop using sketchy sites or expensive programs. Accomplish common PDF operations with the
convenience of the command line. Supported operations include:MergingDeletingSplittingRotatingReorderingGetting Metadata InfoEncryption and DecryptionInstallationpipinstallpdfcliDocumentationDocs are hosted on Github PagesContributingIf you have any questions, feel free toopen an Issue on Github.Contributions are also welcome, feel free to create a pull request for this project.
Package: pdf-cli
pdfclipdfcli is a command line utility to work with pdf.It is able to split,join,reorder,extract pdf.$ pdfcli --help
Usage: pdfcli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  decrypt    decrypt pdf
  encrypt    encrypt pdf
  extract    extract one or multiple pages and build a new document.
  info       dump pdf informations.
  join       join multiple pdf together in a single file
  rotate     rotate selected pages Rotate selected pages and outputs in new...
  split      split pdf into single page file
  watermark  use first page of pdf and add it as watermark to other
             document...ExamplesExtract pages 1, and from 5 to 9 one file for pagepdfcli split source.pdf -p 1,5-9Create a new pdf using pages 1, and from 5 to 9pdfcli extract source.pdf  -p 1,5-9 -o new.pdf
Package: pdf-client-wrapper
pdf-client-wrapper使用说明# pts_render pdf容器地址 模板目录 pdf文件位置(`.`代表当前模板目录下生成pdf)pts_render192.168.1.218:50055test-data/xxx.开发环境搭建拉取所有子仓库安装开发库执行脚本bin/compile_proto.sh，编译proto文件从源代码安装# TODO 注意 0.0.1 版本一定要加 -e 参数，因为模块目录下没有 __init__.py 文件，安装的时候该目录的代码会被忽略pipinstall-egit+https://e.coding.net/xymedimg/pdf-server/pdf-client-wrapper.git@0.0.1#egg=pdf-client-wrapper
pipenvinstall-egit+https://e.coding.net/xymedimg/pdf-server/pdf-client-wrapper.git@0.0.1#egg=pdf-client-wrapper发布版本修改setup.py中的版本号：version="v0.1.x",pythonsetup.pysdistbdist_wheel
pipinstalltwine
twineuploaddist/*# 输入pypi账号和密码
Package: pdfcomparator
VERSIONDOWNLOADSTESTSCOVERAGECompares two PDF files by appearance, not by content. It can be used in the command line, in order to use it inside bigger scripts.InstallationIt requires some libraries. In Debian or Ubuntu, you can install them by apt:# apt-get install libpoppler-glib-dev python-gtk2 python-cairo-dev python-gobject-dev python-gobjectEnsure you have an actual version ofgcc, becausepycairowill require it (it adds the option-fstack-protector-strongto the compilation options). This library is hard to install, so here you have the command line I use:$ pip install pycairo==1.8.8 –allow-unverified pycairo –allow-external pycairoThen you can install it as usual:$ pip install pdfcomparatorUsageThe format is the next one:$ pdfcompare.py pattern currentIt will compare the files under “pattern” and “current”.If they are equal, it will print nothing. If they are different, it will print the first page that is different and the script will return 2.SimilarityUsually, two pages are equal or not. But maybe you only requires a similarity percentage. So, you can use a percentaje. Usually, this makes the comparision slower.So, it will use different algoritms to check the upper similarity ratio. When any of them fails, the whole comparision fails.You can enable the precise algoritm by using the option–preciseand you can set the similarity ratio with–ratio=0.8, using any number between 0 and 1.Enjoy it!ContributeIf you want to contribute, please, create a VirtualEnv environment:$ virtualenv venv --system-site-packages
$ . venv/bin/activateIt is important to use the system packages in order to find the python-gobject library.Now, you should be able to install the pdfcomparator package:$ python setup.py developAnd to test it:$ python setup.py test
Package: pdfcomposer
Gumshoe PDF ComposerComposes one PDF from the given pdf files, in the given sequence,
then writes it to the given outfile.InstallationTo install, runpip install pdfcomposerExamplesCall the default from the command linepdfcomposer--outputerindex# index outputers# ('compose', 'index')Call a plugin (compose) from the command linepdfcomposer--outputercompose\--args'outfile.pdf''infile1.pdf''infile2.pdf'\--kwargstitle="My PDF"author="John Doe"subject="My first PDF"creator="John Doe"# composes a PDF with the content of infile1.pdf then infile2.pdf# sets the PDF info with the given kwargs# writes the PDF to ./outfile.pdfFrom a scriptfrompdfcomposerimportApicomposer=Api()# indexargs=[]kws=dict(path='index')result=composer(*args,**kws)print(result)# composeargs=['./outfile.pdf','./infile1.pdf','./infile2.pdf']kws=dict(path='compose',title="My PDF",author="John Doe",subject="My first PDF",creator="John Doe")result=composer(*args,**kws)print(result)# composes a PDF with the content of infile1.pdf then infile2.pdf# sets the PDF info with the given kwargs# writes the PDF to ./outfile.pdf
Package: pdfcomposer-compose
Compose - Gumshoe PDF Composer PluginComposes one PDF from the given pdf files, in the given sequence,
then writes it to the given outfile path.InstallationTo install, runpip install pdfcomposer-compose(ORpip install "pdfcomposer-compose")ExamplesFrom the command linepdfcomposer--outputercompose\--args'outfile.pdf''infile1.pdf''infile2.pdf'\--kwargstitle="My PDF"author="John Doe"subject="My first PDF"creator="John Doe"# composes a PDF with the content of infile1.pdf then infile2.pdf# sets the PDF info with the given kwargs# writes the PDF to ./outfile.pdfFrom a scriptfrompdfcomposer_composeimportmainargs=['./outfile.pdf','./infile1.pdf','./infile2.pdf']kws=dict(path='compose',title="My PDF",author="John Doe",subject="My first PDF",creator="John Doe")result=main(*args,**kws)print(result)# composes a PDF with the content of infile1.pdf then infile2.pdf# sets the PDF info with the given kwargs# writes the PDF to ./outfile.pdf
Package: pdf-compress
pdf_compressConvert and compress PDF scans. Make scans suitable for imslp.org
(International Music Score Library Project). See alsohttps://imslp.org/wiki/IMSLP:Scanning_music_scores. The output files are
monochrome bitmap images at a resolution of 600 dpi and the compression
format CCITT group 4.usage: pdf-compress.py [-h] [-c] [-m] [-N] [-v] [-V]
                       {convert,con,c,extract,ex,e,join,jn,j,samples,sp,s,unify,un,u}
                       ...

Convert and compress PDF scans. Make scans suitable for imslp.org
(International Music Score Library Project). See also
https://imslp.org/wiki/IMSLP:Scanning_music_scores The output files are
monochrome bitmap images at a resolution of 600 dpi and the compression format
CCITT group 4.

positional arguments:
  {convert,con,c,extract,ex,e,join,jn,j,samples,sp,s,unify,un,u}
                        Subcommand

options:
  -h, --help            show this help message and exit
  -c, --colorize        Colorize the terminal output.
  -m, --multiprocessing
                        Use multiprocessing to run commands in parallel.
  -N, --no-cleanup      Don’t clean up the temporary files.
  -v, --verbose         Make the command line output more verbose.
  -V, --version         show program's version number and exit
Package: pdf-compressor
Command line PDF compression powered by the freeiLovePDF API.Why?iLovePDF delivers the best PDF compression I've seen but their web UI doesn't support automation and can be cumbersome when dealing with many files.Installationpipinstallpdf-compressorUsageFirst, tellpdf-compressoryour iLovePDF API key (if you haven't yet, get one by signing up athttps://developer.ilovepdf.com/signup):pdf-compressor--set-api-keyproject_public_7c854a9db0...Then start compressing!pdf-compressor**/*.pdfOptionsFlagsDefaultDescription-i/--inplaceFalseWhether to compress PDFs in place.-s/--suffix'-compressed'String to append to the filename of compressed PDFs. Mutually exclusive with--inplace.--cl/--compression-level'recommended'How hard to squeeze the file size. One of'low','recommended','extreme'.'extreme'noticeably degrades quality of embedded bitmap images.--set-api-keySet the public key needed to authenticate with the iLovePDF API. You only need to do this once to start using.--report-quotaReport the number of remaining file operations in the current billing cycle for the stored iLovePDF API key.--debugFalseWhen true, iLovePDF won't process the request but only reports the parameters that would have been sent to the server.--verboseFalseWhen true, progress will be reported while tasks are running.-v/--versionGet the version number ofpdf-compressor.--on-no-pdfs'ignore'What to do when no input PDFs received. One of'ignore'or'error', former exits 0, latter raisesValueError. Can be useful when usingpdf-compressorin shell scripts.--on-bad-files'error'How to behave when receiving input files that don't appear to be PDFs. One of'error','warn','ignore'. Error type will beValueError. Code used to check if something is PDF:filepath.lower().endswith(".pdf")
Package: pdfconduit
A Pure-Python library built as a PDF toolkit.  Prepare documents for distribution.Features:
- Watermark: Dynamically generate watermarks and add watermark to existing document
- Label: Overlay text labels such as filename or date to documents
- Encrypt: Password protect and restrict permissions to print only
- Rotate: Rotate by increments of 90 degrees
- Upscale: Scale PDF size
- Merge: Concatenate multiple documents into one file
- Slice: Extract page ranges from documents
- Extract Text and Images
- Retrieve document metadata and information
Package: pdfconduit-api
A Pure-Python library built as a PDF toolkit.  Prepare documents for distribution.Features:
- Watermark: Dynamically generate watermarks and add watermark to existing document
- Label: Overlay text labels such as filename or date to documents
- Encrypt: Password protect and restrict permissions to print only
- Rotate: Rotate by increments of 90 degrees
- Upscale: Scale PDF size
- Merge: Concatenate multiple documents into one file
- Slice: Extract page ranges from documents
- Extract Text and Images
- Retrieve document metadata and information
Package: pdfconverter
pdfconverterPython command line program for converting different files to pdf. You can convert word documents, excel documents and images with the three different commandsconvertword,convertexcelandconvertimage.convertwordUsage:convertword inputfile outputfilewhere the inputfile is the name of the file you want to convert and has to be one of the formats.doc,.docm,.docx,.dot,.dotm,.dotx,.odt,.rtf,.txt,.wps,.xmlor.xps, and the outputfile is the name of the pdf.Example:convertword document.doc outputfile.pdfconvertexcelUsage:convertexcel inputfile outputfilewhere the inputfile is the name of the file you want to convert and has to be one of the formats.xlsx,.xlsm,.xlsb,.xltx,.xltm,.xls,.xlt,.xml,.xlam,.xla,.xlwor.xlr, and the outputfile is the name of the pdf.Example:convertexcel document.xlsx outputfile.pdfconvertimageUsage:convertimage inputfile outputfilewhere the inputfile is the name of the file you want to convert and has to be one of the formatsjpeg,jpg,pngorgif, and the outputfile is the name of the pdf.Example:convertimage image.jpg outputfile.pdf
Package: pdf-creator
PDF-creatorIt`s a library create pdf filesInstalling:pip install pdf_creatorGuide:frompdf_creator.creatorimportpdf_creatornew=pdf_creator('papka/new.pdf')# create file on path 'papka/new.pdf'new.text('guide',100,100)# write 'guide' on 100,100; size of page 594,842data=[['1','2'],['a','b']]new.table(data,200,200)# create table on 200,200new.image('papka/img.png',300,300)# create image from 'papka/img.png' on 300,300new.save()# save file