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
2
votes
1 answer

IronPdf - How to make headers and footers not cover page content when converting HTML to PDF?

I am using IronPdf to generate Pdf files from HTML content and the issue I have is that when I try to add headers and footers to the document they cover some of the page contents. I know that I can set page margins in the size of header and footer…
Deimos
  • 21
  • 1
  • 4
2
votes
0 answers

wkhtmltopdf Tool - Texts/Fonts are cutting at the end of the page with wkhtmltopdf latest version 0.12.6 (with patched qt)

We need solution using wkhtmltopdf tool only as per our reqirement. We do not need to use any other tool to convert. We are generating pdf file with wkhtmltopdf tool, and we are using latest version 0.12.6 (with patched qt). But generated pdf…
2
votes
0 answers

How to control page breaks with react-native-html-to-pdf?

I am generating a pdf document using react-native-html-to-pdf. When the document contains a long list of elements it is possible for some elements to span two pages within the same document. For example this simple html: …
gburnett
  • 755
  • 8
  • 18
2
votes
3 answers

Html to pdf asp.net mvc

I am trying to find a library/tool that would allow me to generate PDF from MVC views. Any ideas, suggestions? Regards
sTodorov
  • 5,435
  • 5
  • 35
  • 55
2
votes
1 answer

HtmlRendererCore.PdfSharpCore Version 1.0.1 "No appropriate font found."

Getting exception: No appropriate font found. while converting HTML to PDF using HtmlRendererCore.PdfSharpCore (Version 1.0.1) package, at this line: var pdf = PdfGenerator.GeneratePdf(HTML, PageSize.A4,0);
2
votes
0 answers

Convert html + css including grid layout to .pdf using php

Is there a way to generate .pdf files out of html+css which uses grid layout (display: grid;) using php? All the common libraries I know do not support css grid, like: Spipu\Html2Pdf\Html2Pdf mikehaertl\wkhtmlto\Pdf Dompdf\Dompdf
2
votes
1 answer

Devexpress RichEditDocumentServer HtmlText property not properly formatting CSS (width, padding, margin) .NET Framework 4.7.2

Having an issue where I'm using DevExpress RichEditDocument server and the .HtmlText property being used to convert HTML to a PDF document. The base html and some styles get applied, however styles like width, padding, margins are not being applied.…
jhughes
  • 21
  • 2
2
votes
1 answer

Image not displaying in pdf generated by wkhtmltoxsharp wrapper for wkhtmltopdf

I am using the WkHtmlToXSharp wrapper for wkhtmltopdf converter. Text in the supplied html is successfully displayed in the generated pdf. But images are not showing. Then I changed the relative image path to absolute one with: But this is still…
Sangam Uprety
  • 1,482
  • 2
  • 20
  • 38
2
votes
1 answer

html2pdf not respecting div width and height explicitly set

I am building my div element and putting it inside the html2pdf library (link) when I generate the PDF. I am generating the size for the div element with such JS logic: switch (sizeSelected) { case '3x5': canvasSizeObj.width = 288; …
Zach Smith
  • 5,490
  • 26
  • 84
  • 139
2
votes
0 answers

How to generate header and footer across all the pages of HTML generated PDF file?

While trying to generate a PDF file using HTML template, Weasyprint and Python, I am unable to generate a common header a footer across all the pages of the file. Is there a way to populate header and footer in all the pages without using Javascript…
nutcase
  • 21
  • 3
2
votes
0 answers

Export HTML to PDF with Japanese Characters

The output says that PDF is corrupted or Failed to load PDF. How to fix this? Is there something wrong with the blob? I checked the blob and it returns blob:null/alphanumeric function ExportPDF(elem, filename='') { var blob = new Blob([html],…
maria
  • 21
  • 2
2
votes
1 answer

Multi Columns CSS for rendering PDF in wkhtmltopdf

I am trying to creating PDF from html using wkhtmltopdf libraray (https://github.com/wkhtmltopdf/wkhtmltopdf) But ihave issue in creating two column pdf like newparers . This issue is listed in a number of Posts, However, no solution is…
tajinder singh
  • 113
  • 1
  • 10
2
votes
0 answers

How to convert HTML to pdf and download in external storage (Android&IOS) react-native?

I am working on react-native latest version. I am try a convent html to pdf using this library react-native-html-to-pdf. But getting lots of error after installation. Errors: Execution failed for task ':app:checkDebugDuplicateClasses'. > 1…
Harleen Kaur Arora
  • 1,949
  • 2
  • 23
  • 55
2
votes
0 answers

How to add image to header in wkhtmltopdf using pdfkit?

I am new to wkhtmltopdf. I am searching on web since last 3-4 hours but got nothing. How can I add image to header.I am doing this by using pdfkit , python 3.6 I tried this import pdfkit as pk options = { 'header-center': 'Header', …
2
votes
1 answer

Error converting HTML text to a pdf file using itextsharp in asp.net

I am using the following code to convert contents in Editor(Ajax control) to pdf, using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.IO; using iTextSharp.text.html.simpleparser; using…
Ishan
  • 4,008
  • 32
  • 90
  • 153