Skip to main content

Elena Pdf

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

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.

How to use

Import module

from elena_pdf import elena

Merge pdf files

List of files to merge

files_to_merge = [
    "c:\\my_folder\\01.pdf",
    "c:\\my_folder\\02.pdf",
    "c:\\my_folder\\03.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_folder\\output_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_folder\\01.pdf",
    "c:\\my_folder\\02.pdf",
    "c:\\my_folder\\03.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_folder\\01.pdf",
    "c:\\my_folder\\02.pdf",
    "c:\\my_folder\\03.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_folder\\01.jpg",
    "c:\\my_folder\\02.jpg",
    "c:\\my_folder\\03.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_folder\\images_converted.pdf")

Metadata

Release files for elena-pdf 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elena-pdf 1.1.5
File Size Uploaded
elena_pdf-1.1.5.tar.gz 11.5 MB Details

Release files / elena_pdf-1.1.5.tar.gz

Download URL elena_pdf-1.1.5.tar.gz
Size 11.5 MB
Tags Source
SHA-256 checksum
How to use checksums
80da65f388bedd95f5a7cc5ded9030bdd19a3d724fb03b4e1dce0a318468abc9
BLAKE2b-256 checksum
How to use checksums
6a2a7c7e24b05ced0d8b7252ca5cee9c723830214e703ffe718612941077c54f
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.5 This release

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page