Skip to content

Commit aefeed1

Browse files
committed
Fix testing lines
1 parent 41718c0 commit aefeed1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

src/core/pdf/pdf-handler.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)