pdf-generation

Convert webpage from HTML to PDF?

别等时光非礼了梦想. 提交于 2019-12-10 11:45:50
问题 I have a website with the following structure: Tab Container - having 4 Tab panels Each tab panels is having 4 gridviews which are separated by line break. Now when i am in a particular tab, I want to use an 'export to pdf' button , which should generate a pdf having 4 gridviews visible in this tabpanel. Same for all other tabpanels. I have searched enough, found may articles telling about using itextsharp, wkhtmltopdf, pdf generators etc, however I dont seems to find fully implemented

pdfcairo 'unknown or ambiguous terminal type' in gnuplot

一笑奈何 提交于 2019-12-10 11:37:43
问题 After upgrading gnuplot from 4.6 to 5.0.1 , I encounter the following error: set terminal pdfcairo size 3.0in,2.25in font ',8' ^ "plot.plt", line 114: unknown or ambiguous terminal type; type just 'set terminal' for a list How can I fix it? PS: pdfcairo works fine in the previous version (4.6). I install the gnuplot by the following command: #build it: ./configure --with-cairo make #install it: sudo make install As described in GNUPLOT Version 5.0.1 Release Notes, the pdfcairo is included by

Export or Download d3.js sunburst / collapsible tree charts as pdf file

不问归期 提交于 2019-12-10 11:07:03
问题 I need to download my d3.js collapsible tree chart and sunburst chart as PDF file . I tried using jspdf.plugin.svgToPdf plugin but it doesnt work. Could someone guide me in downloading the charts as pdf ? My source code for collapsible tree (function () { var out$ = typeof exports != 'undefined' && exports || this; var margin = { top : 20, right : 120, bottom : 20, left : 120 }, width = 960 - margin.right - margin.left, height = 800 - margin.top - margin.bottom; var i = 0, duration = 750,

wkhtmltopdf - background color doesn't fill second page

ぐ巨炮叔叔 提交于 2019-12-10 10:45:13
问题 I am trying to convert an HTML to a PDF document with wkhtmltopdf. Command I am running is wkhtmltopdf ./test.html test.pdf Software version: wkhtmltopdf -V wkhtmltopdf 0.12.5 (with patched qt) The content is dynamic therefore I don't really know where it will end. Unfortunately when the content renders to the second page the background stops with the content. HTML below, any help would be fully appreciated and make an old developer happy after struggling so much :) <!DOCTYPE html PUBLIC "-/

Pdf setting the font color to the text

孤街醉人 提交于 2019-12-10 10:01:37
问题 I am trying to add some text to a pdf file manually.I was able to add new text with a specific font. But i am not able to set the font color. So how can i do it manually? (I just want to change these manually as i already have the code where i write these byte to make the pdf file) Also how can i use graphic states specified in the pdf standard to manipulate the text so that feature changes does not affect the color changes etc.How exactly i can use the graphic state? Source pdf file click

C# html to pdf converter using wkhtmltopdf or any other free tools [closed]

旧城冷巷雨未停 提交于 2019-12-10 09:07:40
问题 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 5 years ago . What is the perfect tool for converting html to pdf in C# ?? I have found wkhtmltopdf through stackoverflow.com . But its not working . showing this message in time of converting "www.google.com" in command line. C:\Program Files\wkhtmltopdf>wkhtmltoimage.exe www.google.com go.pdf Loading page (1/2) Rendering (2

Displaying values in FPDF

隐身守侯 提交于 2019-12-10 04:19:20
问题 This is my code for generating pdf using FPDF in php. I want to display the semester, bill month and the billyear in the PDF file. I dont want to display the values in the table. I want to display at the top of the page. How can i do this? Any suggestion? Thanks in advance. Cheers. <?php session_start(); require('fpdf/fpdf.php'); //Connect to your database $r1=$_SESSION['sem1']; $con=mysql_connect('localhost','root',''); if(!$con) { die('Unable to connect'.mysql_error()); } mysql_select_db(

Generating .afm from .ttf [closed]

时光怂恿深爱的人放手 提交于 2019-12-10 02:39:46
问题 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 . I'm working with generating .pdf's from PHP using this library: http://www.fpdf.org/ I am currently hung up, though, on adding new fonts, specifically the step on generating the .afm file from a .ttf font file. I'm following the instructions here: http://www.fpdf.org/en/tutorial/tuto7.htm Which state: The first

Compress existing PDF using C# programming using freeware libraries

自古美人都是妖i 提交于 2019-12-10 00:46:10
问题 I have been searching a lot on Google about how to compress existing pdf (size). My problem is I can't use any application, because it needs to be done by a C# program. I can't use any paid library as my clients don't want to go out of Budget. So a PAID library is certainly a NO I did my home-work for last 2 days and came upon a solution using iTextSharp, BitMiracle but to no avail as the former decrease just 1% of a file and later one is a paid. I also came across PDFcompressNET and pdftk

Add text to existing PDF document in Python

心已入冬 提交于 2019-12-09 15:12:14
问题 I'm trying to convert a pdf to the same size as my pdf which is an A4 page. convert my_pdf.pdf -density 300x300 -page A4 my_png.png The resulting png file, however, is 595px × 842px which should be the resolution at 72 dpi. I was thinking of using PIL to write some text on some of the pdf fields and convert it back to PDF. But currently the image is coming out wrong. Edit: I was approaching the problem from the wrong angle. The correct approach didn't include imagemagick at all. 回答1: You