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
0 answers

Render HTML data while generating PDF using PDFkit in nodejs

I need to generate a PDF file using 'PDFkit' library. Data is retreived from MySQL DB, some of the data contains HTML content. while rendering HTML data to PDF using 'html-to-text' library some of the tags are not rendered. Ex: em,strong tags. Below…
2
votes
1 answer

Asp.Net Sending PDF to browser

I've been trying to get this aspx page to serve up a pdf. It works correctly in Firefox, but IE gives Internet Explorer cannot download getform.aspx from SERVER_NAME Internet Explorer was not able to open this Internet site. The requested site…
user47589
2
votes
0 answers

Is there in library in Apache PySpark to convert html to pdf?

I'm trying to use a PySpark notebook in Microsoft Azure Synapse to convert an HTML string to a pdf. I have found multiple library’s such as "weasyprint", "wkhtmltopdf", "wkhtml2pdf", and "pdfkit" that work in python but aren't available in…
Reece
  • 21
  • 1
2
votes
0 answers

Docker Alpine wkhtmltopdf Chinese / Thai Characters Display Incorrectly

We're working to convert a PHP docker image from Ubuntu to Alpine to reduce the image size, remove unnecessary dependencies and decrease built time. Due to the version of PHP we need to support, we can only use Alpine 3.10 for the moment. One of the…
Alex Bailey
  • 1,260
  • 12
  • 27
2
votes
1 answer

jsPDF not rendering tamil text properly

I am trying to generated invoice in tamil text using JSPDF with React-js. I have created a application which has print button and upon clicking it should generate PDF which I have described inside generateBill. I have added entire code in App.js…
2
votes
1 answer

Vector graphics with ITextSharp

I have heard that ITextSharp does not have support for the JAVA2D class, does this mean that i cant import vector points from a clients databas to "print" to a ITextSharp application? I would relly like to find answer to this before going further…
2
votes
0 answers

How to display table header in every page using GO FPDF(https://github.com/jung-kurt/gofpdf) library?

I'm using the go https://github.com/jung-kurt/gofpdf library to generate a pdf with a table which contains large number of rows . But when it exceeds one page,the page header will not be added to the remaining pages. Is there anyway where I can…
Hash934
  • 87
  • 1
  • 11
2
votes
1 answer

Open PDF In SwiftUI

I am making PDF using TPPDF library. This makes the PDF fine and returns a URL which is like this: pdfURL =…
Taimoor Arif
  • 750
  • 3
  • 19
2
votes
1 answer

Create an Image or PdfTemplate from a PDF file

While using the itextsharp library for pdf generation, I came across this method:- iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance(itextsharp.text.pdf.PdfTemplate); Where, we can get Image instance from a PdfTemplate. But, I don't…
teenup
  • 7,459
  • 13
  • 63
  • 122
2
votes
2 answers

Password Protected PDF cannot be opened DOMPDF in PHP

I created the password protection using the following code, $dompdf = new Dompdf(array('enable_remote' => true)); $dompdf->loadHtml($html_print); #(Optional) Setup the paper size and orientation $dompdf->setPaper('A4', 'landscape'); #Render the HTML…
mob_web_dev
  • 2,342
  • 1
  • 20
  • 42
2
votes
0 answers

reportlab switching pageTemplate not happening properly

I am trying to change the page template dynamically using the onPage callback for the PageTemplate using handle_nextPageTemplate method. If you look at the generated PDF, the second page does not get the correct PageTemplate switch…
Ronak SHAH
  • 171
  • 2
  • 11
2
votes
1 answer

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 q 1.0 1.0 1.0 rg f Q q 1.0 0 0 1.0 0 0 cm /Div <> BDC q …
Ivan Kuckir
  • 2,327
  • 3
  • 27
  • 46
2
votes
1 answer

QuestPDF: Can you display Datatables using the Table element and generate a pdf with it without using the previewer?

I'm fairly still a beginner in development, so bear with me please (and sorry for any confusion on my part, it's been a long day). I'm having some issues right now with trying out QuestPDF to see if it's going to work for me, for a particular…
Mikayla
  • 21
  • 2
2
votes
4 answers

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, want to download as single page). Question: i don't want to split the page upon download as multiple…
EaBengaluru
  • 131
  • 2
  • 17
  • 59
2
votes
0 answers

determine text length in apache fop?

I'm generating some PDFs and sometimes the User Input is too long to fit into a table cell. So at certain spots, I just truncated Strings longer than x characters. But that is always a guess. Is there any way to figure out what size a certain text…
EasterBunnyBugSmasher
  • 1,507
  • 2
  • 15
  • 34
1 2 3
99
100