File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " pdf-interpolator" ,
3- "version" : " 0.2.0 " ,
3+ "version" : " 0.2.1 " ,
44 "description" : " Desktop application to replace text in PDFs using spreadsheet data" ,
55 "main" : " ./out/main/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -50,12 +50,7 @@ export async function loadPDF(filePath: string): Promise<PDFDocument> {
5050 console . warn ( '[PDF Handler] Failed to find best trailer:' , error ) ;
5151 }
5252
53- // One write/load cycle to ensure the PDF is fully loaded
54- const fixedBytes = await pdfDoc . save ( { useObjectStreams : false } ) ;
55- await writeFile ( '/Users/bjoern/Downloads/clean_8.pdf' , fixedBytes ) ;
56- const fixedPdfDoc = await PDFDocument . load ( fixedBytes ) ;
57-
58- return fixedPdfDoc ;
53+ return pdfDoc ;
5954 } catch ( error ) {
6055 if ( error instanceof Error ) {
6156 throw new PDFLoadError ( error . message , filePath ) ;
You can’t perform that action at this time.
0 commit comments