A JavaScript Report Generator / PDF file creation object. Create PDF
reports at
the server or client side without the need for any extra software or libraries.
Used byCollinsRMS, on the server, to deliver Quote, Rate Sheet,
and Report pdf files to clients. The CollinsPDF.js handles many of
the standard reporting functions, to produce an excellent Report with
minimum coding on your part.
This code solves a problem; How can I
generate reports without installing special software at the server? You
can now
produce PDF Reports on a shared ASP web server, or at the client. There is nothing to install,
simply include the CollinsPdf.js file and begin calling its functions.
The Professional
version contains the full implementation of the report generator
and is unrestricted on the types of elements that are used in
the creation of the PDF. See the Product
Caparison Chart
for more details
The current capabilities:
Pagination
Line Breaks
Font Name, Color, Size, Bold, Italic, and Underline
Page Margins
Page Header and Footer
Reporting (groups, group headers, group
footers, keep together, details)
Rulers (columns, word wrap, truncate,
justifications, borders, vertical alignment)
Landscape and Portrait
Graphics (Lines, Rectangles)
Jpeg Images (scale and rotate)
Watermarks
Hyperlinks
run at Client and Server (ASP)
write to file, send to client, send to server
Client Side - Minimum Code:
<html><head> <script src="CollinsPdf.js" language="javascript"></script> <script>
function createPdf()
{
pdf = pdf$(); pdf.addText('Hello World'); pdf.writeToFile('c:/temp/hello_world.pdf');
}
</script>
</head><body>
<input type=button value="Create and Open Pdf file" onClick=createPdf()>
</body></html>
Server Side - Minimum ASP Code:
<%@ language=jscript%> <script SRC="CollinsPdf.js" language="JavaScript" runat="Server"></script> <% pdf = new pdf$('SAMPLE'); pdf.addText('The date is: ' + new Date());
pdf.sendToClient('sample_asp.pdf'); %>