Free tools Windows power users keep installed
One-click scans. No signup required.
To generate a PDF invoice with DocRaptor, render your invoice data into HTML, send that HTML in a server-side JSON POST to https://api.docraptor.com/docs with type set to pdf, then save the response bytes as a PDF. Keep your API key on the server. The example below uses Python and returns a downloadable PDF from a small web application; adapt the HTML and delivery step to your stack.
Choose how DocRaptor should receive and return the invoice
DocRaptor converts HTML or XML to PDF. For an invoice your application has already rendered, send its markup as document_content. Alternatively, use document_url when DocRaptor should fetch a page itself. These are alternative inputs; the basic PDF request sets type to pdf. See the API reference and API overview.
As an Amazon Associate I earn from qualifying purchases.
| Mode | What you send or receive | Use it when |
|---|---|---|
| Inline content | Send HTML or XML in document_content; a successful synchronous response contains PDF bytes. |
Your application controls the invoice template and data. |
| Fetched page | Send a page address in document_url. |
The invoice already exists at a URL DocRaptor can fetch. |
| Asynchronous generation | Submit a job and use its status_id to retrieve the document later. |
Generation should not hold a user-facing request open. |
| Hosted document | DocRaptor returns a public URL rather than only the synchronous PDF response. | You specifically need hosted delivery and have checked its access and fee implications. |
The direct REST API accepts JSON at https://api.docraptor.com/docs. DocRaptor’s preferred direct REST authentication is HTTP Basic Authentication with the API key as the username and a blank password. Do not put the key in browser JavaScript: DocRaptor warns that a browser library exposes it in publicly accessible page source. See the HTML and JavaScript tutorial.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteBuild an invoice template from application data
Keep invoice values in structured application data rather than concatenating untrusted input into markup. A typical template needs seller and customer details, an invoice identifier and dates, line items, quantities, unit prices, applicable taxes, totals, and payment instructions. Escape customer- or user-supplied text for HTML and validate numeric values before rendering; these are general secure application practices, not a DocRaptor-specific invoice schema.
#1 Best Overall
- Wireless Bluetooth Printer: Portable thermal printer compatible with iPhone, Android phones, iPad and tablet computers via Bluetooth. For smartphones, please download the "Nada Print" App. You can also connect to laptops and computers for printing using a USB-C cable. (Note: Laptops and computers can only be connected via USB and require the installation of a driver first. Bluetooth connection is not supported.)
- No-ink printing: Only supports US Letter and A4 size thermal paper.(Doesn't support regular paper) The no-ink portable thermal printer uses direct thermal technology, requiring no ink, toner or ribbons, making it environmentally friendly, cost-effective and time-saving. The thermal printer package comes with a roll of US Letter thermal printing paper. Note: When installing the paper, remember to switch the paper size switch on APP
- Clear Print: NDYIN N80 portable thermal printer adopts high-definition printing technology, with a 203DPI resolution to provide you with clear printing results. This mobile printer is compatible with roll paper, folded paper and tattoo transfer paper, supporting printing from your mobile phone PDF, Word, pictures and web pages anytime and anywhere. It is recommended to use our NDYIN thermal paper to achieve good printing quality
- Portable wireless printer for travel: The thermal printer is equipped with a built-in 1500mAh rechargeable battery, which can print 160 sheets of 8.5" x 11" thermal paper after being fully charged. It weighs only 1.5 pounds and is compact in size. This ink-free portable printer can be easily carried in a backpack or briefcase! It is perfect for business travel, cars, small offices, construction sites, schools and homes. You can print documents, contracts, invoices and boarding passes anytime and anywhere
- The N80 thermal printer has a wide range of uses. The package includes the N80 printer, a roll of US Letter paper(7m/roll), a user manual, a guide card, a type-C soft cable and a type C adapter. Note: The charging adapter is not included. Special thermal paper is required for use; ordinary paper cannot be used. This ink-free portable thermal printer is suitable for various scenarios such as home, school, travel, office, and outdoor, meeting the printing needs of different groups of people. This tattoo template printer is also compatible with tattoo transfer paper, making it an ideal choice for tattoo art
The following Python example uses Flask and the requests package. It renders a small fixed example invoice, asks DocRaptor for a test PDF, and returns the binary response as a download. Install dependencies with python -m pip install Flask requests, set DOCRAPTOR_API_KEY in the server environment, save as app.py, and run with python app.py. Open http://127.0.0.1:5000/invoice.pdf. The test PDF is watermarked; switch test to false only when you intend to create a non-test document.
import os
from decimal import Decimal
from html import escape
import requests
from flask import Flask, Response
app = Flask(__name__)
DOCRAPTOR_URL = "https://api.docraptor.com/docs"
@app.get("/invoice.pdf")
def invoice_pdf():
api_key = os.environ.get("DOCRAPTOR_API_KEY")
if not api_key:
return "DOCRAPTOR_API_KEY is not configured", 500
invoice = {
"number": "INV-1042",
"date": "2026-10-04",
"seller": "Example Studio",
"customer": "Northwind Ltd.",
"items": [
{"description": "Design services", "quantity": 4, "unit_price": Decimal("125.00")},
{"description": "Hosting", "quantity": 1, "unit_price": Decimal("30.00")},
],
}
subtotal = sum(item["quantity"] * item["unit_price"] for item in invoice["items"])
rows = "".join(
"{} {} ${:.2f} ${:.2f} ".format(
escape(item["description"]), item["quantity"], item["unit_price"],
item["quantity"] * item["unit_price"]
)
for item in invoice["items"]
)
html = """
Invoice {number}
Date: {date}
From: {seller}
Bill to: {customer}
Description Qty Unit price Amount
{rows}
Subtotal: ${subtotal:.2f}
""".format(
number=escape(invoice["number"]), date=escape(invoice["date"]),
seller=escape(invoice["seller"]), customer=escape(invoice["customer"]),
rows=rows, subtotal=subtotal
)
try:
result = requests.post(
DOCRAPTOR_URL,
auth=(api_key, ""),
json={
"type": "pdf",
"name": "invoice-" + invoice["number"],
"document_content": html,
"test": True,
},
timeout=90,
)
result.raise_for_status()
except requests.RequestException as exc:
return "DocRaptor request failed: {}".format(exc), 502
return Response(
result.content,
mimetype="application/pdf",
headers={"Content-Disposition": 'attachment; filename="invoice.pdf"'},
)
if __name__ == "__main__":
app.run(debug=True)
In production, do not use Flask’s development server or expose detailed exception text to end users. Log an appropriate request identifier and error details on the server, return a generic error to the client, and store or stream successful bytes according to your application’s access-control and retention rules.
Submit a minimal request in other common environments
cURL
This command sends inline HTML and writes the PDF response to invoice.pdf. Replace the example HTML with the markup generated from your invoice data. Keep the key in a server-side environment variable.
Rank #2
- Wireless Bluetooth Connectivity for Flexible Use: The RONGTA RP425 Bluetooth thermal shipping label printer is fully compatible with iOS and Android phones/tablets. Simply download the "RONGTA" App from the App Store or Google Play, connect via Bluetooth through the App, and start printing instantly
- Automatic Label Identification: Rongta shipping label printer automatically detects, grabs, and feeds labels, eliminating manual adjustment hassle. It supports all direct thermal labels with a width range of 0.98" to 4.37", covering common sizes such as 4x6" shipping labels, 2x2" circular labels, 2x1" barcode labels, and 1x1" QR code labels
- Easy Installation for Multiple Systems: The Windows and Mac driver software is available on Rongta official website for easy setup. Compatible with Windows 7 and newer, Mac OS 10.11 and newer, and Chrome OS
- Compact and Portable Design: The Rongta thermal label printer features a space-saving compact build with dimensions of 10.2 x 7.4 x 5.3 inches, making it easy to store anywhere on your desk, in a drawer, or during travel
- High-Speed Printing Performance: Features fast printing speed of up to 150 mm/s with 203dpi resolution and thermal printing method, ensuring efficient label production for warehouses, offices, and on-the-go use
curl --user "$DOCRAPTOR_API_KEY:"
-H "Content-Type: application/json"
-H "Accept: application/pdf"
-d '{"type":"pdf","name":"invoice-1042","document_content":"<html><body><h1>Invoice INV-1042</h1></body></html>","test":true}'
https://api.docraptor.com/docs
-o invoice.pdf
Node.js
Use a server-side Node.js runtime with DOCRAPTOR_API_KEY set. This example checks the HTTP result before saving bytes, so an API error is not silently written with a .pdf extension.
import { writeFile } from 'node:fs/promises';
const apiKey = process.env.DOCRAPTOR_API_KEY;
if (!apiKey) throw new Error('DOCRAPTOR_API_KEY is not configured');
const html = '<!doctype html><html><body><h1>Invoice INV-1042</h1></body></html>';
const response = await fetch('https://api.docraptor.com/docs', {
method: 'POST',
headers: {
'Authorization': 'Basic ' + Buffer.from(`${apiKey}:`).toString('base64'),
'Content-Type': 'application/json',
'Accept': 'application/pdf'
},
body: JSON.stringify({
type: 'pdf',
name: 'invoice-1042',
document_content: html,
test: true
})
});
if (!response.ok) {
throw new Error(`DocRaptor returned HTTP ${response.status}: ${await response.text()}`);
}
await writeFile('invoice.pdf', Buffer.from(await response.arrayBuffer()));
Make the PDF match the invoice
Use test mode while adjusting layout
Set test to true while checking page breaks, totals, typography, logos, and print styles. DocRaptor says test documents are unlimited and do not count toward monthly plan limits, but test PDFs carry a watermark and are previews, not final customer deliverables. Change the flag to false for a production document. The API reference describes the test option.
Keep static invoice HTML static where practical
JavaScript is disabled by default, so a server-rendered invoice usually needs no script execution. Enable the relevant javascript option only if the document depends on client-rendered content or scripts. DocRaptor documents two JavaScript engines and cautions that enabling both can cause scripts to execute twice. Review the JavaScript execution documentation and API reference before enabling an engine.
Rank #3
- Portable Printers Wireless for Travel [Compact & Space-saving]: The portable printer weighs only 1.5lb and is small in size. This inkless portable printer fits easily into a backpack or briefcase! Ideal for on-the-go printing during business travel, in car or truck, small office, construction site, school and home use. You can print documents, contracts, invoices, receipts, recipes, lists and boarding passes anytime, anywhere
- Wireless Bluetooth Printer [High Compatibility]: The portable thermal printer compatible with iPhone, Android Phone, iPad, Tablet via Bluetooth. Print documents, pictures, web pages from your phone anytime, anywhere. You can also use the USB-C cable to connect your laptop or computer for printing. (Note: Laptops and computers only work with USB connection, need to download the driver first: a285m.labelife.cc)
- Thermal Printer [Multi-Size Printing]: The wireless portable printer with built-in paper bin, support thermal roll paper, continuous and single sheet thermal paper. A285M small wireless printer also supports 5 sizes of thermal paper: 8.5“ X 11” US Letter, A4, 4.33'' (110mm), 3.14'' (80mm), 2.08'' (53mm) width thermal paper, can meet most of your needs
- Inkless Printer [Cost-Effective & Inkless Printing]: The Bluetooth mobile printer adopts advanced thermal technology, no ink, toner, or ribbon required during printing, no clogging and cleaning problems! (Note: Only support the thermal paper, Does not support regular copy paper. Only supports black and white printing.)
- Mobile Printer [High Quality Printing]: The compact printer is designed for people who work outside. A wireless inkless portable printer is good for mobile notaries, truck drivers, business travelers, office workers, teachers and students. Note: Charging with 5V 2A. Don't use the charger that outputs above 5V
Use print CSS for predictable pagination
Design and test for the page size and margins your invoices need. Use print styles to keep headings with relevant content, avoid splitting short totals blocks across pages, and control repeated table headers where the renderer supports the CSS behavior you choose. Check multi-page invoices as well as one-page examples: a template that looks fine in a browser window may paginate differently in a PDF. DocRaptor converts your supplied markup; successful rendering does not validate invoice facts or guarantee jurisdiction-specific compliance.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Choose synchronous, asynchronous, or hosted delivery deliberately
A synchronous request is simplest when generation finishes comfortably within the request window: the successful response contains PDF bytes, which your app can store or return to the user. For longer-running jobs, the asynchronous flow returns a status_id that your application uses to retrieve the result later. Hosted generation returns a public URL; treat that URL as a delivery choice with access implications, not as a private file by default. The API overview explains the response modes.
DocRaptor’s API limits page, accessed in 2026, lists a one-minute synchronous generation limit, a ten-minute asynchronous generation limit, 30 simultaneous requests, and a 100 MB hosted-document output limit. The same page says there is no hard page-count or document-complexity limit, while noting complex documents can take several minutes. These operational figures may change, so verify the current API limits before launch. Queue work and apply backpressure if your expected concurrency could exceed the listed cap; do not assume a synchronous endpoint will wait indefinitely.
Rank #4
- Before Purchase, Please NOTE: Not supported for OS; Not compatible with Square POS system. NOTE: Applicable smartphone APP - Loyverse (Retail/Clothing), iREAP (Retail/Inventory), CasierStock (Shopping/Inventory Management), Kyte (Mobile Sales), etc.. Please make sure your cellphone is compatible with these softwares.
- Effortless Connectivity: This thermal printer supports both BT and USB cable connections, fit for Android and fit for Win with maximum flexibility. For smartphones, download the compatible APP, click and enter into the APP and use the BT function to connect to the printer. For computers, please use the USB cable to connect to the computer and download the pionted driver.
- High-Speed & High-Resolution Printing: Achieve exceptional clarity with 203dpi resolution and swift business operations with a maximum print speed of 70mm/s from this thermal receipt printer, which has been equipped with 58mm wide print paper and 1 USB cable.
- No-Ink & Cost-Effective Operation: Utilizing an advanced thermal print head, this USB ticket printer requires no ink, toner, or ribbons, ensuring sharp printing and significantly lower long-term costs. which also has been built in with a 1500mAh rechargeable battery, allowing you to print on the go, anytime and anywhere.
- Universal Application: Ideal for a vast range of businesses including supermarkets, restaurants, retail stores, and more, this versatile thermal printer is an ideal fit for all your receipt printing needs.
Plan for usage and hosted-document charges
DocRaptor plans have monthly document quotas. Its overage documentation gives Professional as an example with 325 documents in a billing cycle and an example overage price of 9 cents per document; the quota is an illustration, not a guaranteed current plan allowance. Hosted documents have a separate plan-based fee model: the hosting page says each document incurs a small monthly hosting fee and downloads after the first five are billed at a plan-based rate. Verify your current plan, pricing, hosting terms, and overage rates directly before estimating production costs: overage documentation and hosted-document details.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Troubleshoot common generation failures
- The response is an error, not a PDF: Check the HTTP status and response body before saving anything as a PDF. Confirm the API key, JSON encoding, required
type, and that exactly one intended input (document_contentordocument_url) is supplied. The API overview covers errors and responses. - The key works locally but is exposed to users: Move the request to a backend service and read the secret from server configuration. Do not ship the key in public browser JavaScript, as DocRaptor specifically warns in its tutorial.
- The PDF is missing script-generated content: Scripts do not run by default. Enable only the needed JavaScript option and test whether the template depends on one or both engines; both enabled can cause duplicate execution.
- The layout is clipped or split unexpectedly: Inspect the rendered HTML and print CSS, verify the chosen page dimensions and margins, and test with the longest realistic invoice. Check table widths, long descriptions, and page-break behavior rather than relying on a short sample.
- A synchronous request times out: Compare observed render time with the documented one-minute synchronous limit. Use asynchronous generation for longer jobs and retrieve the result through its status flow.
- A test PDF has a watermark: That is expected in test mode. Use
test: falseonly for the final, billable generation.
Or skip the browser setup
ScreenshotNeo is a separate option for capturing a web page as an image or PDF; it does not replace DocRaptor’s invoice-data-to-PDF workflow. If your invoice is already rendered at a URL and you need a screenshot-style capture instead, its one-call API looks like this:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://example.com/invoice/1042 -o invoice-preview.webp
See the ScreenshotNeo API docs. It accepts cookie or consent banners like a visitor and removes 60+ known consent platforms, newsletter popups, and chat widgets before capture; these steps can each be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed, and response headers say which page verdict and billing result applied. Its MCP server gives AI agents tools for screenshots, page information, and PDF capture. The free plan includes 1,000 shots a month with no card; paid plans start at $5 for 3,000 shots.
Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.
Best Value
- Bluetooth Wireless Connection: KNAON Bluetooth shipping label printer enables wireless printing. For Mobile users, download the 'FlashLabel Pro' app from APP Store or Google Play for printing. Also, supports Windows and macOS, and can directly connect to the printer by downloading the 'FlashLabel Pro' App. Windows 7 or later computers can also print via Bluetooth by installing the latest advanced driver. Note: All devices CANNOT be connected directly to Bluetooth, and must be used through the 'FlashLabel Pro' app.
- USB Cable Connectivity: This printer ensures seamless USB connectivity with macOS, Windows (7 and above), ChromeOS, and Linux. KNAON printer features a built-in USB drive preloaded with drivers and tutorial videos for a fast and hassle-free setup. For ChromeOS, need to install 'FlashLabel' extension to your Google Chrome.
- Versatile DIY Labeling Options: KNAON Thermal Shipping Label Printer offers a vast selection of pre-designed templates, including 3,000+ templates, 5,000+ icons, and 100+ fonts available in the app. Designed for both professional and personal use, it supports various thermal paper sizes, ensuring effortless customization for all your labeling needs. Ideal for printing DIY shipping labels, barcode labels, thank-you labels, mailing labels, name tags, price tags, and various small thermal labels.
- Seamless Multi-Platform Compatibility: This Bluetooth shipping label printer works effortlessly with all major platforms, including Amazon, eBay, Shopify, USPS, UPS, Etsy, PayPal, Poshmark, DHL, and more, ensuring smooth and efficient label printing. (Note: Save the logistics label as a PDF file on the shipping platforms, then import it into the 'FlashLabel Pro' app for printing).
- Portable & Stylish Design: KNAON multi-function thermal label printer offers user-friendly operation in a compact design. Its perfect size (7.17 x 3.9 x 3.43 inches) makes it simple to store anywhere. With a fast printing speed of up to 180 mm/s and support for paper widths from 1.5 to 4.2 inches. The package also includes 10 test printing papers to get you started right away.
Frequently Asked Questions
Does generating a PDF invoice with DocRaptor make it legally compliant?
No. PDF rendering confirms only that a document was generated; it does not establish that the invoice meets tax, numbering, retention, or e-invoicing rules in a particular jurisdiction. Check the applicable tax authority or qualified legal guidance.
Can DocRaptor create an invoice without sending HTML?
Yes. The API can fetch a source page using document_url instead of receiving markup in document_content, provided the URL is accessible to DocRaptor.
Recommended Free Tools
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




