wkhtmltopdf

Wht is the best solution for HTML to PDF (on Azure Web app) [closed]

帅比萌擦擦* 提交于 2020-01-03 04:51:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Actually I am trying to convert html content to pdf using NReco PDF converter, however, this line of code pdfDoc.GeneratePdf(HtmlContent); unable to get through on Azure web app, but it works normally on my dev environment. So my Question is which cloud service should i go for? 回答1: Azure Apps (former WebSites)

wicked pdf not displaying amazon s3 images

吃可爱长大的小学妹 提交于 2020-01-02 11:05:16
问题 A very strange thing has happended to my app recently and not sure what has changed? wicked pdf is not longer displaying my https:// images from my amazon s3 server. I am using the images with the src= "https://pathtoimage.png" and they were displaying just find before. The displaying of images is not working locally or on heroku. On my production server, the pdf rendering is not working as well and creating a bunch of blank white pages. I am using the gem gem 'wkhtmltopdf-binary' gem 'wicked

Internal links with wkhtmltopdf?

那年仲夏 提交于 2020-01-01 08:12:12
问题 I have created a PDF from several web pages using wkhtmltopdf. Is there a way to link across pages, for example from page 10 to 15. I tried creating an element with an ID and then an anchor to link to it, but this does not work within the same page or across pages. It turns the link into an absolute URL and tries to open it in a web browser. 回答1: I solved this issue by updating the binary that I was using. I was using 0.8 and switched to 0.11.0 rc1. Ensure that it is built against QT (the

Internal links with wkhtmltopdf?

可紊 提交于 2020-01-01 08:12:10
问题 I have created a PDF from several web pages using wkhtmltopdf. Is there a way to link across pages, for example from page 10 to 15. I tried creating an element with an ID and then an anchor to link to it, but this does not work within the same page or across pages. It turns the link into an absolute URL and tries to open it in a web browser. 回答1: I solved this issue by updating the binary that I was using. I was using 0.8 and switched to 0.11.0 rc1. Ensure that it is built against QT (the

How to stop wkhtmltopdf.exe pop-up while running it with Python

邮差的信 提交于 2019-12-31 05:42:27
问题 I am using wkhtmltopdf.exe for converting html to pdf using python. The pop-up window of wkhtmltopdf.exe making it very difficult for me to work on any other things while running it. I have to convert around 200K+ files and have to work on something else simultaneously. But its really not letting me to work on anything else. Is there a way of stopping this or running it in background? I really appreciate your help. PS. Sorry I am new to it, don't know any other way to stop it. I am using

WKHTMLTOPDF with pdfkit on Rails ignoring table page breaks

核能气质少年 提交于 2019-12-30 13:10:23
问题 I know there are a lot of issues with wkhtmltopdf and page breaks that date back years, but I haven't worked out a solution yet. I'm using the PDFKit gem to generate my html pages into pdfs, but I don't want the pages to break in the middle of a table row. I'm using wkhtmltopdf-binary (0.9.9.3), which looks to be the most updated version My CSS: @media print { #scores table tr td, #scores table tr th { page-break-inside: avoid !important; } table, tr, td, th, tbody, thead, tfoot { page-break

Create pdf with wkhtmltopdf and rendering javascript

淺唱寂寞╮ 提交于 2019-12-30 06:12:51
问题 I'm attempting to create a PDF of a javascript chart that I have in a model window (my chart is a combination of javascript and css in an .aspx view). The only thing in the rendered PDF file is the static content from the window, the actual javascript chart is not there. My call to create the PDF is as follows: public byte[] WKHtmlToPdf(string url) { var fileName = " - "; var wkhtmlDir = "C:\\Temp\\wkhtml"; var wkhtml = "C:\\Temp\\wkhtml\\wkhtmltopdf.exe"; var p = new Process(); p.StartInfo

How to pipe InputStream to ProcessBuilder

假装没事ソ 提交于 2019-12-30 04:37:25
问题 Please move down to the 2nd update. I didn't want to change the previous context of this question. I'm using wkhtmltoimage from a Java app. The standard way of using it is - path-to-exe http://url.com/ image.png . According to their docs, if we write a - instead of an input URL, the input shifts to STDIN. I'm starting the process using ProcessBuilder - ProcessBuilder pb = new ProcessBuilder(exe_path, " - ", image_save_path); Process process = pb.start(); Now I'm unable to figure out how to

wkhtmltopdf javascript delay for output of google maps

人盡茶涼 提交于 2019-12-30 04:24:09
问题 I am working with WKTHMTOPDF and really enjoying it. However, the page that is being converted has google maps and the resulting PDF comes out with the map half loaded. I know there was an option to add --javascript--delay in previous versions, but it would appear it is deprecated. I am using version 0.99. Is there a different option? 回答1: The --javascript-delay option is not deprecated at all. Also, it would be advisable to upgrade to the latest version -- 0.9.9 is a very old version. 回答2:

Scale HTML proportionally to fit exactly to PDF A4 size

有些话、适合烂在心里 提交于 2019-12-30 00:17:34
问题 I am using PHP, Mysql, jQuery. I have a webpage that is to be converted into high-res A4 size PDF: http://optisolbusiness.com/funeral_site/sample/index/id/255. I have converted the HTML to PDF using wkhtmltopdf , which works great. Here is the generated PDF http://optisolbusiness.com/Guru/Gurupdf/optisol.pdf. But the HTML is not fitting exactly to PDF size; There are spaces around the HTML in PDF. How to scale HTML to fit A4 PDF size 100%? Importantly the content inside the html (ie) text