pdf-generation

Converting html to pdf in php?

给你一囗甜甜゛ 提交于 2019-12-01 05:18:10
I know that there is a lot of posts about this problem.But can someone help me to setup this http://www.rustyparts.com/pdf.php script to work on my localhost.I just spent all week on this problem.I have download imagemagic,ghostscript,activeperl,...,everything,but still can't make simple example to work. marcog Use wkhtmltopdf via a system call. See How to install wkhtmltopdf on a linux based (shared hosting) web server for installation help. wkhtmltopdf is a command line program which permits to create a pdf from an url, a local html file or stdin. It produces a pdf like rendred with the

Using jspdf to save html page as pdf, saved pdf contains incomplete page content if browser is zoomed, Why?

无人久伴 提交于 2019-12-01 05:08:34
问题 I am using jspdf and html2canvas combination to save html page as pdf. A pdf copy of current page is saved the moment you click a button. The problem is, if you zoom in the page, and then click the button, the saved pdf contains incomplete portion of the current page. Most of the part not visible on page due to zooming, gets cut off in the saved pdf page. What is the solution? Below is the js code being invoked upon click of save button- var pdf = new jsPDF('l', 'pt', 'a4'); var source = $('

java itext create pdf with hebrew (rtl) and english

和自甴很熟 提交于 2019-12-01 04:55:03
问题 I want to create a pdf document containg english and hebrew together , I can see hebrew letters by using: BaseFont unicode = BaseFont.createFont("c:/windows/fonts/arialuni.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); but i see them in reverse. I want to be able to show the hebrew strings in rtl mode , and that the english strings will stay in ltr mode. how can this be done? Is there an example of english and hebrew together? (or any other rtl languge). Thank's In Advance. 回答1: You should be

HTML to PDF Converters for .NET [closed]

风流意气都作罢 提交于 2019-12-01 04:41:05
I am in search of a FREE HTML to PDF converter for .NET which preferably takes an HTML page and renders it into a PDF document. The HTML page (when printed) will most often be more than one page . I know of ABCPDF, but from a quick overview, it appears it just wants to convert a single page of HTML and doesn't handle multiple pages well. I could be ignorant of its capabilities as I haven't put very much research into ABCPDF yet. The only other one I have gently used is iText, but that seems like it may become very complicated for the application I need. Please let me know if you have any

prawn PDF: I need to generate nested tables

浪子不回头ぞ 提交于 2019-12-01 03:53:10
问题 I need a table where rows are actually 2 rows tables, a nested table that is.. How can I do that in prawn? Maybe I need an extension.. but which one? 回答1: No support for this exists in released versions, but in the master branch of http://github.com/sandal/prawn you'll find our revamped table support which has nested tables. Take a look at the examples/ dir. 回答2: Subtables are now supported: Prawn::Document.generate("subtable.pdf") do |pdf| subtable = pdf.make_table([["sub"], ["table"]]) pdf

MemoryStream, Cannot access a closed stream

我的未来我决定 提交于 2019-12-01 02:51:01
With the sharpPDF library I generate a pdf memory stream, and I want to send it directly via email. But the line ms.Seek(.... gives an ObjectDisposedException; Cannot access a closed Stream. The pdf.CreatePDF method takes either an (output) fileName string, or an (out)Stream. But I guess it also closes the stream? I'm not used to work much with streams, so if you could please advise how it should be done? The sharpPDF source code of the CreatePDF method can be found here: http://www.java2s.com/Open-Source/CSharp/PDF/SharpPDF/sharpPDF/pdfDocument.cs.htm Public Sub SendPDF() Dim pdf As New

Converting html to pdf in php?

一世执手 提交于 2019-12-01 02:46:50
问题 I know that there is a lot of posts about this problem.But can someone help me to setup this http://www.rustyparts.com/pdf.php script to work on my localhost.I just spent all week on this problem.I have download imagemagic,ghostscript,activeperl,...,everything,but still can't make simple example to work. 回答1: Use wkhtmltopdf via a system call. See How to install wkhtmltopdf on a linux based (shared hosting) web server for installation help. wkhtmltopdf is a command line program which permits

How to create pdf file with mysql data?

醉酒当歌 提交于 2019-12-01 02:33:45
Can anyone give me simple example, how to create pdf file with mysql data? Im using fpdf http://www.fpdf.org/ for pdf creation. I want to print these data: $result = mysql_query("SELECT Name, Profesion, Email FROM customers") or die(mysql_error()); if(mysql_num_rows($result) > 0) { while($row = mysql_fetch_assoc($result)) { echo ' <td width="200px">'.$row['Name'].'</td> <td width="200px">'.$row['Profesion'].'</td> <td> width="200px">'.$row['Email'].'</td>'; } } Have you looked at the scripts section on their site? They have a few good examples of creating a PDF table/report from MySQL. Hope

Android PdfDocument file size

旧城冷巷雨未停 提交于 2019-12-01 02:28:29
问题 I want to generate a PDF File from a View using the PdfDocument android class introduced in KitKat. I managed to do it, and the file is so far generated ok, ending up having a correct PDF. The only problem is the file is huge, 12Mb for just one page. Is there a way to reduce the File size? The code I am using to generate the PDF is: public static File generateDocument(Activity activity, String fileName, ViewGroup container) throws IOException{ File f = new File(activity.getExternalFilesDir

iText 7 PDF accessibility: “Table header cell has no associated subcells”

[亡魂溺海] 提交于 2019-12-01 02:09:38
I am converting HTML to a PDF using iText 7. I need the PDF to be accessible (508 compliant with appropriate tags, etc), but, no matter what markup I put on a table, accessibility checkers give the same error: "Table header cell has no associated subcells". I've tried setting scope, headers, etc... nothing seems to work. Here is an example of one of the tables but all of them have the same issue: <table class="problems" summary="Patient's diagnosed problems and associated ICD codes."> <thead> <tr> <th scope="col" id="problem-header"> Problem </th> <th scope="col" id="icd-code-header"> Code <