pdf-generation

Fill Out PDF Forms from an Excel Array

The scenario is this: My company has 2000 customers, and we need to send the all 2000 customers a credit application via PDF. What complicates this is that certain parts of the PDF need to have customer data filled in before the form is sent to the customer. The data that needs to be filled in is currently inside of an Excel array. As...

How can I manage with Rich Text in Pdf's acroforms

Hello, experts! I have Pdf file that contains acroforms which is made by Window's Acrobat program. I need to write Rich Text including Bold text and lists in that acroforms. How can I do it using Java's IText library? I should mention that forms should be flattened(Read only behaviour is also alowed). Maybe somebody has a working exampl...

Reportlab - how to introduce line break if the paragraph is too long for a line

I have a list of text to be added to a reportlab frame style = getSampleStyleSheet()['Normal'] style.wordWrap = 'LTR' style.leading = 12 for legend in legends: elements.append(Paragraph(str(legend),style)) If the legend is too long, the text at the end is not visible at all. How to introduce line breaks in this situation. ...

TCPDF: Left and right aligning a cell leaving space between text and border.

Every time I draw a cell, I get this weird padding between where the border ends and where the text begins. This happens for left and right aligned text. It's much easier to show than describe, so here we go. My code sample: class FPDI_Report extends FPDI { var $now = null; function __construct() { $args = func_get_a...

what causes "insufficient data for image" in a pdf

I have a program in Python (using pyPDF) that merges a bunch of different PDF documents. Sometimes, the resulting pdf is fine, except for some blank pages in the middle. When I view these documents with Acrobat Reader, I get an error message saying "insufficient data for image". When I view the documents with FoxIT Reader, I get some ...

Why am I getting a SegFault when I call pdftk from PHP/Apache but not PHP/CLI or directly

When I call /usr/local/bin/pdftk from PHP in Apache (via shell_exec(), exec(), system(), etc.), it returns the SYNOPSIS message as expected. When I call /usr/local/bin/pdftk input.pdf fill_form input.fdf output output.pdf flatten via shell_exec(), nothing returns. When I copy and paste the exact same string to the same path in the shel...

Generate PDF dynamically with database content

Hi folks, I am generating a PDF file which is 5 pages and all the data are coming from Sqlserver. The PDF contains lot of images,watermark and the number sections has to controled dynamically based on database data. What is the best way to generate PDF.i am debating with Crystal report,MSRS[sometimes it requires Activex installation,wh...

How to merge multiple PDF's in native ActionScript?

I am looking for a solution to this issue but I have not yet found anything conclusive. I would love to get some input. What I need to do is basically to take two or more individual PDF-files and merge them into one. Nothing fancy just sticking one after the other and ending up with one file. I have found AlivePDF and purePDF but those ...

Question marks just started appearing in PDF files created from HTML using ABCpdf

I have a web based application (ASP.NET 2.0) on a virtual dedicated Windows Server 2003 SP2 box, that converts HTML forms and converts them to PDF using ABCpdf. It has been around for years, and hasn't been changed for at least the last two of those years. Three days ago it started placing question marks throughout the outputed PDF doc...

RDLC file generating PDF and send via email

I'm generating PDF files from RDLC report programaticaly without a viewer (ASP.NET 2.0 C#). I would like to find a way to send it directly via email without downloading the PDF file. Thanks for any help. ...

Problem in picture overlapping when I convert HTML page to PDF.

I want to overlap pictures, but it is not working and I need some help. Here's the link to the page I'd like to convert: http://9m9.com/innovative/sample/two.html I want to convert this page to a PDF. You can see the small image overlapping the bigger one. This is the page where you can click on a link that will convert the page to PD...

ASP.NET/ MVC/ C#/ Jquery/ creating a CMS front end and PDF Generator

Hi, I have a few general ideas on how I want to do this, but any help/ guidance would be greatly appreciated... What I am trying to do is: create a front end cms system, VERY, VERY SIMPLE where a report will be generated from i.e. a template, using jquery (drag, drop etc), included in the report will be placeholders where data will be i...

Programmatically Generate PDF from HTML on iPhone

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 b...

iPad - Appending image/text at the end of PDF

I'm playing with CGPDFDocumentRef on iPad to read and write PDF's. While going through the CGPDFDocumentRef class reference, I found ways to read, search and create a PDF file. Thanks to stackover.com where I found more solutions to what I want. But I would like to know how to append text or image at the end of PDF. Or some other instan...

iTextSharp creation of a pdf from a list of byte arrays

Hi people, I've got a list of byte[] which i'd like to concatenate into one byte[] which will be the final PDf. On the "page = copy.GetImportedPage(new PdfReader(p), i); " i'm getting an "object reference not set to an instance error. I've got no clue of what's going on, i've already checked every object and there's no null. Any id...

Problem when try to add image to a pdf

I am generating pdf using java and itext. When I add image that we used before in previous version of the pdf everything is fine. But when I replace it with the new one(they are both png-s) it corrupts the PDF(my PDF reader return "not a pdf or corrupted). Are there any special things that must be set when saving the image? It gives me t...

cl-pdf output error

I'm trying to use cl-pdf for some fairly basic PDF generation, but I'm getting tripped up at the examples (which is embarassing to say the least). When I run the first example included in the package (defun example1 (&optional (file #P"/tmp/ex1.pdf")) (pdf:with-document () (pdf:with-page () (pdf:with-outline-level ("Example...

PageStamp.AlterContents() NullReferenceException

Hi, this is the problem: i've got this piece of code... It keeps throwing a NullReferenceException at the stamp.AlterContents(); line. i've got no clue on what's going on. Any help appreciated! public static byte[] concatAndAddContent(List<byte[]> pdf) { byte [] todos; using(MemoryStream ms = new Mem...

Can Crystal Reports generate documents in PDF/A file format?

We are looking for a solution to generate documents in PDF/A format for sharing and also archiving purpose. I checked the description of ExportFormatType.PortableDocFormat, however it just say PDF file. Can the Crystal Reports generate PDF/A compatible files? ...

html to pdf very large files php

hi i am trying to create a pdf files in php useing dompdf-0.5.1 i am creating these files from html i have a large number of data everytime i try to create a big file its getting stuck giving me errors is therey any library that i can use for large pdf files from html also its working for small and normal files thanks Fatal error: ...