html-to-pdf

Pechkin HTML to PDF that includes a link to an extensionless PNG

核能气质少年 提交于 2021-02-07 08:23:14
问题 I'm trying to convert an HTML string to PDF using Pechkin Synchronised (WkHtmlToPDF). Everything works perfectly apart from one (deal breaking) part. As part of the HTML string I have an Image tag that references a dynamically generated PNG file over SSL (See below for code). It simply appears as a blank box in the output pdf. I've checked the docs and turned on every option I can think of and have seen references to WkHtmlToPDF being able to support PNG format and pull data from SSL'd

Pechkin HTML to PDF that includes a link to an extensionless PNG

血红的双手。 提交于 2021-02-07 08:20:16
问题 I'm trying to convert an HTML string to PDF using Pechkin Synchronised (WkHtmlToPDF). Everything works perfectly apart from one (deal breaking) part. As part of the HTML string I have an Image tag that references a dynamically generated PNG file over SSL (See below for code). It simply appears as a blank box in the output pdf. I've checked the docs and turned on every option I can think of and have seen references to WkHtmlToPDF being able to support PNG format and pull data from SSL'd

Pechkin HTML to PDF that includes a link to an extensionless PNG

ⅰ亾dé卋堺 提交于 2021-02-07 08:20:01
问题 I'm trying to convert an HTML string to PDF using Pechkin Synchronised (WkHtmlToPDF). Everything works perfectly apart from one (deal breaking) part. As part of the HTML string I have an Image tag that references a dynamically generated PNG file over SSL (See below for code). It simply appears as a blank box in the output pdf. I've checked the docs and turned on every option I can think of and have seen references to WkHtmlToPDF being able to support PNG format and pull data from SSL'd

DinkToPdf Net Core not able to load DLL files

爱⌒轻易说出口 提交于 2021-01-27 13:46:23
问题 I am try to generate PDF from html sql server database using DinkToPdf library. In the Startup file I have added var context = new CustomAssemblyLoadContext(); context.LoadUnmanagedLibrary(Path.Combine(Directory.GetCurrentDirectory(), "libwkhtmltox.dll")); The line gives me error on launching the web app DllNotFoundException: Unable to load DLL 'C:\Program Files\IIS Express\libwkhtmltox.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT:

dompdf generating PDF in with many blank pages between content

南笙酒味 提交于 2020-06-18 13:16:06
问题 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. <?php $html=file_get_contents("views/testnew.html"); // echo $html;die(); $paper_orientation = 'landscape'; ob_start(); require_once("dompdf/dompdf_config.inc.php"); $pdfcontent = $html; $dompdf = new DOMPDF(); $dompdf->set_paper('A4', $paper_orientation); $dompdf->load_html($pdfcontent); $dompdf->render(); // $pdf = $dompdf

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

允我心安 提交于 2020-06-16 05:13:52
问题 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: <li><a href='@Url.Action("GetHTMLPageAsPDF", "Transaction", new { empID = employee.emplID })'>ViewReceipt</a></li> Code behind: public FileResult GetHTMLPageAsPDF(long empID) { string htmlPagePath = "anypath..."; // convert html page to pdf PageToPDF obj_PageToPDF = new PageToPDF(); byte[] databytes = obj_PageToPDF.ConvertURLToPDF(htmlPagePath); // return resulted pdf

Convert HTML to PDF with links

痞子三分冷 提交于 2020-01-25 04:25:27
问题 Is there a node.js module or a javascript library that can convert HTML/Page into PDF with selectable texts and working links? I've tried Phantomjs. But since its the only screenshot the page and convert it to pdf, texts are not selectable and links are not working. Also tried jsPDF but links are not working either. Hope you guys can share some of your experience in dealing the same problem. Your response is greatly appreciated. 回答1: You can parse the HTML body with htmlparser. The complete

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

吃可爱长大的小学妹 提交于 2020-01-24 14:41:09
问题 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 iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html; /// <summary> /// Summary description for pdfgeneration /// </summary> public class pdfgeneration { public pdfgeneration() { // // TODO: Add constructor logic here // } public void pdfgenerator

How to set bottom margin in TCPDF?

久未见 提交于 2020-01-07 03:52:12
问题 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 in TCPDF? Any help is appreciated. 回答1: change the values of PDF_MARGIN_FOOTER, PDF_MARGIN_BOTTOM in the following code (taken from TCPDF examples): // set margins $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf-