pdf-generation

pdf file not showing up in Internet explorer

守給你的承諾、 提交于 2019-12-11 00:34:48
问题 Language : ASP.NET/VB.NET I am creating pdf file using itextsharp library. On my development machine generated files are opening up without any problem. But when I upload the compiled program on production server, internet explorer just open and close the window but does not show the pdf file. Other browsers are showing up the pdf file. Here is the code I am using Dim LABNO As Integer = Request.QueryString("LABNO") Dim vDoc As New iTextSharp.text.Document(PageSize.A4, 20, 20, 50, 50) Dim

Render jQuery in wicked_pdf

孤人 提交于 2019-12-11 00:08:55
问题 I'm using Highcharts in my application to render charts. Everything works fine, except when I want to convert a page that has charts to PDF. I'm using wicked_pdf. Here is the show method my controller: format.pdf do render :pdf => "report", :template => "/quarters/report.pdf.erb", end My /quarters/report.pdf.erb file looks like it does in my show.html.erb for highcharts: <div id="testcollections" style="width: 600px;"></div> <!-- jQuery for testing collections charts --> <script type="text

Matplotlib output to PDF for Corel Draw

时光怂恿深爱的人放手 提交于 2019-12-10 23:34:26
问题 Update : The fonts issue was actaully solved by using rc("pdf", fonttype=42) but unfortunately it is combined with another - whenever is used any type of marker I tried CorelDraw comes with error "File is corrupted". When I output my charts from Matplotlib into PDF I am not able to open it in Corel Draw. I highly suspect that the major issue might be with texts / fonts. Simple code example which I need update to make PDF with text and markers import correctly in Corel Draw: from matplotlib

Play Framework: Generate PDF from template that uses Javascript for graphing

穿精又带淫゛_ 提交于 2019-12-10 22:55:15
问题 I have a template that has some Javascript used to generate graphs in the browser. I would like to use that same template to create a PDF and send as an attachment in an e-mail. In this scenario, there would be no browser/client interaction. I am using the PDF module that is available from the Play website and I have managed to get the PDF rendering to work. The only issue is that the graphs don't show up in the PDF but all other static text does. I'm assuming the graphs aren't appearing in

Alternatives to Coldfusion Report Builder

旧时模样 提交于 2019-12-10 22:18:50
问题 Anyone know of a good solution for pdf generation (preferably with a visual layout tool) that I can use from ColdFusion instead of the CF Report Builder? It should be able to accept cfquery input. Basically is there anything better than the crusty Adobe offering out there? EDIT : With CF 11 and the "pixel-to-pixel" rendering of "most" CSS and HTML (see https://wikidocs.adobe.com/wiki/display/coldfusionen/PDF+Generation+in+ColdFusion+11), I wonder if anyone has attempted to do anything along

HTML image to pdf convertor in javascript

空扰寡人 提交于 2019-12-10 21:32:58
问题 HTML CODE: <img class="imagepdf "src="www.images.com/someimage" alt="Smiley face" height="42" width="42"> I want to convert this image to pdf format. I am using jspdf() for this but i am not getting my output ?Can someone give me live example on fiddle for pdf conversion for chrome. 回答1: Here is code from it's github site var getImageFromUrl = function(url, callback) { var img = new Image(); img.onError = function() { alert('Cannot load image: "'+url+'"'); }; img.onload = function() {

I want to create multiple pdfs in a loop using dompdf?

旧巷老猫 提交于 2019-12-10 21:20:02
问题 I want to generate multiple pdf files in loop using dompdf. I am using dompdf_0-6-0_beta3. But only one file get generated each time wehn I execute the code. I am providing my code for reference as follows. include 'dompdf_config.inc.php'; for($i=0; $i<5; $i++) { if ( get_magic_quotes_gpc() ) $old_limit = ini_set("memory_limit", "16M"); $dompdf = new DOMPDF(); $dompdf->load_html($i); $dompdf->set_paper('a4', 'portrait'); $dompdf->render(); $dompdf->stream($i.".pdf"); } So please help me in

How to generate table of contents with prawn?

谁说胖子不能爱 提交于 2019-12-10 21:14:28
问题 Is there an easy way to generate table of contents with links to corresponding pages? 回答1: In recent-ish versions of prawn, yes. Check out the examples/general/outlines.rb example for API samples. See http://prawnpdf.org/manual.pdf p. 96 来源: https://stackoverflow.com/questions/2687833/how-to-generate-table-of-contents-with-prawn

Fatal error: Class 'TCPDF' not found

北城余情 提交于 2019-12-10 20:48:31
问题 I am generating the PDF file but facing the trouble. Can anybody tell me the solution of this error. Below is the code that I used for that. I include the tcpdf for this but there is a fatal error that saying that tcpdf file in not available or we can say not found. <?php $tcpdf_include_dirs = array(realpath('tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local

PyPDF2: Why does PdfFileWriter forget changes I made to a document?

末鹿安然 提交于 2019-12-10 20:08:37
问题 I am trying to modify text in a PDF file. The text can be in an object of type Tj or BDC . I find the correct objects and if I read them directly after changing them they show the updated values. But if I pass the complete page to PdfFileWriter the change is lost. I might be updating a copy and not the real object. I checked the id() and it was different. Does someone have an idea how to fix this? from PyPDF2 import PdfFileReader, PdfFileWriter from PyPDF2.pdf import ContentStream from PyPDF2