Reference
Host options
PdfRendererOptions and jasy-only features exposed through custom components.
Host options (not markdown)
| Feature | comark-pdf | jasy |
|---|---|---|
| Page size / orientation / margin / gap | pdf.format, width+height, orientation, margin, gap | Page({ size, orientation, margin, gap }) |
| Document type defaults | pdf.font, fontSize, color, lineHeight, textAlign | Document({ font, size, … }) |
| Metadata / a11y / overflow | pdf.title, author, lang, accessible, onOverflow | renderToBytes options |
| Encryption | pdf.encrypt | AES-256 encrypt options |
| Embedded fonts | fonts + addFont | addFont / addFontFromUrl |
| Print faces / ink / table / quote | visuals | Host maps faces onto Text / Box / Table |
| Chrome elements | chrome.header / footer / watermark | Page header/footer, Positioned overlay |
| Missing glyphs | onMissingGlyphs | renderToBytes({ onMissingGlyphs }) |
| Node file export | comark-pdf/node | renderToBytes + writeFile |
| Browser preview | comark-pdf/preview mount | bytes → Blob URL |
Configure these through Options and frontmatter.
jasy-only (custom component or call jasy)
These exist in jasy and are not markdown features. Expose them with components when a host needs them.
| jasy | Why it stays in jasy |
|---|---|
AcroForm fields (TextField, Checkbox, RadioGroup, Dropdown, ListBox, PushButton, SignatureField) | Fillable widgets. Task lists stay printed marks. |
fillForm / flattenForm | Edit an existing form PDF |
Link around a box / image | Markdown links are text span({ href }) |
Canvas | Drawing API, not an AST node |
keepTogether, orphans / widows, PageBuilder | Layout policy on the jasy tree |
hyphenate, direction: 'rtl', ligatures / kerning flags | Text engine options; no markdown syntax |
@jasy/zugferd | E-invoice XML + PDF/A-3 — separate package |
See Custom components for factory examples.
For the full Comark syntax map, see Syntax matrix.