File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,24 @@ import {
3232 parseInlineMarkdown
3333} from './pdfContentRenderers' ;
3434
35+ // 导入文本和页面助手
36+ import {
37+ cleanText ,
38+ safeSetFont ,
39+ safeGetTextWidth ,
40+ safeRenderText ,
41+ renderPlainText ,
42+ applyCJKPunctuationRules ,
43+ renderInlineSegments ,
44+ renderSegmentLine ,
45+ applySegmentStyle ,
46+ checkPageBreak ,
47+ renderFooter ,
48+ addBookmarks ,
49+ addFooters ,
50+ renderTOCWithLinks
51+ } from './pdfTextHelpers' ;
52+
3553/**
3654 * 获取页面尺寸配置
3755 * @param {string } format - 页面格式 ('a4', 'letter', 'supernote')
@@ -59,24 +77,6 @@ function getPageDimensions(format) {
5977 return formats [ format ] || formats . a4 ;
6078}
6179
62- // 导入文本和页面助手
63- import {
64- cleanText ,
65- safeSetFont ,
66- safeGetTextWidth ,
67- safeRenderText ,
68- renderPlainText ,
69- applyCJKPunctuationRules ,
70- renderInlineSegments ,
71- renderSegmentLine ,
72- applySegmentStyle ,
73- checkPageBreak ,
74- renderFooter ,
75- addBookmarks ,
76- addFooters ,
77- renderTOCWithLinks
78- } from './pdfTextHelpers' ;
79-
8080/**
8181 * PDF导出管理器类
8282 */
You can’t perform that action at this time.
0 commit comments