export const defaultMargins = {
top: 1440,
right: 1440,
bottom: 1440,
left: 1440,
header: 720,
footer: 720,
gutter: 0,
}
export type Margins = typeof defaultMargins
export type Orient = 'landscape' | 'portrait'
export const documentTemplate = (width: number, height: number, orient: string, margins: Margins) => {
return `
`
}
/**
* 页眉模板
* @param headerContent
*/
export const headerDocumentTemplate = (headerContent: string) => {
return `
${headerContent}
`
}
/**
* 空页眉模板
*/
export const emptyHeaderDocumentTemplate = `
`
/**
* 页脚模板
* @param headerContent
*/
export const footerDocumentTemplate = () => {
return `
PAGE
35
`
}