UNPKG

legal-markdown-js

Version:

Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version

35 lines 1.29 kB
/** * PDF generation constants and configuration * * This module contains all constants related to PDF generation, * including template styling, logo constraints, and layout specifications. */ /** * Configuration constants for PDF generation and template styling * @example * ```typescript * import { PDF_TEMPLATE_CONSTANTS } from './constants.js'; * * // Use PDF template constants * const logoHeight = PDF_TEMPLATE_CONSTANTS.LOGO_HEIGHT; * const maxSize = PDF_TEMPLATE_CONSTANTS.MAX_LOGO_SIZE; * * // Create custom header with constants * const header = `<div style="height: ${PDF_TEMPLATE_CONSTANTS.LOGO_HEIGHT};">...</div>`; * ``` */ export declare const PDF_TEMPLATE_CONSTANTS: { /** Maximum logo file size in bytes (500KB) */ readonly MAX_LOGO_SIZE: number; /** Fixed logo height in CSS units */ readonly LOGO_HEIGHT: "40px"; /** Header padding for alignment with document margins */ readonly HEADER_PADDING: "25mm"; /** Footer padding for alignment with document margins */ readonly FOOTER_PADDING: "25mm"; /** Font size for header and footer text */ readonly FONT_SIZE: "10px"; /** Font family for consistent typography */ readonly FONT_FAMILY: "Helvetica, Arial, sans-serif"; }; //# sourceMappingURL=pdf.d.ts.map