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

Puppeteer optimalization

I have a web app that generates quite large PDF documents, possibly 100 pages and more. The workflow is this: Generate html using nunjucks templates Open a puppeteer browser Create PDF front page (see code below) Create PDF pages Merge the pages to…
Chris Eikrem
  • 496
  • 1
  • 5
  • 20
3
votes
0 answers

How to render Rich text editor data in react pdf viewer

I am using React-pdf to show a pdf viewer from html on my website. I can easily show the rich text editor value in HTML. But can't show it in pdf viewer using react-pdf. In HTML I just used below code to retrieve data from rich text editor.
jobaer sourav
  • 87
  • 1
  • 8
3
votes
1 answer

Html to Pdf with german alphabet

I'm using openhtmltopdf to transform html to pdf. Currently I'm getting an exception if the html contains german characters, like for example ä,ö,ü. PdfRendererBuilder builder = new PdfRendererBuilder(); builder.useFastMode(); …
Neo
  • 1,337
  • 4
  • 21
  • 50
3
votes
1 answer

IText7 html2pdf fixed footer using CSS

I am currently trying to convert HTML to PDF using itext7 and itext7.pdfhtml but have a small problem. I have a fixed footer (.footer) which works well when opened with a browser but when converted using below code, the div is not fixed to the…
drinu16
  • 775
  • 2
  • 11
  • 25
3
votes
3 answers

java.lang.NoClassDefFoundError: com/itextpdf/kernel/counter/event/IMetaInfo

I'm new to Java, I'm working on generating pdf from html. Therefore, I'm using the iText7, I can generate a normal pdf file through PdfWriter and Document but I can't do it using html2pdf. Here is my Pom.xml
Nick
  • 419
  • 9
  • 19
3
votes
2 answers

TCPDF weird issue in CakePHP

I am having a formatting issue with PDF generation with TCPDF in CakePHP. It doesn't show the exact table & div structure as there in HTML. Does anyone know the solution for it? Thanks in advance.
Rikesh
  • 26,156
  • 14
  • 79
  • 87
3
votes
3 answers

Export To Pdf angular 6

I want to export my HTML page into pdf using angular 6. I have written following code to convert into pdf let dataPdf = document.getElementById('contentToPrint'); const pdf = new jspdf('p', 'pt',…
Harshit kyal
  • 365
  • 1
  • 5
  • 24
3
votes
1 answer

unwanted space in tr wkhtmltopdf

wkhtmltopdf version(s) affected: wkhtmltox-0.12.5-1.msvc2015-win64 Getting unwanted space in TR check attached snapshot for clarification. Issue appears when we use div inside td.
Pankaj Pawar
  • 76
  • 1
  • 9
3
votes
2 answers

Unicode character Issue - openhtmltopdf library

I use openhtmltopdf library (version: 0.0.1-RC15). I have a problem with unicode characters. In PDF file I see "#" symbols instead of "ă" and "ș". How I can fix it? Thank you.
Taras Melnyk
  • 3,057
  • 3
  • 38
  • 34
3
votes
1 answer

Some HTML and CSS styles not applied when creating PDF document by iText

I'm having an issue with iText when generating PDF from HTML. I'm passing the "import information section" from Locize, which contains bold tags and list bullet
  • \n Toll-free (within Canada and the USA): …
  • Julie C.
    • 629
    • 2
    • 11
    • 20
    3
    votes
    1 answer

    htmlConverter in itext7 closes the pdf document before I want it to be closed in C#

    I'm using iText7 to convert from HTML to PDF which runs perfectly however this call: HtmlConverter.ConvertToPdf(htmlStream, document); will close the document after it's called but I don't want to close the document yet for the following reason…
    II Basil II
    • 87
    • 2
    • 10
    3
    votes
    0 answers

    Save PDF to specific folder using JSPDF (JavaScript)

    I'm using JSPDF to convert HTML to pdf and I want to send it over email. For that, I need to store the file in the folder. But I'm not able to store it on the folder as "jspdf.save('filename.pdf')" does not give option for path. var pdf = new…
    user8107512
    3
    votes
    1 answer

    Using rotativa in Asp.net Core 1.0 app but not Working

    I want to use Rotativa in my application, but when I include "Rotativa in my project.json file. The package console shows Restoring packages failed and the error is: The Dependency Rotativa 1.6.4 does not support framework…
    Fahad
    • 128
    • 1
    • 3
    • 12
    3
    votes
    1 answer

    ExpertPdf Conversion error: WebKit Navigation timeout in GetPdfBytesFromUrl

    I am working on upgrading a .NET application without changing its functionality. What I did so far is: upgrading from mvc 2 to mvc 4 upgrading from framework 3.5 to 4.0 using visual studio 2015 instead of 2010 upgrading the custom made utilities…
    LAN
    • 55
    • 1
    • 9
    3
    votes
    3 answers

    Tips to reduce PDF file which is generated using EVO HTML to PDF converter dll

    I am using EVO PDF dll to generate PDF from HTML, but I ma facing problem of large size of the generated PDF file. This HTML contain contains few JPEG images too, I tried compression option in evo but still file size is still High. If the Original…
    Sagar Shirke
    • 648
    • 9
    • 32