mirror of
https://github.com/pdfme/pdfme.git
synced 2026-06-02 19:29:57 -04:00
* feat(jsx): add pdfme jsx package * refactor(jsx): derive text props from schema types * fix(jsx): tighten mvp layout constraints * feat(jsx): measure text height with schema helpers * docs: update jsx md2pdf roadmap
7 lines
188 B
TypeScript
7 lines
188 B
TypeScript
import { PAGE_SIZE_PRESETS } from '@pdfme/common';
|
|
|
|
export const a4BasePdf = (padding: [number, number, number, number] = [20, 20, 20, 20]) => ({
|
|
...PAGE_SIZE_PRESETS.A4,
|
|
padding,
|
|
});
|