tambahannnya

This commit is contained in:
bipproduction
2025-02-15 21:56:18 +08:00
parent 00355814bc
commit 2115af8126
84 changed files with 2189 additions and 320 deletions

11
xcoba.ts Normal file
View File

@@ -0,0 +1,11 @@
import path from 'path';
import fs from 'fs';
import { compress } from 'compress-pdf';
(async () => {
const pdf = path.resolve("/Users/bip/Downloads", 'komoditas.pdf');
const buffer = await compress(pdf);
const compressedPdf = path.resolve(__dirname, 'compressed_pdf.pdf');
await fs.promises.writeFile(compressedPdf, buffer);
})();