Questions tagged [pdf-generation]

PDF generation is the process of creating a PDF document using various tools or libraries.

Use this tag for any programming-related question concerning the creation of PDF files, be it with a 3rd-party library or tools like PDF printers or PDF converters, or PDF authoring applications.

Questions asking us to recommend or find a tool, library or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam.

Related tags: ,

7433 questions
2
votes
1 answer

R Markdown missing plots when I print to PDF from xaringan

This stackoverflow solution describes a method (through the xaringanBuilder package) to build your xaringan slides to various formats (html, pdf, pptx, etc). Unfortunately, it doesn't solve the issue I'm having: --- title: "Presentation…
jophuh
  • 111
  • 7
2
votes
1 answer

How can I create PDF/X-3:2002 compliant PDF files from Delphi?

From my Delphi application I require to create a PDF document that is PDF/X-3:2002 compliant. This is a strict requirement of the client as the PDF files are going to be printed in a printing press. I have wPDF but it does not support. (Please see:…
user896166
2
votes
1 answer

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_appearances_writer(writer: PdfFileWriter): # See 12.7.2 and 7.7.2 for more…
varun
  • 27
  • 7
2
votes
0 answers

React PDF Rendering, SSR or Client to Server

Can anyone recommend a method to render a pdf with images and fonts, preferably with React? My goal is to render a custom pdf with an image of a company logo and a dynamic html table, once a button is pressed in my react frontend. Ideally the PDF is…
2
votes
1 answer

React render PDF file inside component based on API response

I have an APIs which returns File(byte[], "application/pdf") | byte[] from server. In the frontend part, I create a request and can save this file like a pdf file to a computer, but I need to store this file(State or some other way) and render…
Solty
  • 53
  • 1
  • 8
2
votes
1 answer

How do I break line at the range on ReportLab?

I am trying to write text on a PDF file but if the line is bigger than the page size it overflows and doesn't automatically go to the next line. How do I provide a range when the line overflows and automatically break the text to the next…
Mehadi
  • 85
  • 8
2
votes
2 answers

pdfmake: How to set the height for all rows?

I want to set the row height for all the rows in my table. I am currently specifying my styles like this: table: { widths: ['33%', '34%', '33%'], heights: [40, 40], headerRows: 1, That works very well if I have a known amount of rows,…
Luke_KS
  • 123
  • 2
  • 11
2
votes
1 answer

Fill pdf form image field with image

I have tried to use pdftk to fill a PDF form with text and images. Filling out text fields works fine, but it cant seem to add an image to an PDF form image field. Is there any way to add an image to a form field with pdftk ? Or any other way to do…
Vindur
  • 364
  • 3
  • 12
2
votes
1 answer

How to set a header in the same place across different pages by using WeasyPrint?

we are using WeasyPrint version: 53.4 & Python version: 3.9.1 to generate PDF from html template. But we are facing a problem in the running header alignment after the first page. It exactly same as the issue, and solution for that problem not…
Makesh
  • 335
  • 4
  • 15
2
votes
0 answers

Laravel 7 pdf, This page isn’t working and is currently unable to handle this request. HTTP ERROR 500

My Laravel 7 application PDF was working perfectly on localhost but on the internet server it gives me this error -> This page isn’t working and is currently unable to handle this request. HTTP ERROR 500. Each time I download it back to the local…
2
votes
3 answers

how to write superscript in pdf?

I have to edit 1st in pdf but i don't know how to do can anyone please help me out For example; Like this 1st Is there any shortcut for the superscript in pdf. please help me out. Thanks
Mr.T.K
  • 2,318
  • 6
  • 26
  • 42
2
votes
3 answers

How to give Background to pdf by dompdf?

I m using Dompdf to convert Html Page to PDF. As client's requirement pdf should have watermark image at background of document. I have tried many ways in coding and also differnt css style but its not helpful. Is anybody has any idea about it?…
Pranoti
  • 93
  • 1
  • 2
  • 8
2
votes
2 answers

How can I create a pdf for download in blazor wasm

In a blazor wasm, I want to create a pdf and make it downloadable. I tested pdfflow, but was only able to make it run in a console application. There are several commercial solutions (devexpress, syncfusion), but they are really expensive. Next, I…
Flippowitsch
  • 315
  • 3
  • 15
2
votes
1 answer

FlyingSaucer with openpdf doesn't render flex box correctly

I want to render a PDF document using latest FLyingSaucer build.gradle: implementation 'org.xhtmlrenderer:flying-saucer-pdf-openpdf:9.1.22' Input HTML document (almost a copy from W3 schools):