Thermal Paper Sizes
Provide custom dimensions (e.g., 80mm roll width) in the API request settings. Render receipts perfectly sized for Bluetooth thermal printers.
Barcode & QR Codes
Because we use standard Chromium, JavaScript-based QR Code and SVG barcode libraries render perfectly on the final document.
PCI Scope Separation
Send the redacted, masked receipt HTML to PDFBridge. Our stateless infrastructure deletes the file from RAM instantly, keeping you compliant.
express_checkout.js
// Example: Raw HTML String to Receipt PDF
import PDFBridge from "@techhspyder/pdfbridge-node";
const pdfBridge = new PDFBridge();
const stripeReceiptHtml = `
<h1>Order #1092</h1>
<p>Amount Paid: $24.00</p>
...
`;
// In Ghost Mode, the binary buffer is returned directly.
// No data is saved to disk.
const pdfBuffer = await pdfBridge.generate({
html: stripeReceiptHtml,
ghostMode: true,
options: {
width: "3.14in", // 80mm thermal receipt
height: "7in",
printBackground: true,
marginTop: "0",
marginBottom: "0",
marginLeft: "0",
marginRight: "0"
}
});