प्रोडक्शन सिस्टम के लिए PDF में QR कोड API
PDF में QR code को structured backend data से बिना browser render करें. gPdf PDF output संभालता है और business rules आपके system में रहते हैं.
/api/v1/pdf/render PDF में QR code को structured data से repeatable PDF के रूप में generate करना. gPdf document render करता है; data semantics और workflow state आपका system रखता है.
यह API कब इस्तेमाल करें
- Backend में PDF में QR code data पहले से है और stable PDF response चाहिए.
- Operational document के लिए Chromium या HTML-to-PDF avoid करना है.
- Reprint, audit या batch के लिए repeatable output चाहिए.
यह क्या replace नहीं करता
- gPdf postage खरीदना, tax filing, external order creation या fiscal system का काम नहीं करता.
- Data validation, business rules या marketplace integrations को replace नहीं करता.
कौन सा endpoint call करें
/api/v1/pdf/render
JSON Render इस workflow का default path है.
/api/v1/template-render
जब workflow को related API path, template contract या capabilities lookup चाहिए, तब इसका उपयोग करें.
Minimal request
/api/v1/pdf/render - PDF में QR code
{
"pages": [
{
"size": "a4",
"elements": [
{
"type": "text",
"x": 20,
"y": 24,
"content": "Scan to view this document online",
"style": { "font_size": 14, "font_family": "NotoSans-Regular" }
},
{
"type": "barcode",
"format": "qrcode",
"content": "https://example.com/documents/DOC-2026-001",
"x": 20,
"y": 44,
"width": 32,
"height": 32
}
]
}
]
}
gPdf क्या handle करता है
- Structured request से PDF में QR code का PDF rendering.
- Request के हिसाब से text, tables, lines, barcodes, pages, metadata और output options.
- Retry, reprint और audit के लिए deterministic output.
आपका system क्या own करता है
- PDF में QR code का सही data, business rules और operation state.
- Authentication, storage, external workflows और receiver validation.
Production checklist
- Real data और PDF consume करने वाले systems के साथ test करें.
- Support, audit और reprint के लिए request IDs और validation evidence रखें.
- Approved layout को template बनाएं जब कई systems उसे reuse करें.
Claim boundaries
- gPdf PDF में vector barcode draw करता है; GS1 data quality या retail acceptance certify नहीं करता.
- Payload, identifiers, quiet zones और scan testing आपके system की responsibility है.
API shape
PDF में QR कोड API public gPdf APIs पर बना production workflow है. Request data, layout, settings और render होने वाले PDF parts स्पष्ट करता है. gPdf PDF बनाता है; business event का मतलब आपका system रखता है.
Endpoint choice
इस workflow का default endpoint /api/v1/pdf/render है. Layout approve होकर systems में reuse हो तो Template Render use करें. EN 16931 CII XML embedded Factur-X / ZUGFeRD PDF/A-3b packaging के लिए ही E-Invoice Render use करें.
Production से पहले validation
PDF में QR code को real data और downstream systems से validate करें. Support, audit और reprint के लिए request IDs, rendered output और validation evidence रखें.
FAQ
- क्या यह अलग endpoint है?
- PDF में QR कोड API workflow को public gPdf API path से map करता है. Page बताता है कौन सा path call करना है और request क्या own करता है.
- क्या templates use कर सकते हैं?
- हाँ. Layout बदल रहा हो तो JSON Render use करें; layout approve हो जाए और callers सिर्फ business data भेजें तो Template Render use करें.
- Production से पहले क्या validate करें?
- Real data और workflow के printer, scanner, validator, accounting system या marketplace receiver से validate करें.