pdf-generation

Find the field names of inputtable form fields in a PDF document?

只愿长相守 提交于 2019-12-04 14:17:06
Find the field names of inputtable form fields in a PDF document? I have an editable PDF form that I'm trying to automate the entry of form fields into using python. In order to do this I must know the "names" of the form fields in the FDF data to input. See question for background: How can I auto-populate a PDF form in Django/Python? I don't need to find the names programaticaly from the PDF necessarily, just need to know what they are so if this is possible in Preview/Adobe/etc. PDF readers/editors that is sufficient. Katriel Previously asked . Have a look at pdftk's dump_data_fields . 来源:

ASP.Net Converting and Merging documents into single PDF

随声附和 提交于 2019-12-04 14:14:52
I need to have the ability to convert and merge various documents into a single Pdf. The documents could be of varying types, such as Word, Open Office, Images, Text, Web pages (by URL) and the PDF would usually consist of 2-3 documents. At the moment, we are using BCL Technologies easyPDF with Microsoft Office installed onto the Server. This handles most documents but we haven't had it doing Open Office ones yet. We currently produce around 100-1000 of these PDF's per day. The reason I am asking the question is that performance is a key issue. The PDF is generated for users on the fly and so

Programmatically Generate PDF from HTML on iPhone

此生再无相见时 提交于 2019-12-04 14:11:31
问题 I am looking for a way to programmatically (in obj-c) generate a PDF file from a local html file. I am dynamically generating the html from user inputs, I need to create the PDF and send it to the user (via email). I am having difficulty with the PDF generation portion. I have the code to create a PDF using CGPDFContextCreateWithURL but I am struggling with drawing the page using quartz. I have searched extensively on SO as well as the internet to no avail. Any help is much appreciated! 回答1:

unable to install wkhtmltopdf with patched qt in ubuntu 16.04

橙三吉。 提交于 2019-12-04 13:20:07
问题 wkhtmltopdf with patched qt pkg is not available for ubuntu 16.04 .so i am install 14.04 pkg which is install without patched qt but it need it with patched qt. I also tried with static version but it give some compilation error 回答1: The patched version of wkhtmltopdf is not present in the Ubuntu repository. You can download it from the project website if you want. But they still don't have a .deb file for Xenial Xerus, so you need to download the binary file and install the dependencies (

Merge files into a single PDF using PHP/linux

老子叫甜甜 提交于 2019-12-04 12:54:43
I'm investigating how one can combine multiple PDF's into a single PDF. I'm looking for a library that is as reliable and robust as possible. Preferable a library that can preserve bookmarks . Ghostscript can concat where the bookmarks are preserved, but I experienced trouble where it in one case failed to generate any output.pdf. gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf document1.pdf document2.pdf document3.pdf GPL Ghostscript 8.54: Unrecoverable error, exit code 1 GPL Ghostscript 8.54: ERROR: A pdfmark destination page 36 points beyond the last

Include ICC Colour Profile in PDF created with Objective-C iOS?

☆樱花仙子☆ 提交于 2019-12-04 12:52:05
In my Objective-C iOS app I'm creating PDF files using the code: UIGraphicsPDFRenderer* renderer = [[UIGraphicsPDFRenderer alloc] initWithBounds:pdfSize]; NSData* outputPdfData = [renderer PDFDataWithActions:^(UIGraphicsPDFRendererContext * _Nonnull context) { [context beginPage]; // draw operations here }]; The ultimate aim is to then send this PDF to an AirPrinter. However, due to the printer hardware we're using it looks like it is going to be necessary to embed in to the PDF an ICC colour profile (possibly CMYK) to ensure accurate colour reproduction. I've done such operations before in

PHP: Automatically Saving a dynamic PDF to the remote server using DOMPDF

邮差的信 提交于 2019-12-04 12:13:55
问题 I am using the dompdf library to create my table based PDF and I can view it online or I can have it download to the users folder of choice. But what I would like to do is have it save it to the remote server( i dont need it to be save to the users PC), like an automatically upload script that would create the file then upload it to the remote server, so i can then use it within my application later on. is it possible to point the $_FILES["file"] script say so fetch the php page that creates

How to converted SVG Files into PDF in JSPDF using javascript

强颜欢笑 提交于 2019-12-04 10:56:05
I struggled to converted SVG Files into PDF using JSPDF. Here i Worked in following code. var doc = new jsPDF(); var test = $.get('amChart.svg', function(svgText){ // console.log(svgText); var svgAsText = new XMLSerializer().serializeToString(svgText.documentElement); console.log(svgAsText); doc.addSVG(svgAsText, 20, 20, doc.internal.pageSize.width - 20*2) //console.log(doc); // Save the PDF doc.output('datauri'); }); I get this script from this SO Answer .Its results only blank PDF .When i console.log(doc) before output it will shown results.But it will not results in PDF ... And I also i

How do I insert a background image on all pages of a pdf-document? [closed]

不羁的心 提交于 2019-12-04 10:54:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I need sample code in C# to insert the background image on all pages of the finished pdf-document. I'm using iTextSharp library. 回答1: You can try this; void makePDF() { Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=test.pdf"); Response.Cache

Adding text to existing pdf which is closed using itextsharp

岁酱吖の 提交于 2019-12-04 10:13:42
Hi I am creating PDF using itextsharp. Now my requirement is to add more text to the existing pdf. Is it possible if so then how can I do that? Thanks Dipa Yes, with certain limitations. It is difficult, but not impossible, to determine what is already on an existing page. If all you want to do is add "page X of Y" to the bottom left corner of all your pages, that's easy . PdfReader reader = new PdfReader( inPath ); PdfStamper stamper = new PdfStamper( reader, new FileOutputStream( outPath ) ); BaseFont font = BaseFont.createFont(); // Helvetica, WinAnsiEncoding for (int i = 0; i < reader