Add a “Get design PDF” Button to Beefree SDK
Learn how to enable end users to export their designs as PDFs by adding a simple button to your UI.
Why Export PDFs?
Project Map: Where to Look in the Sample Project
File
Purpose
What You’ll Learn
Data Flow Diagram
+----------------+ +----------------+ +---------------------+
| | JSON | | HTML | |
| Beefree SDK | → | Node Proxy | → | Content Services |
| (Frontend) | | (proxy-server) | | API (/pdf) |
| | | | | |
+----------------+ +----------------+ +---------------------+
| | |
| | v
| | JSON response with URL
| | |
v v |
+-------------------------------------------------------------+
| Frontend UI (React App) |
| "Get design HTML" → "Get design PDF" → show "Open PDF" link |
+-------------------------------------------------------------+Prerequisites
Step 1: Clone the Project
Step 2: Proxy Server (LoginV2 and PDF Forwarder)
Step 3: Vite Dev Proxy (Frontend → Proxy)
Step 4: Initialize Beefree SDK & Track JSON
Step 5: Add the “Get design PDF” Button
Step 6: Display the PDF Result
Running the Sample
Troubleshooting
Learn More
Key Takeaway
PreviousAdd a “Get design HTML” Button to Beefree SDKNextAdd a “Get design Thumbnail image” Button to Beefree SDK
Last updated
Was this helpful?

