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

Unable to Export HTML Markup to PDF using iTextSharp API in asp.net using C#?

I have an HTML markup which has HTML Table and Images in it. I am using iTextSharp API to convert the HTML markup to PDF. But, unfortunately the iTextSharp fails to export the HTML markup containing the Images & Table to PDF. Error:The network path…
SHEKHAR SHETE
  • 5,964
  • 15
  • 85
  • 143
0
votes
2 answers

dompdf generating PDF in with many blank pages between content

I'm using DOMPDF to generate pdf files from html. PDF file is getting generated but there are many blank pages are appearing in between content. Following is my php code.
Mahendra
  • 908
  • 1
  • 18
  • 38
0
votes
1 answer

iTextSharp - Generate PDF file - The remote server returned an error: (407) Proxy Authentication Required

I am facing proxy authentication issue on my below code snipplet. file = [FILEPATH] htmlData = [HTML CONTENTS] System.IO.StringReader objReader = default(System.IO.StringReader); Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 10f,…
k-s
  • 2,192
  • 11
  • 39
  • 73
0
votes
1 answer

EO HtmlToPdf StartPosition multiple columns

I am using Essential Objects HtmlToPdf and doing a first page header that is larger. Using one column and specifying a positive StartPosition everything works fine. However, when I split on to two columns the first column is shifted down but the…
0
votes
1 answer

Choosing a FontProviderImp in iTextSharp

I am using XMLWorker for parsing html. I have been having some issues with the fonts I define in the styles. For example, something simple as this: Foo Garamond wasn't not working. I was using this as my…
Daniel Conde Marin
  • 7,588
  • 4
  • 35
  • 44
0
votes
2 answers

converting a html to pdf using itext in java

Converting a html file to pdf file. I have html file,css file and js files are in one folder how can i convert that index.html to create pdf using itext in java. can anyone help me for this issue. is there is any sample project ?
G Jay
  • 127
  • 2
  • 4
  • 10
0
votes
1 answer

RazorPDF encoding

I'm not able to display Hebrew characters when using RazorPDF. I would love to know if it is possible or if there are any other good solution to covert HTML to PDF. The best thing wold be to specify the view (I'm using MVC 4) and get a PDF document.
UshaP
  • 1,271
  • 2
  • 18
  • 32
0
votes
1 answer

Show header/ footer and HTML table grid lines [HTML to PDF generation using iTextSharp]

I have created a code for preparing PDF from an HTML file. My problem is that generated PDF is not showing my HTML table's border. I am not using any CSS file all the stiles are written inline. Below is my HTML sample.
Nikhil Gaur
  • 1,280
  • 3
  • 19
  • 40
0
votes
1 answer

Client found response content type of 'application/pdf', but expected 'text/xml'. The request failed with the error message:

Hi all I have written this code in a web-service http://www.hiqpdf.com/demo/ConvertHtmlToPdf.aspx as follows [WebMethod] public void convert(string strURL) { HtmlToPdf htmlToPdfConverter = new HtmlToPdf(); string url =…
Developer
  • 8,390
  • 41
  • 129
  • 238
0
votes
2 answers

HTML to PDF Converter issue - Outsystems

I am using HTML to PDF Converter in my Outsystems application, but when I open the downloaded PDF its size is zero bytes and I am not able to open the PDF too. It throws 'No registered application for this extension.' Any hints ?
Robert Langdon
  • 855
  • 1
  • 11
  • 27
0
votes
3 answers

Include stylesheet file into MPDF conversion in PHP

I have made HTML to convert it into PDF using MPDF, but issue is that I can't include a stylesheet file. Example: include("../mpdf.php"); $mpdf=new mPDF('c'); $mpdf->SetDisplayMode('fullpage'); // LOAD a stylesheet $stylesheet =…
MRJethva
  • 357
  • 4
  • 15
0
votes
1 answer

Stack empty Error when using iTextSharp for converting HTML to PDF

I want to export in pdf my htmlcode var document = new Document(); string filePath = Server.MapPath("~/generatedBook"); string exceptionPath = Server.MapPath("~/exceptions"); PdfWriter pdfWriter =…
Alex
  • 8,908
  • 28
  • 103
  • 157
0
votes
2 answers

How to display "Times new roman" font for Romanian language in pdf using iTextSharp

LoadTagStyle does not work for tag body with times new roman font I want to generate in pdf document one html page inside his I have font times new roman I try to set font times new roman but his not work I tried several cases: var styles = new…
Alex
  • 8,908
  • 28
  • 103
  • 157
-1
votes
2 answers

Pdf size issue in node js using puppeteer?

I am having a HTML Content with data and i am converting it to PDF using puppeteer npm package. I am able to generate PDF but the PDF is not full size. It's generating a small size pdf which is having lot of extra space around. …
TechChain
  • 8,404
  • 29
  • 103
  • 228
-1
votes
1 answer

HTML to PDF using Javascript with scrollable tables and graphs (Vertically and Horizontally)

I am trying to create an HTML to PDF function on my website using javascript. I am currently using html2pdf.js. However, I have some tables and graphs which are scrollable (Horizontally and vertically), so the HTML to pdf function only prints out…
melain
  • 1
  • 3