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. The CollinsPDF.js handles many of
the standard reporting functions (group header/footers, keep together, cell
alignment), to produce an excellent Report with minimum
coding.
You
can
produce PDF Reports on an ASP web server, or at the client. There is nothing to install,
simply include the CollinsPdf.js file and begin calling its functions.
NEW
to Version 1.3:
Text Displays:
Render, Scale, Letter/Word Spacing, Skew
Jpeg URL Images (add
images as from a URL address, map servers such as Google-maps)
Other Capabilities:
Pagination
Line Breaks
Font Name, Color,
Size, Bold, Italic, Underline, Subscript, and Superscript
Text Displays,
Render, Scale, Letter/Word
Spacing, Skew
Page Margins
Bookmarks (multiple
levels)
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,
Circles, Symbols)
Text Boxes
Jpeg Images (scale and rotate)
Watermarks
Hyperlinks
Run at Client or 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');
window.open('file://c:/temp/hello_world.pdf');
}
</script>
</head><body>
<input type=button value="Create Pdf file" onClick=createPdf()>
</body></html>
Server Side - Minimum ASP Code:
<%@ language=JavaScript%> <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'); %>