pdf-generation

Create PDF iOS7

纵饮孤独 提交于 2019-12-31 17:24:34
问题 to create a pdf programmaticallly inside my iOS app I followed this tutorial on mobile.tut+: http://mobile.tutsplus.com/tutorials/iphone/generating-pdf-documents/ but two methods are now deprecated in iOS7, but what xcode suggest to use instead of old methods doesn't seems to work. somebody have an idea? thanks! - (CGRect)addText:(NSString*)text withFrame:(CGRect)frame fontSize:(float)fontSize{ UIFont *font = [UIFont fontWithName:@"HelveticaNeue-Light" size:fontSize]; NSMutableParagraphStyle

Creating a PDF and sending by email

你离开我真会死。 提交于 2019-12-31 16:51:53
问题 I am looking at the ablity for users to enter some information into a form and send it via mail() . What I'd like is for the details to be sent as a PDF attachment. Possibly with the name of the the sender and a date/time. test_user_06052011.pdf I have a design for the PDF, but I'm not sure how I'd integrate this design to create a PDf in PHP. Does anyone have an examples or ways in which I could do this? 回答1: Have a look into FPDF - http://www.fpdf.org/ - It's free and a great tool for

Python: Create automated strictly-designed multi-page .pdf report from .html

旧街凉风 提交于 2019-12-31 09:06:18
问题 What are good Python-based options to create strictly designed .pdf reports from .html? I've attached a draft .pdf to illustrate the following points: The design of the report is rather strictly designed. In other words "Looks matter". The report contains complex vector graphics (package: Matplotlib).These may slightly differ in size . The report contains images. The report contains a large number of numbers / strings filled in dynamically. Optimally, the solution would use open source

ASP.NET 4: HttpResponse open in NEW Browser?

耗尽温柔 提交于 2019-12-31 07:53:51
问题 I am using a PDF generater that utlizes HttpResponse. Is there a way (perhaps passing a header tag) to open the PDF in a NEW windows instead of the same one? I don't want the user to be directed away from the website... Here's the code I'm using: System.Web.HttpResponse response = System.Web.HttpContext.Current.Response; response.Clear(); response.AddHeader("Content-Type", "application/pdf"); response.AddHeader("Content-Disposition", "inline; filename=" + downloadName + "; size=" +

How to Insert HTML markup using iTextSharp for creating PDF using C#?

自作多情 提交于 2019-12-30 13:45:10
问题 I am new to iTextSharp API to create PDF . I want to Create the a PDF similar shown in following image: I have added Table( PdfPTable ) to Display the Left part (Text other than the Orange Bordered) protected void CreatePDF() { //Create PDF slip PdfPTable pdfTabdevices = new PdfPTable(2); DataTable dt = Session["MyList"] as DataTable; pdfTabdevices = GetDataFromSQLTable(dt);//Get the device lists Document doc = new Document(iTextSharp.text.PageSize.A4, 20, 20, 42,35);//iTextSharp.text

Splitting a large Pdf file with PDFBox gets large result files

不打扰是莪最后的温柔 提交于 2019-12-30 11:14:52
问题 I am processing some large pdf files, (up to 100MB and about 2000 pages), with pdfbox. Some of the pages contain a QR code, I want to split those files into smaller ones with the pages from one QR code to the next. I got this, but the result file sizes are the same as the source file. I mean, if I cut a 100MB pdf file into a ten files I am getting ten files 100MB each. This is the code: PDDocument documentoPdf = PDDocument.loadNonSeq(new File("myFile.pdf"), new RandomAccessFile(new File(".

How to render a pdf from bytestream in ajax response

喜你入骨 提交于 2019-12-30 10:02:36
问题 I am working on a mobile application.we are using jquery-mobile. we have an option to view or download the records in pdf format. I dont have the control on backend. I will get the pdf data in json object as an ajax response.I want to read that data and display in a pdf. I have next and previous links are also in the page so we need to display pdf in a div. var data = { .... : ...., .... : ...., "pdfstream" : "KioqKioqKioqKioq......", ..... : .... } am able to read all the data but not sure

How can I create a PDF file in classic ASP?

心已入冬 提交于 2019-12-30 06:40:46
问题 Is there any way to generate PDF files from classic ASP? I have a bunch of user-entered data that needs to be turned into a PDF that the user can download. How can I do this? OpenOffice allows exporting documents to PDF, so could this somehow be leveraged? 回答1: I played around a bit with this (Persits ASPPDF): http://www.asppdf.com/ 回答2: Maybe running an external application that could be using CrystalReports... and you just pass it as an xml? That's how i would do it... (lazy mode) 回答3: See

Using Flying Saucer to Render Images to PDF In Memory

天大地大妈咪最大 提交于 2019-12-30 01:00:08
问题 I'm using Flying Saucer to convert XHTML to a PDF document. I've gotten the code to work with just basic HTML and in-line CSS, however, now I'm attempting to add an image as a sort of header to the PDF. What I'm wondering is if there is any way whatsoever to add the image by reading in an image file as a Java Image object, then adding that somehow to the PDF (or to the XHTML -- like it gets a virtual "url" representing the Image object that I can use to render the PDF). Has anyone ever done

Multipage PDF document from predefined template

天大地大妈咪最大 提交于 2019-12-30 00:48:07
问题 I have a requirement to generate invoice reports in PDF using some predefined company templates. I am able to create/generate SINGLE PAGE PDF reports using iTextSharp. Problem: The problem comes when the invoice statement spans MULTIPLE PAGES . I am not able to extend the report(invoice statement) to next(2nd) page. If all the data can not be accommodated on one page it should be written on 2nd page, while still using the company template. The template is present at following path: