pdf-generation

iOS get error by creating a pdf

匆匆过客 提交于 2020-01-01 21:09:22
问题 i want to create a pdf file, but i get 2 errors: <Error>: CGDataConsumerCreateWithFilename: failed to open `/test.pdf' for writing: Operation not permitted. deflateEnd: error -3: (null). and this one <Error>: CGPDFContextCreate: failed to create PDF context delegate. I compute the path in the controller class - (void)viewDidLoad { documentName = @"test.pdf"; NSArray *arrayPaths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask, YES); NSString *path = [arrayPaths

Server Side HTML to PDF

余生长醉 提交于 2020-01-01 17:26:08
问题 I'm trying to find a C# library that will allow me to "Print" one of my HTML pages to a PDF file. I can't seem to find out if one currently exists that will allow you to do this. I've found several that will let you build a page, but haven't noticed if one would generate the pdf only based off of HTML. EDIT: I'm not allowed a budget on this at work so it will need to be an open source/free product. If not I'm aware of iTextSharp and will have to generate the pdf programmatically (which is

MS-Office Document Conversion to .PDF Format [closed]

自闭症网瘾萝莉.ら 提交于 2020-01-01 11:49:10
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am looking for a MS-Office document to .PDF 3rd party software that does not create the need for my code to manipulate the COM

Active Admin view to PDF

萝らか妹 提交于 2020-01-01 10:12:59
问题 I'm starting to develop in Ruby on Rails recently, therefore I consider myself beginner. I'm testing the Active Admin gem ( http://activeadmin.info/ ) and I found a problem when export a view to PDF. In the official documentation says how to customize the download links (http://activeadmin.info/docs/3-index-pages.html, it is at the end of the document) but does not work for me. When I put the following line of code: Mymodel ActiveAdmin.register do index: download_links => [: pdf] end The

secure pdf : locked/uneditable to prevent changes after generating from iOS device

筅森魡賤 提交于 2020-01-01 07:01:28
问题 I am using UIKit Framework to generate pdf in iOS device. I am wondering if we can lock (provide security) to the generated pdf so that after emailing or downloading it , one can not edit/modify using any pdf editable tool. 回答1: Yes - this is possible. If you start the creation of a PDF with UIGraphicsBeginPDFContextToFile you can then send a dictionary to it with options to specify what kind of encryption/locking you want. Here is the documentation for it: http://developer.apple.com/library

Produce PDF files, draw polygons with rounded corners

隐身守侯 提交于 2020-01-01 05:33:06
问题 What's the right tool for the job if I want to write a Python script that produces vector graphics in PDF format ? In particular, I need to draw filled polygons with rounded corners (i.e., plane figures that are composed of straight lines and circular arcs ). It seems that matplotlib makes it fairly easy to draw rectangles with rounded corners and general polygons with sharp corners. However, to draw polygons with rounded corners, it seems that I have to first compute a Bézier curve that

How would you programmatically embed a SWF in a PDF?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 05:20:32
问题 Is it possible to programmatically embed a SWF in a PDF from a C# application? 回答1: You can use the c# port of the iText library. It's called iTextSharp. http://itextsharp.com/ An example of what the code could look like: // create an output file stream which will be used to capture the generated file string outputFileName = "output.pdf"; FileStream outputFile = new FileStream(outputFileName, FileMode.Create); // open the original pdf file as a PdfReader PdfReader reader = new PdfReader(

How to produce documents (docx or pdf) from SQL Server?

假装没事ソ 提交于 2020-01-01 04:25:10
问题 I know this is a little subjective, but I'm looking into the following situation: I need to produce a number of documents automatically from data in a SQL Server database. There will be an MVC3 app sat on the database to allow data entry etc. and (probably) a "Go" button to produce the documents. There needs to be some business logic about how these documents are created, named and stored (e.g. "Parent" documents get one name and go in one folder, "Child" documents get a computed name and go

Building table dynamically with PDFMake

亡梦爱人 提交于 2019-12-31 22:25:34
问题 I'm working with pdfmake to generate pdf with javascript. I'm trying to build a table dynamically but not works ,this my attempt $.ajax({ type: "POST", url: myURL, success:function(data){ /* data has a format like : *[{"peaje":"Peaje 1","ruta":"Ruta 1","fechaCruce":"2014-10-18","hora":"15:42","valor":"5000"},{"peaje":"Peaje 1","ruta":"Ruta 1","fechaCruce":"2014-10-18","hora":"14:21","valor":"7000"},{"peaje":"Peaje 1","ruta":"Ruta 1","fechaCruce":"2014-09-19","hora":"11:58","valor":"17000"}] *

Splitting a PDF with Ghostscript

安稳与你 提交于 2019-12-31 17:50:25
问题 I try to split a multipage PDF with Ghostscript, and I found the same solution on more sites and even on ghostscript.com, namely: gs -sDEVICE=pdfwrite -dSAFER -o outname.%d.pdf input.pdf But it seems not working for me, because it produces one file, with all pages, and with the name outname.1.pdf . When I add the start and end pages, then it is working fine, but I want it to work without knowing those parameters. In the gs-devel archive, I found a solution for this: http://ghostscript.com