Skip to main content

Any format to pdf converter and Attach PDF in email

Project description

Description

This is a module that serves two purposes:

  1. This library serves two main purposes: Detect the inputFile that you send as argument. If it is a document format, a md format, or an image the library will convert the input file to a pdf
  2. The library also facilitates email.If the user provides username, password, senders and receivers address and a pdf file as input arguments, the pdf file is attached and is sent to the receiver's address.

Installation

pip install PdfandEmail

Usage

from PdfandEmail import convertToPdf, email

To convert any file (word document, image and .md):

convertToPdf(inputFile)

To attach the pdf in email

email(username, password, senderAddress, receiverAddress, subject, body, inputFile)

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

PdfandEmail-0.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

PdfandEmail-0.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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