Skip to main content

Merge by name, all pdfs in the current folder, or specific list of files, into a single pdf file

Project description

Merge pdf

Merge by name, all pdfs in the current folder, or specific list of files, into a single pdf file

Install

$ pip install merge-pdf

How to use

# Import module
from merge_pdf import merge

# Path of the output pdf file
output_file = "c:\\output\\merged_files.pdf"

# Folder of the output file
output_file_folder = "c:\\output"

# Folder within have pdf files
folder_files_pdf = "c:\\pdf_files"

# List of specific pdf files
files_list = [
    "c:\\pdf_files\\01.pdf",
    "c:\\pdf_files\\02.pdf",
    "c:\\pdf_files\\03.pdf"
]

# Merge the files inside of specific folder and save in output file
merge.Merge (output_file).merge_folder (folder_files_pdf)

# Use a folder to generate the output file with the default name in this folder
merge.Merge (output_file_folder).merge_folder (folder_files_pdf)

# Merge specific list of files
merge.Merge (output_file, replace= True).merge_file_list (files_list)

# Merge files and allow replace existing file output
merge.Merge (output_file, replace=True).merge_folder (folder_files_pdf)

# Merge files and print the status of the program
merge.Merge (output_file, debug=True).merge_folder (folder_files_pdf)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

merge_pdf-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file merge_pdf-1.0.1.tar.gz.

File metadata

  • Download URL: merge_pdf-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/2.7.16

File hashes

Hashes for merge_pdf-1.0.1.tar.gz
Algorithm Hash digest
SHA256 52dd19e67fa419bf2469c6e76936a3dc5e1dec0411fe5c15d3e2b83d07609d6e
MD5 d2efde991f5f8b35f5e37e1e3393fb54
BLAKE2b-256 5927f8e0f9ab665ab7b80709037ce216bdab1ad1a956e945b0e937edc1155775

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page