Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdfless-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfless-api

Pdfless API

  • 1.1.2
  • PyPI
  • Socket score

Maintainers
1

pdfless-api

Pdfless allows you to quickly and easily generate PDF documents using templates designed with HTML/CSS and conditional formatting.

  • API version: v1
  • Package version: 1.0.x

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install pdfless-api

(you may need to run pip with root permission: sudo pip install pdfless-api)

Then import the package:

import pdfless_api

Getting Started

Please follow the installation procedure and then run the following:


import pdfless_api
from pdfless_api.rest import ApiException
from pprint import pprint

configuration = pdfless_api.Configuration(
    host = "https://api.pdfless.com",
    api_key= {'PdflessApiKey': 'ak_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx'}
)

# Enter a context with an instance of the API client
with pdfless_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pdfless_api.PDFsApi(api_client)
    version = '1' # str | 

    try:

        command = pdfless_api.GeneratePDFCommand(
            template_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
            payload= {
                "string_variable": "value1", 
                "int_variable": 1, 
                "bool_variable": True, 
                "object": {
                    "child_variable": "child_value", 
                    "string_list": [
                        "item1",
                        "item2",
                        "item3"
                    ]
                }
            }
        )

        # Generate PDF
        api_response = api_instance.generate(version, command)
        print("The response of PDFsApi->generate:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling PDFsApi->generate: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.pdfless.com

ClassMethodHTTP requestDescription
DocumentTemplatesApilist_document_templatesGET /v{version}/document-templatesList document templates
PDFsApigeneratePOST /v{version}/pdfsCreate PDF
WorkspacesApiget_workspaceGET /v{version}/workspacesGet workspace

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

PdflessAPIKeyAuth

  • Type: API key
  • API key parameter name: apikey
  • Location: HTTP header

Author

contact@pdfless.com

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc