import { pdfService } from '@kit.PDFKit';
let pdfDocument = new pdfService.PdfDocument();
// 沙箱路径
let tempFilePath = '/data/storage/el2/base/temp/test.pdf';
// 加载文件
let loadResult = pdfDocument.loadDocument(tempFilePath, '');
pdfDocument.releaseDocument();