Markdown to PDF
Markdown files (.md, .markdown) को — READMEs, docs, blog posts, technical writing — rendered headings, code blocks, tables, और links वाले styled PDF document में convert करें। Files आपके browser में process होती हैं।
Markdown to PDF, .md और .markdown files को एक styled PDF document में convert करता है। Markdown को marked (एक CommonMark/GFM-compliant parser) parse करता है, आपके browser के अंदर styled HTML के तौर पर render होता है, html2canvas capture करता है, और pdf-lib इस्तेमाल करके PDF में embed होता है। Theme चुनें (Light, Sepia, Print-friendly), font, page size, और margin। Headings, code blocks, tables, lists, और links सभी सही से render होते हैं।
Markdown to PDF क्या है?
Markdown एक lightweight markup language है जिसे John Gruber ने <strong>2004</strong> में बनाया था और 2014 में <a href="https://commonmark.org/" target="_blank" rel="noopener">CommonMark</a> के तौर पर standardise किया गया। यह simple punctuation इस्तेमाल करता है — headings के लिए pound signs, emphasis के लिए asterisks, code के लिए backticks — structured documents बनाने के लिए जो plain text की तरह natural पढ़े जाते हैं। GitHub, GitLab, Reddit, Discord, Notion, Obsidian, और ज़्यादातर static-site generators Markdown को अपने primary content format के तौर पर इस्तेमाल करते हैं। README files, API documentation, technical writing, और blog posts overwhelmingly Markdown हैं।
Markdown को PDF में convert करना तब आम है जब आपको Markdown document किसी ऐसे व्यक्ति के साथ share करना हो जो उसे Markdown viewer में नहीं खोलने वाला — clients, executives, students, developer-tools world के बाहर का कोई भी। PDF universal sharing format है। ज़्यादातर online Markdown-to-PDF tools आपकी file को remote server पर upload करते हैं, जो unreleased product specs, internal documentation, या किसी भी ऐसी चीज़ के लिए असुविधाजनक है जिसे आप किसी और की disk पर नहीं रखना चाहते। यह tool पूरी conversion आपके browser में चलाता है।
Browser में Markdown conversion कैसे काम करता है?
Pikowl हर Markdown file को Blob.text() API के ज़रिए पढ़ता है, उसे marked (CommonMark + GitHub Flavored Markdown extensions जिनमें tables, task lists, strikethrough शामिल हैं) से parse करता है, और परिणामी HTML को page में एक hidden styled container के अंदर render करता है। html2canvas rendered output को 2× DPI image के तौर पर capture करता है, जिसे page-height chunks में slice किया जाता है और pdf-lib इस्तेमाल करके PDF pages के तौर पर embed किया जाता है। चुना हुआ theme container पर apply होने वाली CSS को drive करता है — Light (default white background, dark text), Sepia (low-eye-strain reading के लिए warm cream paper), या Print-friendly (high-contrast black on white, printing के लिए optimised)। कुछ भी किसी server को नहीं भेजा जाता।
क्या यहाँ sensitive Markdown documents convert करना safe है?
हाँ। Tool इस्तेमाल करते समय DevTools में network tab खोलें — आप पहली बार इस्तेमाल पर marked और html2canvas chunks एक बार download होते देखेंगे, और उसके बाद कोई outbound request नहीं। Markdown files locally File API के ज़रिए पढ़ी जाती हैं, browser के अंदर parse होती हैं, और परिणामी PDF आपके browser की memory में तब तक रहती है जब तक आप उसे download नहीं करते। Internal documentation, unreleased technical specs, और confidential notes कभी network पार नहीं करते।
कौनसे Markdown features supported हैं?
marked पूरे CommonMark specification को साथ ज़्यादातर GitHub Flavored Markdown (GFM) extensions support करता है: tables, task lists, strikethrough, autolinking, और language tags वाले fenced code blocks। Markdown के अंदर inline HTML render होता है। Support नहीं हैं: code blocks के अंदर syntax highlighting (plain monospace के तौर पर render होते हैं), Mermaid diagrams, math (LaTeX/KaTeX), footnote definitions, custom directive syntax। Output browser की font stack के ज़रिए unicode-complete है — Chinese, Japanese, Korean, Cyrillic, Arabic, हिंदी, और emoji सभी सही से render होते हैं।
Limits क्या हैं और क्यों?
प्रति conversion 50 तक Markdown files, प्रति file 10 MB, 100 MB combined पर soft warning और 150 MB पर hard cap। एक 10 MB Markdown file exceptional है — ज़्यादातर README और documentation files 100 KB से बहुत कम होती हैं। लंबे documents पर html2canvas rasterisation step प्रति page कई सेकंड ले सकता है; अगर आपकी PDF ~50 pages से ऊपर जाएगी, तो noticeable wait की उम्मीद रखें।
Markdown के लिए Pikowl की तुलना Smallpdf और iLovePDF से कैसे होती है?
Smallpdf और iLovePDF dedicated Markdown-to-PDF tools offer नहीं करते — दोनों Markdown को generic text-to-PDF pipelines से चलाते हैं जो formatting strip कर देते हैं। मुख्य अंतर हैं formatting fidelity, processing location, और pricing। नीचे की संख्याएँ हर service के अप्रैल 2026 तक के public free-tier offers दर्शाती हैं।
| Feature | Pikowl | Smallpdf | iLovePDF |
|---|---|---|---|
| Files कहाँ process होती हैं | आपका browser | Remote server | Remote server |
| Sign-up ज़रूरी | नहीं | Optional | Optional |
| Output options | Themes · 3 fonts · 3 page sizes | कोई Markdown rendering नहीं | कोई Markdown rendering नहीं |
| अधिकतम file size (मुफ्त) | 10 MB | 5 MB | 200 MB (combined) |
| कीमत | मुफ्त | $9/माह unlimited के लिए | $7/माह premium के लिए |
स्रोत: smallpdf.com/pricing और ilovepdf.com/pricing, अप्रैल 2026 में लिए गए।
सामान्य उपयोग
- README से client deliverable: किसी project के GitHub README को PDF में convert करें जिसे आप client status email या sales follow-up में attach कर सकते हैं — बिना GitHub link share किए।
- Technical documentation: किसी API reference या runbook chapter को vendor packet या compliance audit में inclusion के लिए styled PDF के तौर पर export करें।
- Notion / Obsidian export: कई note-taking apps notes को Markdown के तौर पर export करते हैं — उन्हें archival या printable distribution के लिए एक single PDF में convert करें।
- Blog post archival: किसी static-site blog post (Hugo, Jekyll, Eleventy) को offline reading या syndication के लिए printable PDF में convert करें।
- Course materials: Markdown lecture notes की एक series को student handouts के लिए एक paginated PDF में combine करें।
- Pull-request templates और changelogs: CHANGELOG.md या RELEASE-NOTES.md को distribution के लिए release-ready PDF में convert करें।
FAQ
क्या GitHub Flavored Markdown features supported हैं?
ज़्यादातर: tables, task lists (- [ ] checkbox syntax), strikethrough (~~text~~), autolinking, fenced code blocks। Support नहीं हैं: code blocks के अंदर syntax highlighting (plain monospace के तौर पर render होते हैं), Mermaid diagrams, footnote definitions, math (LaTeX/KaTeX), और GitHub-specific image alignment attributes। ज़्यादातर README और docs use cases के लिए यह काफी है।
क्या Markdown tables PDF में सही से render होंगी?
हाँ। GFM table syntax (header row के साथ pipe-separated columns) output PDF में borders, header background, और proper alignment वाली एक styled HTML table के तौर पर render होती है।
क्या मुझे syntax-highlighted code blocks मिल सकते हैं?
इस version में नहीं। Code blocks एक monospace font और subtle background tint के साथ render होते हैं, लेकिन per-language syntax highlighting (Prism या Highlight.js integration) के बिना। अगर आपको highlighted code चाहिए, तो interim approach है कि अपने editor से highlighted version को HTML के तौर पर copy करें और HTML to PDF tool इस्तेमाल करें।
Light, Sepia, और Print-friendly themes में क्या फर्क है?
Light default है — white background dark grey text के साथ, modern sans-serif। Sepia warm cream background का इस्तेमाल brown-grey text के साथ करता है, लंबे reading sessions के लिए आँखों पर आसान। Print-friendly high contrast के साथ pure black on white है, paper output और toner बचाने के लिए optimised।
क्या non-Latin characters (Chinese, Japanese, Cyrillic, हिंदी) सही से render होते हैं?
हाँ — TXT to PDF (जो pdf-lib के WinAnsi fonts से limited है) के विपरीत, Markdown to PDF html2canvas इस्तेमाल करता है जो browser की full font stack के ज़रिए render करता है। CJK, Cyrillic, Devanagari (हिंदी), Arabic, और emoji सभी आपके browser में available system fonts का इस्तेमाल करके सही से render होते हैं।
क्या परिणामी PDF में text selectable है?
नहीं — html2canvas pipeline rendered HTML को rasterise करती है, इसलिए परिणामी PDF pages images हैं, selectable text नहीं। यह full styling fidelity के लिए trade-off है। Selectable text के लिए, अपनी Markdown को plain TXT के तौर पर save करें और TXT to PDF इस्तेमाल करें — आप styling खो देंगे लेकिन Cmd+F search पाएँगे।
क्या Markdown files server पर upload होती हैं?
नहीं। Conversion पूरी तरह आपके browser में चलती है — DevTools का network tab खोलें और आप पहली बार इस्तेमाल पर marked और html2canvas libraries एक बार download होते देखेंगे, और उसके बाद कोई outbound request नहीं। Markdown content File API के ज़रिए आपकी disk से पढ़ा जाता है, browser में parse होता है, canvas में render होता है, और pdf-lib इस्तेमाल करके PDF में embed होता है।
आँकड़ों में
- Markdown को John Gruber ने 2004 में web content को plain text में लिखने के तरीके के तौर पर बनाया था; CommonMark ने 2014 में spec को formalise किया, और GitHub Flavored Markdown इसे tables और task lists के साथ extend करता है।
- marked, यह tool जो parser इस्तेमाल करता है, modern browsers में Markdown को प्रति millisecond कई हज़ार lines पर process करता है — parsing step essentially instant है; html2canvas rasterisation time-consuming phase है।
- Markdown GitHub READMEs, GitLab wikis, Notion pages, Obsidian notes, Hugo / Jekyll / Eleventy static sites, और Discord messages के लिए default content format है — जो इसे arguably modern web पर सबसे ज़्यादा लिखा जाने वाला structured-document format बनाता है।