I am having trouble generating and opening a PDF file in my NodeJs server. I used PDFKit to create the PDF file, following the code in the documentation: const doc = new PDFDocument({}); doc.text("Test"); const writeStream = fs.createWriteStream("MyTest.p ...
Currently, I am working on using PDFkit along with node.js for converting an HTML webpage into a PDF format. The HTML page contains multiple image tags within the body tag. Unfortunately, when I convert the HTML to PDF, the resulting page appears complete ...
Currently, I'm utilizing the pdfkit node module for creating a PDF. However, I am facing an issue where I need to place text on a dashed line. Below is the code snippet I am using: doc.moveDown(2) .moveTo(x+leftMargin, doc.y) .lineTo( ...