किसी भी HTML स्ट्रिंग या लाइव वेबपेज URL को एक पिक्सेल-परफेक्ट PDF में बदलें एक असली हेडलेस क्रोमियम इंजन का उपयोग करके पूर्ण आधुनिक CSS समर्थन (फ्लेक्सबॉक्स, ग्रिड, वेब फॉंट, बैकग्राउंड ग्राफिक्स), कस्टम पृष्ठ आकार (A4, लेटर, लीगल और अधिक), समायोज्यMargins, लंबवत उन्मुखता, और स्केलिंग डाउनलोड करने योग्य PDF URL लौटाता है उत्पादन-तैयार तेज और विश्वसनीय चालान रिपोर्ट टिकट अनुबंध और किसी भी दस्तावेज़ स्वचालन कार्यप्रवाह के लिए
{"success":true,"url":"https://pub-6db99bab215e44889f46c4b2a619f8c5.r2.dev/html_to_pdf/20260619/79d194ed-dfd7-42a0-8d27-51c71eec225b.pdf","source":"html","page_format":"A4","output_bytes":13372,"processing_time":"1484ms"}
curl --location --request POST 'https://zylalabs.com/api/12962/html+and+url+to+pdf+converter+api/25879/convert+html+or+url+to+pdf' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"html": "Invoice 1024
Amount due: $499.00
",
"page_format": "A4"
}'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए HTML और URL से PDF कनवर्टर API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
(वार्षिक बिलिंग के साथ 2 महीने बचाएँ 🎉)
The endpoint returns a structured JSON response containing a success status, a secure URL to the generated PDF, the source of the content (HTML or URL), the page format used, the size of the output in bytes, and the processing time taken for the conversion.
The key fields in the response data include "success" (boolean), "url" (string), "source" (string), "page_format" (string), "output_bytes" (integer), and "processing_time" (string). These fields provide essential information about the conversion result.
Users can customize their requests by specifying parameters such as the HTML string or URL to convert, page format (e.g., A4, Letter), margins, orientation (landscape or portrait), and scaling options. These parameters allow for tailored PDF generation.
प्रतिक्रिया डेटा को JSON प्रारूप में व्यवस्थित किया गया है जिसमें कुंजी-मूल्य जोड़े रूपांतरण परिणाम का प्रतिनिधित्व करते हैं यह संरचना उपयोगकर्ताओं को किसी भी आवेदन में आगे उपयोग के लिए पीडीएफ यूआरएल और प्रसंस्करण विवरण जैसी विशिष्ट जानकारी तक आसानी से पहुँचने की अनुमति देती है
Typical use cases include generating invoices, reports, tickets, contracts, and receipts from HTML content or URLs. It is also useful for archiving web content, creating certificates, and automating document generation workflows in various applications.
Users can utilize the returned data by accessing the "url" field to download the generated PDF. The "processing_time" can help assess performance, while the "output_bytes" field indicates the file size, which can be useful for storage considerations.
डेटा सटीकता को वास्तविक हेडलेस क्रोमियम इंजन के उपयोग के माध्यम से बनाए रखा जाता है जो HTML या URL सामग्री को उस तरह से प्रस्तुत करता है जैसे कि यह एक आधुनिक वेब ब्राउज़र में दिखाई देगा यह सुनिश्चित करता है कि उत्पन्न PDF मूल सामग्री के दृश्य के करीब हो
Standard data patterns include a "success" field indicating whether the conversion was successful, a valid "url" for the PDF, and consistent values for "page_format" and "output_bytes." Users can expect these patterns for reliable integration into their applications.