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

Dompdf not rendering INR symbol in PDF

I have come across an issue with dompdf while trying to use INR currency symbol. I have managed to resolve the issue using Dejavu Sans font family on my local server. But, when I upload the file to a live server it just generates a ? in place of…
teejay
  • 21
  • 1
  • 2
2
votes
1 answer

Html to PDF converting. Fixed footer on the bottom of the page

I have an HTML file that I need to convert to PDF, for that, I'm using http://html2pdf.com/ I need to have the footer fixed at the bottom of the page, like on this screenshot. But the HTML file content can be as short as well as long. So When the…
Kadmos B
  • 241
  • 1
  • 5
  • 17
2
votes
0 answers

Convert react component to html

I have a react component containing a map (using react-leaflet). I am trying to take a screenshot of the map (using html2canvas) on the client side, convert it to HTML and then send it to my NodeJS server for creating a PDF (using html-pdf). The…
dev.RP
  • 21
  • 2
2
votes
2 answers

inline php script variables not working in DOMPDF

The inline php script is not executing when I generate the pdf ,only the html part is getting printed on pdf. I have already set $isPhpEnabled =True .
Aman Rathore
  • 88
  • 1
  • 11
2
votes
1 answer

Save a PDF as ByteArray to HttpResponse using PDFDocument.Save

I am trying to send a Byte Array of Conversion - HTML to PDF using SelectPDF in C#. The Sample code I given below. I'm having a WebAPI, in that I'm doing this. I need to send the PDF document as an byte array and need to display in the client UI.…
user7784919
2
votes
1 answer

How to set bottom margin in TCPDF?

I am using TCPDF for generating pdf. I am able to set margin for left,top and right using SetMargins($left, $top, $right = -1, $keepmargins = false) but not able to set margin for the bottom of the pdf page. Can any one help me to set bottom margin…
Virendra Jadeja
  • 821
  • 1
  • 10
  • 20
2
votes
1 answer

html to pdf ASP.NET.Core 1.1 image not showing after conversion

I am using this open source library for html to pdf. Everything is working, but when it comes to adding a tag, it is not showing the image I want in PDF. For example, string image = "~/images/test.png"; string htmlToConvert =…
bbusdriver
  • 1,577
  • 3
  • 26
  • 58
2
votes
0 answers

How to add dynamic variable to footer without calling document.newPage() in iText 5

The example given in the itext site is working very well. Page events for headers and footers However, I am creating pdf from list of html strings so I cannot determine when to set document.newPage() If i don't write document.newPage(), my…
ayZagen
  • 487
  • 7
  • 15
2
votes
4 answers

Maven dependency for pd4ml

HI I searched on google and did not find the dependency for PD4ML.I have added the jar manually but everytime i do mvn clean install it is giving me compile time error error: package org.zefer.pd4ml does not exist org.zefer.pd4ml does not exist
Akshay jain
  • 555
  • 1
  • 7
  • 22
2
votes
1 answer

convert html to pdf with ExpertPdf HtmlToPdf Converter

I need to convert html to pdf with base64 and ephtmltopdf.dll. The conversion went well. But I can not select PDF content after conversion saved file as an image. I need to be able to select text after conversion. I have tried to change…
hajar
  • 17
  • 1
  • 6
2
votes
0 answers

wkhtmltopdf anchor text having HTML. issue

wkhtmltopdf 0.12.3.2 (with patched qt) -- Windows 8 If I include some html inside anchor tag then the generated pdf doesn't make it clickable. e.g
TreeMap!
Command : wkhtmltopdf.exe…
xtremist
  • 909
  • 2
  • 9
  • 18
2
votes
0 answers

ITextSharp can render html with image embedded in css?

Main Purpose: I want to be able optionally displaying background image for any tag. I have a code that converts html to pdf: public static byte[] ToPdf(String html, String css = null) { using (var stream = new MemoryStream()) { …
Igor
  • 131
  • 1
  • 9
2
votes
4 answers

How Do I convert HTML to PDF with hot links in outputted PDF with ASP(.NET)? Preferably with ActivePDF WebGrabber

My company purchased ActivePDF WebGrabber a couple of years ago to convert a classic ASP created HTML page into a PDF form. The only drawback with the tool that we continually run into is that the outputted HTML links are not hot. Are there any…
JustinP8
  • 1,353
  • 1
  • 14
  • 33
2
votes
0 answers

iTextSharp - Fit PDFcontent within a page

I'm trying to convert a simple HTML to PDF using iTextSharp. Consider the below scenario, where HTML div width will not fit within PDF Page size, content is blank in PDF. TextReader reader = new StringReader(html); using (MemoryStream memoryStream =…
2
votes
2 answers

HTML to pdf not giving correct pdf with all styling

I have created a html layout, when I am trying to convert this into pdf it is not giving out put with complete styling. I have tried two libraries "anam/phantommagick": "^1.0" and "barryvdh/laravel-dompdf": "0.4.*" Here is my code:
Anshul Mishra
  • 1,706
  • 2
  • 15
  • 38