pdf-generation

WPF to PDF

穿精又带淫゛_ 提交于 2019-11-27 13:11:08
问题 I have a WPF application and I want to be able to save the output of the application to a PDF document, the item I want to save can be a Visual a Drawing or a FixedDocument (I can create it as any of those options, and it's easy to convert between them). Is there any library that can convert directly from WPF to PDF (without writing code to walk the visual tree and recreate it using PDF primitives). 回答1: If you got your WPF visual tree rendered in to XPS then try this XPS to PDF converter

ImageMagick/Imagick convert PDF to JPG using native PHP API

旧街凉风 提交于 2019-11-27 11:45:10
问题 I’m attempting to convert PDF files into PNGs. It works great from the command line (I do have GhostScript 8.64 installed). But from PHP I’m having a problem: code: $im = new Imagick($pdf_file); // this is where it throws the exception below output: Fatal error: Uncaught exception ‘ImagickException’ with message ‘Postscript delegate failed `23_1235606503.pdf’: No such file or directory @ pdf.c/ReadPDFImage/612′ in get_thumbnail.php:93 Stack trace: \#0 get_thumbnail.php(93): Imagick->_

Replace all font glyphs in a PDF by converting them to outline shapes

試著忘記壹切 提交于 2019-11-27 11:43:23
问题 I am looking for a way to 'outline' all text/fonts in a PDF file, i.e. convert them to curves. I would prefer to do this without having to convert the PDF to PostScript and back. Also, I would like to use free lightweight cross-platform tools that can be automated from the command line, such as Ghostscript or MuPDF. 回答1: Yes, you can use Ghostscript to achieve what you want. I. For Ghostscript versions up to 9.14 You need to go through 2 steps: Convert the PDF to a PostScript file, but use

Show PDF in iPad using CGPDF APIs [closed]

梦想的初衷 提交于 2019-11-27 11:21:24
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I have learned Apple has release CGPDF APIs in SDK 3.2 for drawing PDF context. What I understand from these APIs is that you can draw a PDF to a data object or a PDF file. You can then export it, may be, to your sandbox's directory OR add as an attachment in the mail. But I am

Google Docs viewer returning 204 responses, no longer working, alternatives?

若如初见. 提交于 2019-11-27 11:20:38
问题 UPDATE 2016-11-16 9:53am EST It appears many people are still seeing 204 responses even though Google has claimed to have "fixed" the problem. When I myself tested the loading of a document 50 times, 3 of those times Google returned a 204 response. Please visit this URL and post a comment of your unhappiness so that we can finally get Google to address and fix the issue once and for all: https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/docs/hmj39HMDP1M

Export html to pdf in ASP.NET Core

左心房为你撑大大i 提交于 2019-11-27 11:19:17
I want to export a piece of html to a pdf file but i do not any compatible nuget package. When I try to install anyone: "X not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0)." Does anyone know any way to export to a pdf using asp.net core?? You can use jsreport .net sdk if you are in .net core 2.0 also without more complex node services. This includes among other features filters to convert your existing razor views into pdf. From the docs : 1. Install nugets jsreport.Binary , jsreport.Local and jsreport.AspNetCore 2. In you Startup.cs configure it as the following public void

Generating a PDF using the new printing stuff in iOS 4.2

丶灬走出姿态 提交于 2019-11-27 10:39:08
问题 Historically, my app has generated confirmations as plain HTML and passed that HTML to the normal MFMailComposeViewController for emailing to the customer. I wanted to try to leverage the new printing classes in iOS 4.2 to render the HTML to a PDF instead and send that as an attachment. I tried the following: NSString *html = /* generate my HTML here */ NSMutableData *pdfData = [NSMutableData data]; UIMarkupTextPrintFormatter *fmt = [[UIMarkupTextPrintFormatter alloc] initWithMarkupText:html]

How to edit a pdf in the browser and save it to the server

自作多情 提交于 2019-11-27 10:35:16
问题 Here are the requirements, the users needs to be able to view uploaded PDFs in the browser. They need to be able to add notes to the PDF and save the updated PDF to the server without having to save it to their machine and open it outside the browser. Any ideas on how to achieve this are welcomed. by the way I am working with an asp.net website (in C#). I have no control over what the pdf looks like. It is uploaded client-side then other users need to view and an notes on top of the pdf. The

Generate PDF from Rails

旧时模样 提交于 2019-11-27 10:32:05
The Ruby On Rails Wiki lists a couple of librarie s that facilitate PDF generation in Rails . I need to print out address labels (in letter format, thus 12-15 addresses per page) and cannot decide which one to use. Any recommendations? The best I've seen so far is Prawn: Prawn http://prawn.majesticseacreature.com/ http://advent2008.hackruby.com/past/2008/12/17/awn_and_the_future_of_ruby_pdf_generation/ http://railstips.org/2008/10/14/how-to-generate-pdfs-in-rails-with-prawn Prawn Rails plugin: http://www.cracklabs.com/prawnto btw Prawn with Prawnto for sure. The DSL is a real treat, as is the

Generate PDF from HTML PHP

≯℡__Kan透↙ 提交于 2019-11-27 10:02:06
问题 I want to generate PDF from a PHP file that includes HTML controls like textbox, and textarea. I attached CSS in the same. I tried FPDF, DOMPDF and TCPDF, but still I don't get exactly what I want. How do I pass HTML controls with PHP variables and CSS to these libraries? 回答1: mpdf is another option that you could try. 回答2: EDIT : Found another solution for it, TCPDF is a FLOSS PHP class for generating PDF documents. Looks more dominating library. "PRINCEXML" is a good library (not completely