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

itextsharp html to pdf - table border not working

I am creating a page with TinyMCE editor and I need to convert content of editor into a PDF. I am loading the editor with default content which contins

and

tags and one . I have tried to apply border to
and it is working but if…
GMD
  • 761
  • 5
  • 21
3
votes
3 answers

ASP.NET - PDF Component in Medium Trust

Can anyone recommend some ASP.NET-compatible PDF Components that work in a medium trust environment? I read that ITextSharp works well, but coming from ABCPdf and ASPPdf, the thought of compiling the entire PDF in code is very daunting. Ideally I'd…
Nathan Taylor
  • 24,423
  • 19
  • 99
  • 156
3
votes
3 answers

Rotate text with flying saucer to pdf

I´m using flying saucer and itext to convert html to pdf, in the order to write text in vertical orientation, i try the simple css: style="writing-mode: tb-rl"; the transform rotations for browsers: transform: rotate(270deg)!important; …
lfals
  • 61
  • 2
  • 5
3
votes
2 answers

wkhtmltopdf - Converting SVG created by AJAX to PDF

I am working on an application that converts HTML and SVG charts, generated with d3.js, to PDF. The charts are rendered through AJAX calls after the page loads. I am working with wkhtmltopdf 0.9.6 which seems to do a great job converting static…
user2300061
  • 171
  • 7
3
votes
2 answers

Namespace or type specified in the Imports 'iTextSharp.text.SimpleTable' error

I am using Visual Studio Pro 2005 trying to access iTextSharp.dll to convert HTML to PDF. The problem is that VS will not recognize the DLL returning this message: "Namespace or type specified in the Imports 'iTextSharp.text' doesn't contain any…
user2142159
  • 31
  • 1
  • 2
3
votes
1 answer

How to integrate wkhtmltopdf into my java webapplication?

I am trying to generate PDF document from HTML using wkhtmltopdf. But I am not able to figure out how to integrate wkhtmltopdf into my webapplication as there are no jar files in the tar file provided by the author. Can someone help me to set up…
SRy
  • 2,901
  • 8
  • 36
  • 57
3
votes
2 answers

How To convert a large table to PDF using flying saucer?

I have a html with large number of columns(you can find the sample at this link) Now When I try to convert it to PDF using flying saucer(jar link recompiled to work with iText 2.1.X), the generated PDF has truncated Columns Is there some way to make…
Ankur
  • 12,676
  • 7
  • 37
  • 67
3
votes
3 answers

Best Java lib for programmatically converting a HTML page to an Image/PDF

I am looking for the best Java lib which I can pass in a URL and have it create an image of what the web page looks like as it would in a browser. I tried out flyingsaucer however it seems like almost every web page breaks it -- it wont even render…
empire29
  • 3,729
  • 6
  • 45
  • 71
2
votes
0 answers

html-pdf library did not create pdf on heroku server

This code collects data from Airtable, and creates pdf file to download. It works perfectly on my localhost. But when I deploy it to Heroku server, it throws an error: 2022-10-01T10:15:17.936106+00:00 app[web.1]: error create pdf Error: html-pdf:…
2
votes
1 answer

How to add html content to each page of jsPDF?

I am trying to convert my html page to pdf using jsPDF. Essentially i am using the html method of jsPDF, giving it a source, and options and then in the callback function i would save the document. But i am having a problem when it comes to dividing…
Prakash R
  • 23
  • 4
2
votes
0 answers

Exit with code 1 due to network error: SslHandshakeFailedError

I am trying to convert an HTML web page using wkhtmltopdf API and pdfkit library. But when I am entering the URL of any web page it is showing me this error. Traceback (most recent call last): File "c:\\Users\\Fai\\Desktop\\doc\\convert.py", line…
2
votes
0 answers

Selenium FirefoxDriver print to pdf doesn't print background images although "background" is set to true in PrintOptions

I want to get a pdf of a webpage using selenium WebDriver. I'm using FirefoxDriver because ChromeDriver has trouble calculating exact A4 size which leaves a white line at the bottom. Printing works fine with FirefoxDriver except it does not include…
2
votes
0 answers

How to create a single page pdf from a html file

How to create a single page pdf from a html file I'm currently using the convert-html-to-pdf library (version: 1.0.1) to convert html files into pdf. But, the conversion is separating my html in multiple pages and it ends up breaking the code…
2
votes
1 answer

Itext7 Html to PDF Conversion not switching fonts properly

I'm attempting to convert html to pdf with a couple elements in Calibri Light. I've been able to get Calibri, Calibri Bold, and Calibri Italics to work, but light has been giving me no end of trouble. *Edit If I run it all as calibri light it's all…
2
votes
1 answer

How to create repeatable header without overlapping content?

I am created one page. I want header on each page top side, so added position:fixed; & top:0; to header. now my header appear on every page. but whenever I try to print page that time header overlapped on content. please help me to resolve…
Vikas Harad
  • 422
  • 2
  • 8