Questions tagged [html-to-pdf]

For questions related to conversion of HTML pages to PDF files

Questions related to conversion of HTML pages to PDF files

638 questions
8
votes
2 answers

mPDF error: Unable to create output file

I am Using mPDF to generate pdf from an html. On my localhost the pdf is generated to the located directory successfully. But not on Server, although I have open the permissions of that directory. chmod -R 0777 /mydirectory Found this comment from…
Fahad Khan
  • 1,635
  • 4
  • 23
  • 37
7
votes
4 answers

convert html to pdf - page break splits text

I tried to generate a PDF-file from a HTML/CSS-document by using the api of pdflayer.com. So far so good. everything worked fine. But there is one issue. If there is a page break, a line sometimes gets split like in the photo: is there a way to get…
Bernhard
  • 1,852
  • 11
  • 19
7
votes
3 answers

How to customize header cell in PDF using jsPDF-AutoTable plugin?

I encountered strange bug when tried to convert HTML to pdf using jsPDF-AutoTable plugin. According to official Github page there is possibility to customize any headerCell and ordinary cell by using createdHeaderCell and createdCell hooks. I used…
user2771704
  • 5,994
  • 6
  • 37
  • 38
7
votes
1 answer

How to convert a simple html to pdf using wkhtmltopdf?

Here is what I did: Created a linux virtual machine in the Amazon cloud. Followed the instructions from https://code.google.com/p/wkhtmltopdf/wiki/compilation to download and compile the source code of wkhtmltopdf-qt and of wkhtmltopdf. In the end…
mark
  • 59,016
  • 79
  • 296
  • 580
6
votes
1 answer

HTML to PDF using ironPDF getting error "access to the path 'IronPdf.ChromeRenderingEngine.dll' is denied." in C#

We are using ironPDF to convert our document into PDF, it was working fine and was converting our documents (HTML) to PDF seamlessly in localhost, and after confirming everything we have bought a license of 1 year and uploaded the code to…
Chandresh Khambhayata
  • 1,748
  • 2
  • 31
  • 60
6
votes
4 answers

How do I convert with Angular: HTML into PDF

I'm using Angular and I wanna convert a table from html into pdf, this is my code in component.ts: downloadPDF() { const doc = new jsPDF(); const specialElememtHandlers = { '#editor'(element, renderer) { return true; …
Sternisic
  • 123
  • 1
  • 2
  • 10
6
votes
1 answer

Adding CSS file to SelectPdf converter

How can I add/introduce a CSS file to SelectPdf converter? I've used SelectPdf library for converting HTML string to PDF file. my CSS file is in cssFilePath public byte[] Create(string htmlString) { string cssFilePath =…
x19
  • 8,277
  • 15
  • 68
  • 126
6
votes
2 answers

pdfkit - An A4 html page does not print into an A4 pdf

I have reproduced my problem below : I draw a 210x297 rectangle on a web page
Laurent
  • 61
  • 1
  • 3
6
votes
5 answers

RuntimeWorkerException: Invalid nested tag head found, expected closing tag meta

I'm using iText in order to convert html into a pdf, but I keep getting a RuntimeWorkerException thrown at parseXHtml. Here's my code: Document tempDoc = new Document(); PdfWriter pdfWriter = PdfWriter.getInstance(tempDoc,…
Drazen Bjelovuk
  • 5,201
  • 5
  • 37
  • 64
5
votes
1 answer

wkhtmltopdf vs fpdf and questions regarding use and performance (HTML to PDF)

I have not been able to find answers to my questions on the several posts about the same topic, that is why I will be asking more specific questions here. My questions are about wkhtmltopdf and fpdf. I need one of those to create 1 page invoices…
Mike
  • 51
  • 1
  • 2
5
votes
3 answers

Absolute position when converting HTML to PDF with iTextSharp

I am using iTextSharp to convert HTML to PDF and it doesn't seem to work with absolutely positioned elements. For example I have this HTML file:

Hello…

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
5
votes
1 answer

How to fit html page on a4 size page using html2canvas

I have been working for days to fix this but I couldn't maybe because of lack of knowledge of html2canva or it is doesn't want to be fixed. What only I want is to fit my pdf on a single page with a4 size but it always rendered on two pages. Don't…
Nitin Saini
  • 507
  • 2
  • 10
  • 26
5
votes
2 answers

React Native Error: RNHTMLtoPDF error: Could not create folder structure

Development Environment System: OS: macOS 10.15.4 CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz Memory: 248.71 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 13.2.0 - /usr/local/bin/node Yarn: 1.22.4 -…
Dharmik
  • 2,325
  • 3
  • 27
  • 37
5
votes
2 answers

How to get the finalY of lastAutoTable in jspdf-autoTable

I am using angular 9.I have a requirement to convert a html table with some content above and below the table into pdf. I am using jspdf-autotable.I followed the examples in the link…
aish.a
  • 176
  • 1
  • 7
5
votes
2 answers

Render custom HTML markup inside pdf document using react-pdf/render library

I am trying to render HTML inside the / component while rendering the PDF inside the using a Template. I'd like to render my custom HTML Markup code shown below in my pdf

Pre Interview…

arjun bollam
  • 127
  • 1
  • 10
1
2
3
42 43