ReactJS React 버전으로 Viewer 없이 PDF 내보내기 시, 한글 텍스트 및 공간 깨짐
페이지 정보
작성자 호로로로 작성일 2023-02-08 01:19 조회 1,315회 댓글 0건본문
첨부파일
관련링크
안녕하세요.
현재 React를 이용해서 Viewer 없이 Pdf를 내보낼려고 하는데 2가지 문제점이 있습니다.
1. 한글 텍스트 깨짐 현상
- 현재 한글은 Font-Family는 Helvetica 를 사용하고 있습니다. 영어는 Times-new-roman을 사용하고 있습니다.
2. 공간이 약간 미리보기와 상이한 현상
적용 중인 코드도 보내드립니다!
Core.FontStore.registerFonts('resources/fontsConfig.json'); const coreReport = new Core.PageReport(); const report = await loadReport(); report.DataSources[0].ConnectionProperties.ConnectString = 'jsondata=' + JSON.stringify(pdfData); await coreReport.load(report); const doc = await coreReport.run(); const result = await PdfExport.exportDocument(doc, {} as PdfExport.PdfSettings); result.download('asd');
댓글목록
등록된 댓글이 없습니다.