Code Monkey home page Code Monkey logo

pylovepdf's Introduction

pylovepdf 1.3.3 - Unofficial, Unmaintained.

ilovepdf.com python API library

What it does

This library allow to manipulate pdf using the API of http://www.ilovepdf.com. See the Tools section to know what you can do.

Prerequisites

Installation (older version)

pip install pylovepdf 

Manual installation (up to date)

Download the latest release.

python setup.py install

Getting started

Example files are located inside samples/. Change file paths and the public_key parameter with the one you found in your developer account (See prerequisites). Run the files and enjoy.

Tools

Currently the following tools are available:

  • compress (Reduce the size of pdf files)
  • imagepdf (Converts an image to pdf)
  • merge (Merge multiple pdf into single file)
  • officepdf (Office document to pdf conversion)
  • pagenumber (Place numbers on pages)
  • pdfa (Converts into PDF/A)
  • pdfjpg (Converts a pdf into jpeg image)
  • protect (Add password to a pdf)
  • rotate (Rotates the pages of a file)
  • split (Split a pdf)
  • unlock (Remove the password security from the pdf, the coolest feature ever!)
  • validatepdfa (Checks the conformity of PDF/A format)
  • watermark (Adds watermark to the file)

Example Usage (compress tool)

from pylovepdf.ilovepdf import ILovePdf

ilovepdf = ILovePdf('public_key', verify_ssl=True)
task = ilovepdf.new_task('compress')
task.add_file('pdf_file')
task.set_output_folder('output_directory')
task.execute()
task.download()
task.delete_current_task()

Alternative Example Usage (compress tool)

A tool can be created directly:

from pylovepdf.tools.compress import Compress

t = Compress('public_key', verify_ssl=True)
t.add_file('pdf_file')
t.set_output_folder('output_directory')
t.execute()
t.download()
t.delete_current_task()

Documentation

Please see https://developer.ilovepdf.com/docs for up-to-date documentation.

Built With

Versioning

I use SemVer for versioning.

Authors

pylovepdf's People

Contributors

andycybersec avatar tgrandje avatar markhaakman avatar oscar6echo avatar sinistro14 avatar aster94 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.