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

expertPDF function GetPdfDocumentObjectFromHtmlString returns error "Conversion error: Webkit Navigation timeout"

I am using expertpdf library to convert an html page in pdf and the function is giving error "WebKit Navigation timeout". public void ConvertHTMLStringToPDF(string compHTML) { var isIE8 = Request.Browser.Browser == "IE" &&…
Samreen
  • 23
  • 6
2
votes
2 answers

react-native 'react-native-html-to-pdf' Warning

I'm using a 'react-native-html-to-pdf' library. I used it exactly like the example, but I get an error. Warning Possible Unhandled Promise Rejection(id: 0): TypeError: Cannot read property 'convert' of undefined TypeError: Cannot read property…
김회준
  • 149
  • 3
  • 13
2
votes
0 answers

IText - Calculating Width of Elements and Text inside TagWorkers

I am currently using IText7 to convert a HTML file to PDF. Due to the nature of the app, each line of text in a paragraph is required to be stored on an individual line inside it's own div container, this causes issues justifying the paragraph as a…
LozBlake15
  • 221
  • 2
  • 3
  • 13
2
votes
1 answer

How to load Emoji icons using this library TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerator when converting HTML to PDF in c#?

When i am trying to generate the PDF using HTML text that contains some Emoji icon throws an error ? Here is my sample input HTML:
Dipak Patel
  • 79
  • 1
  • 5
2
votes
1 answer

HTML to PDF converter using PHP

I work on one project, I used html2pdf by spipu but unfortunately I encountered problems at the end, such as problems with pictures and also rendering. My question is what would you recommend if I want to convert the automatically generated html…
Peter
  • 33
  • 1
  • 4
2
votes
2 answers

Processing of Converting the html to PDF takes a lot of time by using DinkToPdf library

Processing of Converting the html to PDF takes a long time by using DinkToPdf library, when this line of code runs: ConverterToPdf.Convert(pdf) How can I solve this problem? public byte[] ConvertReportToPDFAsync() where TViewModel :…
x19
  • 8,277
  • 15
  • 68
  • 126
2
votes
0 answers

wkhtmltopdf | Nested Table HTML to PDF | Blank Space issue

We are using nested table . While converting html to pdf with the help of wkhtmltopdf we are facing blank space problem. There are some scenarios which I would like to discuss which is based on table line items. When table line items is less…
Pankaj Pawar
  • 76
  • 1
  • 9
2
votes
0 answers

How to save JSPDF generated pdf in Angular assets folder?

I want to download my JSPDF generated PDF on Angular's assets folder. By default is getting downloaded in programs folder in disk-E. What should I need to change in my code. Here is my code: private download(): void { var pdf = new jsPDF("p",…
Vijay Sharma
  • 342
  • 4
  • 15
2
votes
0 answers

Azure Function error Unable to load DLL

Problem I am trying to create a azure function to create html to pdf. It runs locally perfectly fine but when I deployed it to azure function It shoes me the error Error Unable to load DLL 'libwkhtmltox' or one of its dependencies: The specified…
Malik Kashmiri
  • 5,741
  • 11
  • 44
  • 80
2
votes
3 answers

Google Script - Conversion from text/html to application/pdf failed

I have a custom Google Script with a simple logic: it looks up parts from the spreadsheet and builds an in-memory HTML string, then I call the following code to produce the PDF. var blob = Utilities.newBlob(html_body,…
Ado
  • 21
  • 3
2
votes
1 answer

htmlToImage Chrome 64 SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

The new Chrome 64 security update seems to have broken the htmlToImage libraries. None of the styling is correctly calculated and is rendered as if no styling was applied at all. Does anyone know of a workaround / fix? Do I need to put my CSS on…
mcottingham
  • 1,926
  • 2
  • 18
  • 28
2
votes
1 answer

print vueJS component or convert to pdf

I have a vueJS component that I want to print. However, when I use the standard print dialog I lose all the CSS and basically only have plain text. I have also tried Printd. My code is along the lines of: mounted () { this.cssText = ` …
KaffeeKaethe
  • 301
  • 1
  • 3
  • 10
2
votes
0 answers

Wrapping a Table onto a new page with SelectPDF

I'm using SelectPDF's HTML to PDF converter to generate a PDF based on an HTML document containing a wide table of data. I'd like this table to wrap onto a second page (or Nth) page if needed, but instead SelectPDF squeezes the table into the space…
Jason Jackson
  • 17,016
  • 8
  • 49
  • 74
2
votes
1 answer

How to view PDF document in MVC and not download it directly?

I have a link on click on it an HTML page will be converted to PDF document then return this PDF file to the user. HTML code:
  • ViewReceipt
  • Code…
    Noor Allan
    • 421
    • 2
    • 7
    • 17
    2
    votes
    1 answer

    CSS is lost when converting HTML to PDF in Google Apps Script

    I have HTML files located in a Google Drive folder. I am trying to get the files, read content, convert to PDF and then save to the same folder. The whole flow works fine, but most of the HTML formatting is lost (like fonts etc). Is there a way to…
    Ergun
    • 458
    • 1
    • 8
    • 21