Category "pdf-generation"

Hebrew characters are printed in reverse order in iText 7

I'm using iText 7 for printing some text in List (in Hebrew) to PDF file, but while printing the Hebrew characters are printed in a reverse way. The input given

Stop script from creating PDF duplicates

I'm new to the coding thing but I've been able to write a script that will take info from a spreadsheet and turn it into a PDF. The trouble I'm having now is tr

PDF commands - does the q - Q save the path?

My PDF file contains following commands: 1.0 0 0 -1.0 0 810.0 cm 1.0 0 0 1.0 0 0 cm 1.0 0 0 1.0 9.0 9.0 cm -9.0 -9.0 m 621.0 -9.0 l 621.0 801.0 l -9.0 801.0 l h

How to find exact length of pixel in mm

I am using an HTML, CSS, js template, and converting it to pdf with the android app. I had a problem detecting when will next page break so I can put an element

PDF font size issue using HTML with Puppeteer

I am trying to generate a PDF in browser(chrome v8) using HTML by sending it to puppeteer. The html is getting generated using ejs since there is dynamic conte

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

I tried to use MPDF library for generating PDF. try { $mpdf = new \Mpdf\Mpdf(); $mpdf->WriteHTML('Hello World'); // Other code

Replace Text into an existing PDF document in a specific positions in JavaScript & Asp.net MVC?

I have an existing 20-page pdf file. I need to extract data from our database and incorporate it into a pdf document for specific positions. I did research on G

How does a e-signature over PDF software works?

I want to replicate the core functionality of an e-signature software such as DocuSign, HelloSign or SignRequest. Everything is clear to me, but I have a hard t

With html2pdf in generated pdf as all css styles are lost

In my laravel 5.7 / bootstrap 4.4 app I use spatie/browsershot 3.37 and spipu/html2pdf 5.2 to generate pdf file and for my generated pdf file want I set layout

I want to convert base64 string of a Word doc to a base64 string of PDF in JavaScript/Angular 9

I am using the docx library to generate a Word document (.docx) on the client side (Angular 9). I also want to be able to save the file as a pdf. I can get a ba

Styling List with React PDF

I have created a small React app to test out React PDF. When the download link is clicked it creates the pdf as intended. My problem is that I have created a Di

PyMuPDF insert image at bottom

I'm trying to read a PDF and insert an image at bottom(Footer) of each page in PDF. I've tried with PyMuPDF library. Problem: Whatever the Rect (height, width)

Fill PDF form values using PyPDF2 multiple pages but getting same and duplicate data on all pages of pdf

I have used this below code. from PyPDF2 import PdfFileWriter, PdfFileReader from PyPDF2.generic import BooleanObject, NameObject, IndirectObject def set_need

poppler pdfunite cannot merge encrypted PDF files, how to remove encryption? (no password needed to open)

I have some PDF files which I want to merge into one. I typically use pdfunite from the Poppler PDF toolkit to do this. However now I'm getting this error: Cou

I want to generate page as a single pdf file without page break

Hi i want to generate a pdf of big page as one single file without page break. Below image shows page break upon download(that i want to avoid

How do I replace a string in a PDF file using NodeJS?

I have a template PDF file, and I want to replace some marker strings to generate new PDF files and save them. What's the best/simplest way to do this? I don't

How can I get a URI from ApexCharts to download in PDF?

I already implemented an ApexCharts and want to output it into a PDF document. I tried to get a download URI from chart.dataURI, but it failed with an error: c

How do you pass a generated PDF to an API as an IO stream without writing it to disk?

I am using PyPDF2 to generate a PDF, and I would like to upload this PDF to Cloudinary, which accepts images as IO objects. The example from their docs: cloudin

Invalid characters while converting API response to PDF

I used the following syntax for my GET request var response = await http.get(Uri.parse(url), headers: { "Content-Type": "application/pdf", 'Authorizatio

How to modify the first pageNumber or execute JS in header or footer template with Chrome DevTools Protocol's printToPDF

I'm using Headless Chrome to print out PDF files by using the printToPDF CDP method. If we set displayHeaderFooter parameter to true, then we can set specific p