Skip to content

Manage pdf files fast and easy Merge, split, convert pdf to image and convert images to pdf

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

darideveloper/elena_pdf

Repository files navigation



Elena PDF

Elena PDF

Manage pdf files fast and easy Merge, split, convert pdf to image and convert images to pdf

Start date: 2023-03-27

Last update: 2023-03-27

Project type: personal's project


Table of Contents
  1. Build With
  2. Media
  3. Install
  4. Run
  5. Roadmap

Build with

Install

$ pip install elena-pdf

Windows

Installing last version of Microsoft Visual C++ Redistributable

Linux

Most distros ship with pdftoppm and pdftocairo. If they are not installed, refer to your package manager to install poppler-utils

Mac

Mac users will have to install poppler for Mac.

Run

Merge pdf files

List of files to merge

files_to_merge = [
    "c:my_folder01.pdf",
    "c:my_folder02.pdf",
    "c:my_folder03.pdf"
]

Instance of the class

my_elena = elena.PdfManager (files_to_merge, replace=True, debug=True)

# replace: replace destination file if exist
# debug: print program status during execution

Merge file and save in specific output file

my_elena.merge("c:output_folderoutput_file.pdf")

Merge file and save in specific folder, with default output file name

my_elena.merge("c:output_folder")

Split pdf files

List of files to merge

files_to_split = [
    "c:my_folder01.pdf",
    "c:my_folder02.pdf",
    "c:my_folder03.pdf"
]

Instance of the class

my_elena = elena.PdfManager (files_to_split, replace=True, debug=True)

# replace: replace destination file if exist
# debug: print program status during execution

Split files with default base name

my_elena.split("c:output_folder")

Split files with specific base name

my_elena.split("c:output_folder", " page ")

Split files with empty base name

my_elena.split("c:output_folder", "")

Convert pdf to image

Output images extension: jpg

List of files to merge

files_to_convert = [
    "c:my_folder01.pdf",
    "c:my_folder02.pdf",
    "c:my_folder03.pdf"
]

Instance of the class

my_elena = elena.PdfManager (files_to_convert, replace=True, debug=True)

# replace: replace destination file if exist
# debug: print program status during execution

Convert files to images with default base name

my_elena.pdf_to_img("c:output_folder")

Convert files to images specific base name

my_elena.pdf_to_img("c:output_folder", " page ")

Convert files to images with empty base name

my_elena.pdf_to_img("c:output_folder", "")

Convert image to pdf

Input images extension: jpg, eps, tga, webp, gif

List of files to merge

files_to_convert = [
    "c:my_folder01.jpg",
    "c:my_folder02.jpg",
    "c:my_folder03.jpg"
]

Instance of the class

my_elena = elena.PdfManager (files_to_convert, replace=True, debug=True)

# replace: replace destination file if exist
# debug: print program status during execution

Convert imges to pdf files, and generate one file for image

my_elena.pdf_to_img("c:output_folder")

Convert imges to pdf files, and merge in one oputput file

my_elena.pdf_to_img("c:output_folder", "c:output_folderimages_converted.pdf")

Roadmap

  • Merge pdf files
  • Split pdf files
  • Convert pdf to image
  • Convert image to pdf

About

Manage pdf files fast and easy Merge, split, convert pdf to image and convert images to pdf

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published