pdf-generation

How to save created PDF in document folder and merge in iOS

不羁的心 提交于 2019-11-26 16:48:26
问题 Updated I am able to create single PDF page of photo captured with comment in iPHone. On button click I am generating one single PDF page every time and I want those PDF page in single PDF bunch. I am not able to merge the single PDF files in to bunch. http://mobile.tutsplus.com/tutorials/iphone/generating-pdf-documents/?search_index=3 I have followed the above URL code. Could you suggest some logic here. Thanks in advance. * Edit in code * can you check below code. - (IBAction

put page number when create PDF with iTextSharp

时光怂恿深爱的人放手 提交于 2019-11-26 16:29:41
问题 I'm working with ASP MVC and i use iTextSharp to generate PDF's in my application. But now i have a problem: I printing lists and when exist more than one page, i want to show the page number (ex.: Page 1 to 4 ). I found some examples, but i think it is more complexes than i need to do (like exameple). EDIT: I found this example 2. I can count number of pages, but i cant print the number in pages. What i did: public ActionResult downloadListaISCC(DateTime? DataFimFiltro) { //Code to generate

Password protected PDF using C#

别说谁变了你拦得住时间么 提交于 2019-11-26 16:26:48
问题 I am creating a pdf document using C# code in my process. I need to protect the docuemnt with some standard password like "123456" or some account number. I need to do this without any reference dlls like pdf writer. I am generating the PDF file using SQL Reporting services reports. Is there are easiest way. 回答1: I am creating a pdf document using C# code in my process Are you using some library to create this document? The pdf specification (8.6MB) is quite big and all tasks involving pdf

Export Highcharts to PDF (using javascript and local server - no internet connection)

一世执手 提交于 2019-11-26 15:58:47
问题 I am using Highcharts in my application (without any internet connection) I have multiple charts on a html page, and I want to generate a PDF report that contains all the charts from this page. How can I do this without sending the data to any server on the internet ? I will be thankful for any help or any example you can provide. Thank you in advance :) 回答1: Yes this is possible but involves a few different libraries to get working. The first Library is jsPDF which allows the creation of PDF

Render HTML to PDF in Django site

随声附和 提交于 2019-11-26 14:48:13
For my django powered site, I am looking for an easy solution to convert dynamic html pages to pdf. Pages include HTML and charts from Google visualization API (which is javascript based, yet including those graphs is a must). Guillem Gelabert Try the solution from Reportlab . Download it and install it as usual with python setup.py install You will also need to install the following modules: xhtml2pdf, html5lib, pypdf with easy_install. Here is an usage example: First define this function: import cStringIO as StringIO from xhtml2pdf import pisa from django.template.loader import get_template

iTextSharp Password Protected PDF

ぃ、小莉子 提交于 2019-11-26 13:46:12
问题 The following question and answer on StackOverflow show how to generate a PDF that cannot be opened without the appropriate password. Password protected PDF using C# I would like to use this framework similarly, but slightly altered to allow my users to "open" the PDF without needing the password, but only allow them to EDIT the PDF if they have the password. Is that possible with iTextSharp? if this matters, I am working in C# 4.0 within a WF 4.0 custom activity. 回答1: Yes, there are two

Save multiple sheets to .pdf

落花浮王杯 提交于 2019-11-26 13:22:02
I have a reporting spreadsheet that grabs some data from a database and forms three sheets of summary report information. I want to run the spreadsheet automatically from the command line, and have it automatically save all three reporting sheets as a PDF file(s). At first I thought I could have a VBA macro on the sheet do this by a series of "print as PDF", but that requires an intermediary interactive dialog box to specify the output file name. Then I find that I can just save as pdf, and the macro can set the output file name. However this creates three separate files, and I have to then

Convert Html into PDF using webview : can not create multiple pages

烈酒焚心 提交于 2019-11-26 12:48:49
问题 I\'m working on one functionality in my current application, in which i want to convert html file into pdf format and save it in storage. for that i\'m using Printing HTML documents PdfDocument right now I am not keen in using iText because they need you to buy a commercial license. i want to achieve this printing with webview. first i\'m struggling with image display and proper display content which i achieve by changing my code and html file now i cannot create multiple pages in pdf. i can

ITextSharp insert text to an existing pdf

给你一囗甜甜゛ 提交于 2019-11-26 12:46:43
The title sums it all. I want to add a text to an existing PDF file using iTextSharp , however i can't find how to do it anywhere in the web... PS: I cannot use PDF forms. Tony I found a way to do it (dont know if it is the best but it works) string oldFile = "oldFile.pdf"; string newFile = "newFile.pdf"; // open the reader PdfReader reader = new PdfReader(oldFile); Rectangle size = reader.GetPageSizeWithRotation(1); Document document = new Document(size); // open the writer FileStream fs = new FileStream(newFile, FileMode.Create, FileAccess.Write); PdfWriter writer = PdfWriter.GetInstance

Is it possible to justify text in PDFBOX?

谁说我不能喝 提交于 2019-11-26 12:29:08
问题 Is there any function in PDFBOX API to make text justified or we have to do it manually?? and if manually then how to justify text using java(logic behind it) 回答1: This older answer shows how to break a string into substrings fitting into a given width . To make the sample code there draw the substrings in a manner to fill the whole line widths, replace as follows (depending on the PDFBox version): PDFBox 1.8.x Replace the final loop for (String line: lines) { contentStream.drawString(line);