Generate PDF in ASP
My problem is not directly related to the ASP but still writing it to this forum. My requirement is as follow:
I have to generate a report in PDF and that report can have tables, images, hyperlinks. I need a program which can generate the PDF from HTML string (may be from file). In this PDF, hyperlinks should be clickable. I tried many options and only problem is Hyperlinks. These are coming as plain text on PDF.
I am not using PDF generator from Adobe. If it is available then inform me. I know that we can generate the PDF from acrobat but i have to do it from asp file on the fly. If this API is available from Adobe Acrobat then please give me a more details.
I tried WebGrabber from Active PDF, Doc Converter Pro from Neevia.com but in every tool I am not getting the Hyperlinks as clickable links.
Generate PDF files
Hi, I don't know if it will help you but U can find a french website with others PDF solution here : http://dypso.free.fr
Hope this will help
Persits software have an application called AspPDF http://www.asppdf.com that will do this.
PDF create in ASP (Full version)
It is Working fine - (Full version). No third party dll . Try this
All the best
Yes I agree with R Muruganandhan that http://www.fpdf.org is incredible in that an ASP page can create a .pdf file without using a component!
Originally Posted by R Muruganandhan
This is the same things as fpdf but its a port with asp. While the fpdf works fine in PHP, working in asp might be more helpful.
I have run this page through google translate because it was in a different language.
Image Link for PDF in ASP
' Import class JScript in file VBScript
'Call Class file
' Add document PDF
'pdf.Cell 80,10,"R Muruganandhan!"
pdf.Image "Bharathi.jpg", 10, 10, 10, 10
'pdf.Image "News1.jpg", 10, 10, 10, 10
'pdf.LoadModels "Microsoft Word - EmailId.PDF"
'pdf.Cell 40,10, "Name: " & rs("Name")<br>
'pdf.Cell 40,10, "Age: " & rs("Age")
'pdf.MultiCell 80,110,"R Muruganandhan!"
pdf.Cell 80,100,"R Muruganandhan!"
Note : Download fpdf.Zip and modify in Main.asp
Using fpdf.asp, does anyone know how to setup a PDF output in Landscape format ?
This is a page from the manual that explains how to set the orientation in PHP.
http://www.fpdf.org | Click on Manual | Click on FPDF - constructor:
FPDF([string orientation [, string unit [, mixed format]]])
This is the class constructor. It allows to set up the page format, the orientation and the unit of measure used in all methods (except for font sizes).
Default page orientation. Possible values are (case insensitive):
P or Portrait
L or Landscape
Default value is P.
User unit. Possible values are:
A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.
Default value is mm.
The format used for pages. It can be either one of the following values (case insensitive):
or an array containing the width and the height (expressed in the unit given by unit).
Default value is A4.
Example with a custom 100x150 mm page format:
$pdf = new FPDF('P', 'mm', array(100,150));
And here's the page for ASP but it's in Spanish:
And here's a line of ASP code in my style of coding:
objPdf.CreatePDF "L", "mm", "Letter" ' Landscape, inch, letter size.
Last edited by Bullschmidt; 09-16-2008 at 02:13 AM.
Perfect thanks - all sorted
Pdf.CreatePDF "L", "mm", "A4"
Using fpdf.asp, does anyone know how to draw table with html code in my pdf document?
Is there a support for non latin UTF-8 Encoding ?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)