Solved

Dynamic PDF files with ASP and FDF

Posted on 2004-09-27
7
423 Views
Last Modified: 2012-06-27
HI,

I'm new to FDF and PDF. I have a report I need to generate and put in a PDF format. I'm using ASP to get the data from the database. My only problem is that some sections will need to be repeated. For example, A person might have 3 different cars listed on the report but I need to account for the possibility of them having at most 10 and at least 1, is there any looping like structure available to use which would repeat a section of the PDF document so I can have 1 PDF document and it will account for all the numbers of cars? I also have a large text field which needs to be returned, is there a way to set up a field in the PDF document which will take a large amount of text and word wrap it within a specific space?

Thanks,

Darksbane
0
Comment
Question by:Darksbane
  • 4
  • 2
7 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
Comment Utility
You should use something like iText.NET (http://itextdotnet.sourceforge.net/en/) to create your PDF documents. This way, you can use all the control mechanism that you have available in ASP to create your PDF document.
Look at teh web site, they have examples for what's possible with iText (.NET).

You could use form fields to solve your problem, but because you are doing this on the server, it would be pretty complicated to get the template feature to work. In Acrobat (not the free Reader) you can create multiple instances of a page by using the page template feature. Whenever you need to start a new record, you would just add one or more new pages to the document and fill in the form fields.
Acrobat (the full version) cannot be used on a server (see the EULA for more information).
This means that you would need a FDF merger/flattener that does support templates.

I will look around to see if any of the packages I'm familar with support templates.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
Comment Utility
And, a normal text form field will do word wrapping.
0
 
LVL 2

Author Comment

by:Darksbane
Comment Utility
I looked at the link, is there anything in regular asp which is similar? We would like to stay away from .net since the rest of our site is in regular ASP. Also is there a way to force a newline in the data passed over in the FDF form?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 400 total points
Comment Utility
Not for the same price :-(

http://www.websupergoo.com/abcpdf-1.htm - this seems to be free for now, you just have to link back to their web page.

http://www.asppdf.com/
http://dynamicpdf.com/Products/ (last one in the list)
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
Comment Utility
To create multi-line text fields, you need to enable the multi line feature on the properties dialog for your text field (this is on the "Options" tab). In the FDF file, you need to indicate line breaks with '\n':

this is the first line\nand the second line.
0
 
LVL 8

Assisted Solution

by:RLGSC
RLGSC earned 100 total points
Comment Utility
Darksbane,

Take a look at PDFLIB.COM, the PDFLIB package allows you to directly create PDF files under program control.

- Bob (aka RLGSC)
0
 
LVL 2

Author Comment

by:Darksbane
Comment Utility
Going with the ABCPDF, thanks for all the help
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now