Recover Markdown from a PDF
recover_markdownExtract the exact Markdown source from a reversible PDF exported with embedded source, verified against its digest. Returns the text or writes it to a new .md file without changing the PDF.
Instructions
Gets back the exact Markdown source of a reversible PDF (one exported with the source embedded), checked against its digest. Returns the text, or writes it to a new .md file; the PDF is not changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | A PDF exported with the source embedded (rayomd --embed-source) | ||
| output | No | A new .md file to write the source to (never replaces a file); left out, the Markdown is returned as text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Bytes of Markdown recovered | |
| input | Yes | The PDF read | |
| output | No | The Markdown file written, when output was given | |
| markdown | No | The recovered Markdown, when no output was given |