Pdfless API
Project description
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
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DocumentTemplatesApi | list_document_templates | GET /v{version}/document-templates | List document templates |
| PDFsApi | generate | POST /v{version}/pdfs | Create PDF |
| WorkspacesApi | get_workspace | GET /v{version}/workspaces | Get workspace |
Documentation For Models
- ApiExceptionDetailsResult
- DocumentTemplateDto
- GeneratePDFCommand
- PDFDto
- PDFDtoApiResult
- WorkspaceDto
Documentation For Authorization
Authentication schemes defined for the API:
PdflessAPIKeyAuth
- Type: API key
- API key parameter name: apikey
- Location: HTTP header
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdfless_api-1.1.2.tar.gz
(24.8 kB
view details)
File details
Details for the file pdfless_api-1.1.2.tar.gz.
File metadata
- Download URL: pdfless_api-1.1.2.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d491aaebaaf52c6645646a61e0921611420876abadac0dee643ddc8280ba6e7e
|
|
| MD5 |
fa853efe1dae771da4403dee3f368f25
|
|
| BLAKE2b-256 |
a989814023a649a59ae440692435e2b33ddb198dfd1ddfae611a1cc9f6cb93a4
|