Global Document Factory & Universal Converter
Pricing
from $35.00 / 1,000 document generateds
Global Document Factory & Universal Converter
This Actor is a Compliance Engine. It comes pre-loaded with strict formatting rules for global bureaucracies—from UAE Ministry Offer Letters to Chinese "Red Head" official documents—ensuring your generated files meet local legal standards (margins, fonts, layout) automatically.
Pricing
from $35.00 / 1,000 document generateds
Rating
0.0
(0)
Developer

Visita Intelligence
Actor stats
1
Bookmarked
2
Total users
1
Monthly active users
17 hours ago
Last modified
Categories
Share
🏭 Universal Document Factory
Generate government-compliant contracts, automated invoices, and professional reports instantly. Turn Markdown, HTML, or Webpages into perfectly formatted PDF & DOCX files.
🚀 What is Universal Document Factory?
The Universal Document Factory is a professional-grade document generation engine designed for developers, legal teams, and businesses. It eliminates the pain of manual formatting by converting raw text or data into polished, downloadable documents.
Unlike simple converters, this Actor is a Compliance Engine. It comes pre-loaded with strict formatting rules for global bureaucracies—from UAE Ministry Offer Letters to Chinese "Red Head" official documents—ensuring your generated files meet local legal standards (margins, fonts, layout) automatically.
✨ Key Features
- 📝 Format Agnostic: Convert Markdown, HTML, or live URLs into PDF or DOCX.
- 🌍 AI Cross-Translation: Automatically translate entire documents into any language (e.g., Arabic, Chinese, Spanish) powered by Anthropic Claude Sonnet 4.6 via OpenRouter.
- ⚖️ Global Compliance: One-click presets for UAE, KSA, Qatar, China, Russia, India, Brazil, Malaysia, and more. No more rejected forms due to wrong margins.
- 🧩 Mail Merge / Templating: Use Jinja2 syntax ({{ client_name }}) to inject JSON data directly into your documents. Perfect for bulk invoicing or contracts.
- 🔗 Web Clipper: Turn any blog post, documentation page, or competitor site into a clean, read-offline PDF.
- 👨💻 Developer Friendly: Control output filenames, metadata (Author/Title), page size (A4/Letter), and raw Pandoc arguments via API.
🏛️ Supported Compliance Presets
Don't guess the margins. We have engineered specific "Styler" classes based on government technical specifications.
| Region | Preset Name | formatting Details |
|---|---|---|
| 🇦🇪 UAE | UAE_MOHRE | Ministry of Human Resources standard. A4, bilingual-ready margins. |
| 🇸🇦 Saudi Arabia | KSA_Mudad | Mudad/Qiwa Contract standard. Hijri-compatible layout, large Arabic font support. |
| 🇨🇳 China | China_GB_Standard | GB/T 9704-2012 "Red Head" (Hongtou) standard with FangSong fonts. |
| 🇷🇺 Russia | Russia_GOST | GOST R 7.0.97 Archival standard (30mm Left Binding Margin). |
| 🇮🇳 India | India_CSMOP | Central Secretariat "Green Lace" filing format (35mm Left Margin). |
| 🇿🇦 South Africa | Legal_SA_HighCourt | Rule 62 compliant (3.5cm Left Margin for stitching). |
| 🇧🇷 Brazil | Brazil_ABNT | ABNT NBR standard for Cartório submission. |
| 🚀 Startups | Tech_Startup | Dense, Amazon-style memo format with narrow margins. |
🛠️ How to Use
1. Simple Invoice Generation (Mail Merge)
Want to generate 1,000 invoices? Just pass a template and your data.
Input:
{
"content_string": "# INVOICE {{ id }}\n\n**Billed To:** {{ client }}\n\n| Item | Cost |\n|---|---|\n| API Service | ${{ amount }} |",
"input_format": "markdown",
"output_format": "pdf",
"data_context": {
"id": "INV-2025-001",
"client": "Acme Corp",
"amount": "500.00"
},
"filename_template": "Invoice_{{ client }}_{{ id }}"
}
2. Legal Contract (UAE Compliance)
Generate an official offer letter that looks exactly like a Ministry document.
Input:
{
"content_string": "# PRIVATE OFFER LETTER\n\nWe offer you the position of **Senior Engineer**.",
"industry_preset": "UAE_MOHRE",
"branding_header": "Global Tech LLC",
"branding_footer": "Confidential - HR Dept",
"output_format": "docx"
}
3. Web Clipping (Save URL as PDF)
Archive a webpage for offline reading or evidence. Google Docs links are auto-detected — just paste the sharing URL directly.
Input:
{
"source_url": "https://apify.com/about",
"output_format": "pdf",
"paper_size": "a4",
"margin": "1cm"
}
4. AI Translation (Any Language)
Translate any document into a target language using Claude Sonnet 4.6. Works with all input types — URLs, Markdown, or HTML.
Input:
{
"source_url": "https://docs.google.com/document/d/YOUR_DOC_ID/edit",
"target_language": "Arabic",
"industry_preset": "UAE_MOHRE",
"output_format": "docx"
}
📊 Input & Output
Input Parameters
- Content Source: Choose between raw text (content_string) or a website (source_url).
- Format: Select Markdown or HTML.
- Industry Preset: (Optional) Select a region to auto-apply professional styling.
- Branding: Add logos, header text, and watermarks.
- Developer Settings: Custom filename_template (supports variables), margins, and page sizes.
Output
The Actor stores the result in the Default Key-Value Store.
- Dataset: Returns a JSON record with the public download URL.
- Key-Value Store: Contains the raw .pdf or .docx file.
💰 Pricing
This Actor uses Apify's Pay-Per-Event (PPE) pricing — you only pay for what you use. No platform compute charges.
| Event | What It Covers | Price |
|---|---|---|
| Actor Start | One-time startup cost per run | **$0.00005 ** |
| Document Generated | Each PDF or DOCX file produced | $0.035 per document |
| AI Translation | Translating a document via Claude Sonnet 4.6 (optional) | $0.05 per document |
Cost Examples
- 10 PDFs, no translation: ~$0.35
- 10 PDFs with Arabic translation: ~$0.85
- 100 compliance contracts (bulk): ~$3.50
⚡ Performance: Capable of generating thousands of documents per hour for bulk workflows. Each conversion completes in under 5 seconds.
❓ FAQ
Q: Can I use my own fonts?
A: The system comes pre-loaded with global fonts including Noto CJK (Chinese/Japanese), Traditional Arabic, and Paratype (Cyrillic). Custom user fonts are not currently supported in the UI but can be added on request.
Q: Does it support images?
A: Yes! Use standard Markdown image syntax . The engine will download and embed them.
Q: Is my data safe?
A: Yes. Your documents are generated in a secure, ephemeral container. Once the run finishes and you download your file, the container is destroyed. We do not store your data permanently.
Q: Why do I see squares instead of text?
A: If you are converting Chinese, Arabic, or Russian text, ensure you have selected the correct Industry Preset. This tells the engine which font family to prioritize for rendering.
📞 Support & Customization
Need a specific government form or compliance standard added?
- Check the Issues tab to report bugs.
- Contact the developer for custom enterprise presets (e.g., specific bank forms or insurance layouts).
Powered by Apify