cleaned up node server

This commit is contained in:
Saud Fatayerji
2023-10-26 21:53:02 +03:00
parent 02f98fb378
commit 13c4f664c2
24 changed files with 181 additions and 1261 deletions

View File

@@ -1,4 +1,7 @@
export async function scaleContent(snapshot, scaleFactor, PDFLib) {
import PDFLib from 'pdf-lib';
export async function scaleContent(snapshot, scaleFactor) {
// Load the original PDF file
const pdfDoc = await PDFLib.PDFDocument.load(snapshot, {
parseSpeed: PDFLib.ParseSpeeds.Fastest,