HOME

NEW The Arc
NEW HTML to PDF on-line examples

Free GIS
 

CollinsPdf.js
CollinsHTML.js
CollinsImage.cgi

ICMap
MavericPro
MaverickCenterline
Common Ground

CollinsEdit

(on-line service)
CustomerCareSystem

JavaScript Training
Scripts
 

CollinsPDF FAQ More Examples How to Modify Reference Guide Sample Report

JavaScript PDF Generator (version 1.3)
 

Price: $1,260 U.S.

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');
%>




Google Maps Server Side Example:
 

var url,pdf;

url = "";
url += "http://maps.google.com/maps/api/staticmap?";
url += "center=Brooklyn+Bridge,New+York,NY&zoom=14";
url += "&size=512x512&maptype=roadmap";
url += "&markers=color:blue|label:S|40.702147,-74.015794";
url += "&markers=color:green|label:G|40.711614,-74.012318";
url += "&markers=color:red|color:red|label:C|40.718217,-73.998284";
url += "&format=jpg";
url += "&sensor=false&key=your-key-code";


pdf = new pdf$();
pdf.placeImage(2,2,url,5,0,0);

pdf.setFontSize(24);
pdf.setBold(true);
pdf.setItalic(true);
pdf.placeText(2,0.5,'Collins Software');
pdf.setFontSize(14);
pdf.placeText(2,1,'Googlemaps to PDF');

pdf.sendToClient('GoogleMaps.pdf');
delete pdf;


Adding Images as a Web URL (Client Side Example)

view: ICMap generated static image


var url,pdf;
 

pdf = new pdf$();

url = 'http://CollinsSoftware.com/icmap/ic_ecp/bin/ICMapIS.cgi';
url += "?name=ecp&height=600&width=600";
url += "&x=-95.48151&y=29.79966";
url += "&level=3&layers=states&format=jpg";
 

pdf.placeImage(2,2,url,3,0,0);

pdf.setFontSize(24);
pdf.setBold(true);
pdf.setItalic(true);
pdf.placeText(2,0.5,'Collins Software');
pdf.setFontSize(14);
pdf.placeText(2,1,'Url Image to PDF');

pdf.writeToFile('c:/temp/Sample_UrlImage.pdf');
delete pdf;