{"repo":"Api2Pdf/api2pdf.python","free":true,"listed":false,"github":"https://github.com/Api2Pdf/api2pdf.python","clone":"git clone https://github.com/Api2Pdf/api2pdf.python.git","description":"Python client library for the Api2Pdf.com REST API - Convert HTML to PDF, URL to PDF, Office Docs to PDF, Merge PDFs, HTML to Image, URL to Image, HTML to Docx, HTML to Xlsx, PDF to HTML, Thumbnail preview of office files","language":"Python","stars":26,"topics":["pdf","pdf-generation","html-to-pdf","url-to-pdf","merge-pdf","word-to-pdf","wkhtmltopdf","headless-chrome","libreoffice","aws-lambda"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"api2pdf.python Python bindings for the Api2Pdf REST API. Api2Pdf.com is a document generation and file conversion API for Python applications. It supports HTML to PDF, URL to PDF, HTML to image, URL to image, Office document conversion, markdown conversion, structured PDF extraction, zip generation, barcode and QR code generation, PDF page extraction, PDF password protection, and thumbnails or previews for PDF, office, and email files. The package keeps a simple Pythonic client shape with service groups like client.Chrome , client.WkHtml , and client.PdfSharp . Installation Install from PyPI: Quick Start Create an account at portal.api2pdf.com to get your API key. Custom Domains The default client base URL is https://v2.api2pdf.com . To send requests to a custom Api2Pdf domain: You can also attach a tag header to all requests: Understanding Responses Most conversion methods return an Api2PdfResponse . Important members: - result : Parsed JSON response when the API returns standard JSON. - is binary : True when output binary=True returns file bytes directly. - get file bytes() : Return bytes from a binary response or download them from FileUrl . - download file() : Backward-compatible alias for get file bytes() . - save file(path) : Save the generated file to disk. - request : Request metadata useful for debugging. For debugging: Common Request Features Most conversion methods support some or all of these keyword arguments: - file name : Set the output file name. - inline : Co","default_branch":null,"files":null,"tree":[],"storefront":"/r/Api2Pdf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Api2Pdf/api2pdf.python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}