[]
        
(Showing Draft Content)

PrintDocument

PrintDocument 클래스를 통해 쉽게 문서를 인쇄하거나 PDF로 내보낼 수 있습니다. 대부분의 브라우저에서 용지의 크기, 방향, 여백,페이지 머리글 및 바닥글 포함 여부를 선택할 수 있습니다.

콘텐츠 추가

__PrintDocument__를 사용하면 인쇄 또는 내보내기 전에 문서를 수정할 수 있습니다. append 메서드 통해 문서에 HTML 인라인(inline)을 추가할 수 있습니다.

예시
import * as wijmo from '@grapecity/wijmo';

let doc = new wijmo.PrintDocument({
    title: 'PrintDocument Test' 
});

doc.append('<h1>Adding a Header to the Document</h1>');
doc.append('<p>This document will include this HTML when it is exported or printed.</p>');

print

문서를 인쇄하기 위해선, __print 메서드__를 호출하면 됩니다.

doc.print();