pdf-generation

BIRT report output not visible in “view report as PDF” option

懵懂的女人 提交于 2019-12-06 12:19:05
问题 I have recently installed BIRT in a 64 bit windows 8 machine. When I view a report in HTML output or any other output the report is visible just fine. But when I chose to view it as PDF , a blank page opens with a small cross on top left corner and nothing else. (attaching screen shot) I tried opening the same report on other machine (Windows 7) with BIRT "view as PDF" and it works fine. I have checked opening other pdf files on my machine, they open perfectly OK. Is there any other setting I

How to generate PDF files with PHP? [duplicate]

陌路散爱 提交于 2019-12-06 12:00:34
问题 This question already has answers here : Closed 11 years ago . I have some HTML that includes bolding, italics, small tag, big tag, blockquote tag, bullets, and numbered items. I need to convert it to PDF via PHP. I tried FPDF, but it was entirely too complex. I tried the html2pdf PHP library, which uses FPDF, but it was very buggy and unreliable. What do you recommend? Note: Imagine your typical resume. I'm needing to format something like that. 回答1: Take a look at FPDF 回答2: I've had a lot

itext XMLWorkerHelper ignores value attribute of <li> tag

不想你离开。 提交于 2019-12-06 11:59:35
I'm using itext 5.4.5 with XMLWorker 5.4.5 to generate pdf from html that cames from ckEditor. Users can also paste some text from word documents and this results sometimes in something like this: <ol> <li value="3">some text1</li> </ol> <div>lorem ipsum dolor</div> <ol> <li value="100">some text2</li> </ol> <div>lorem ipsum dolor</div> <ol> <li value="77">some text3</li> </ol> this results in ckEditor and in html as 3. some text1 lorem ipsum dolor 100. some text2 lorem ipsum dolor 77. some text3 But if itext convert this html to pdf, it ignores the value of li-tags and sets it to "1." and

Html to Pdf library in Azure Function

[亡魂溺海] 提交于 2019-12-06 11:38:56
Azure functions apparently doesn't yet support System.Drawing ( sanbox info ). Running a function with a dependency on it throws the following message: System.Drawing is not supported on this platform. I was originally using Select.HtmlToPdf in a WebApp to create PDF documents from HTML. But, since moving the PDF generation to an Azure function, that is no longer an option. Also, the reccomended library is wkhtmltopdf , but that doesn't seem to have a .netstandard2.0 version. How would you accomplish PDF generation using Azure Functions (C#)? Update: the function is running on an S1 - App

Node-phantom show number of generated pdf pages

主宰稳场 提交于 2019-12-06 11:35:46
问题 I am facing problem to get the number of generated pdf pages in phantomjs. Basically I am using phantomjs with nodejs and I want to show total number of pages in page 5. function generatePdf() { // Load ejs template fs.readFile(__dirname + '/../pdf' + pdfpath, 'utf8', function (err, data) { var fileName = __dirname + '/pdfdata/' + f.formType + f.formId + '.pdf'; // Render the page to variable. var html = ejs.render(data, pdfJSON); fs.writeFile(__dirname + '/pdfdata/test.html', html, function

css background is not working when convert template into pdf using rendering plugin

做~自己de王妃 提交于 2019-12-06 10:40:54
I am using rendering plugin to generate pdf in grails. I am using a background color which is prepared by css. code is here. #container #content #mainContent .block .backgroundStyle { background: #ffffff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI

Insert values from a file in a latex document

淺唱寂寞╮ 提交于 2019-12-06 09:21:31
If a have a latex document, how can I read some key-value pairs from a file an insert them into the document? Something like this: Latex code: customer ID: ${customerID} Text file: customerID=123456 And the resulting .pdf file should contain the customer ID. We can always write a perl script to expand them... defs.txt: customerID=123456 customerTel=22530000000 doc.tex: \documentclass{article} \begin{document} latex customer ID: ${customerID} and ${address} costum telphone ID: ${customerTel} \end{document} perl script tex-defs: #!/usr/bin/perl -n BEGIN{$tex=0;} if(not $tex and /^(\w+)=(.*)/) {

ASP.Net Converting and Merging documents into single PDF

走远了吗. 提交于 2019-12-06 08:01:21
问题 I need to have the ability to convert and merge various documents into a single Pdf. The documents could be of varying types, such as Word, Open Office, Images, Text, Web pages (by URL) and the PDF would usually consist of 2-3 documents. At the moment, we are using BCL Technologies easyPDF with Microsoft Office installed onto the Server. This handles most documents but we haven't had it doing Open Office ones yet. We currently produce around 100-1000 of these PDF's per day. The reason I am

Shrink and merge PDFs in Python

断了今生、忘了曾经 提交于 2019-12-06 07:47:42
I'm trying to shrink and merge two A4 PDF pages into one A4 page so that if I had; _____ _____ | | | | | p1 | | p2 | | | | | |_____| |_____| I would get; _____ | p1 | |.....| | p2 | |_____| As a new PDF, with two A5 sized pages on that one page. Similar to how you might print two pages per page on paper. I've looked into pyPDF (http://pybrary.net/pyPdf/) ReportLab (http://www.reportlab.com) but I can't seem to find how to shrink and merge like this. Any hints? Thanks! pdfnup has this functionality (http://pypi.python.org/pypi/pdfnup)# e.g. from pyPdf import PdfFileWriter, PdfFileReader from

iTextSharp fields rename does not work with Merge

孤人 提交于 2019-12-06 07:27:05
This is a follow up to another question I had earlier, after the merge of PDF files with form fields worked successfully, if fields with same names do appear then they are not getting their distinct values from their original documents, it looks like a field with the same name propagate its values to the following fields which have the same name. This is the code to merge and rename in 2 separate functions: public byte[] MergeFiles(IList<DBForms> forms) { if (forms.Count < 1) return null; System.IO.MemoryStream msOutput = new System.IO.MemoryStream(); iTextSharp.text.Document document = new