Pactly Pactly

Pactly | Agreement Builder HTML5 Template With PDF Export

Complete documentation for buyers and CodeCanyon implementation guide

What You Get

Pactly is a professional, lightweight HTML5 contract and agreement builder designed to work entirely in the browser with no backend required. Perfect for freelancers, agencies, and small businesses that need to generate legal documents quickly.

Key Features

Use Cases

Files Included

File/Folder Purpose
index.html Landing/demo page with features overview
app.html Main contract generator interface
pricing.html, terms.html Additional pages (templates)
assets/css/style.css Main stylesheet with CSS variables for theming
assets/css/fonts.css Local @font-face declarations
assets/js/main.js Application logic and template definitions
assets/js/jspdf.umd.min.js jsPDF library (bundled, ~200KB)
assets/js/html2canvas.min.js html2canvas library (bundled, ~150KB)
assets/fonts/ Google Fonts bundled locally (Instrument Serif, Geist, Geist Mono)
LICENSES/ MIT licenses for bundled libraries
documentation.html This complete documentation file
README.md Quick setup guide and project overview

Installation & Setup

Step 1: Extract the Package

Unzip the downloaded package to your desired location.

Step 2: Upload to Web Host (or Open Locally)

Option A: Web Server

Upload the entire folder to your web host via FTP/SFTP

Option B: Local Testing

Navigate to the folder and double-click index.html or app.html in your browser

Step 3: Start Using

  1. Open app.html in a modern browser (Chrome, Firefox, Safari, Edge)
  2. Select a contract template
  3. Fill in the details and toggle clauses as needed
  4. Click "Export to PDF" to download the contract
Tip: No backend or database setup required. Everything runs in the browser!

How to Use Pactly

1. Choose a Template

Start by selecting one of the 6 available contract templates:

2. Edit Contract Details

Fill in the form fields with your specific information. Changes update the preview in real-time.

3. Customize Clauses

Toggle individual clauses on or off to include only the sections you need. Edit clause text inline if necessary.

4. Preview Your Contract

The right panel shows a live preview of your contract as you type.

5. Export to PDF

Click the "Export to PDF" button. The contract will download as a formatted PDF file.

6. Save Your Draft (Optional)

Your data is automatically saved to browser localStorage. Close and reopen the app to continue editing your draft.

Customization Guide

Change Colors & Theme

Edit the CSS variables in assets/css/style.css:

:root {
  --primary-color: #0066cc;
  --secondary-color: #f5f5f5;
  --text-color: #333;
  /* Update these to customize your theme */
}

Add or Modify Templates

Edit assets/js/main.js to add new contract templates or modify existing clause text.

Change Fonts

Modify assets/css/fonts.css to use different local fonts or download new Google Fonts and add them to assets/fonts/.

Customize PDF Export Settings

In assets/js/main.js, find the export function and adjust jsPDF options (page size, margins, orientation, etc.).

CodeCanyon Approval Checklist

Before publishing on CodeCanyon, verify the following:

  • ☑ All vendor JavaScript libraries (jsPDF, html2canvas) are bundled in assets/js/
  • ☑ All fonts are bundled in assets/fonts/ with local @font-face declarations
  • ☑ No external CDN links in HTML files (all scripts/styles are local or data URIs)
  • ☑ A LICENSES/ folder exists with MIT license files for each bundled library
  • documentation.html is included in the root
  • README.md contains setup instructions and feature list
  • ☑ Tested in Chrome, Firefox, Safari, and Edge
  • ☑ Item description includes feature list, use cases, and support contact
  • ☑ At least one large screenshot (1240×700px) + smaller preview images included
  • ☑ Version number is consistent in package and documentation (e.g., v1.0.0)

Licenses & Third-Party Credits

This package includes the following open-source libraries under MIT license:

jsPDF

html2canvas

Fonts

Important: Always include the LICENSES/ folder in your packaged item. CodeCanyon requires proper attribution for all bundled libraries.

Troubleshooting

PDF Export Not Working

Fonts Not Displaying Correctly

Data Not Persisting Between Sessions

App Opens But Looks Broken

Support & Contact

For Technical Support: Add your contact email in the CodeCanyon item settings under "Support" section.

Expected Response Time: 24-48 hours

Support Topics: Installation help, customization questions, browser compatibility issues

Bug Reports

If you encounter a bug, please include:

Changelog

Version Date Changes
1.0.0 May 2026 Initial CodeCanyon-ready release with 6 contract templates, PDF export, offline support

Frequently Asked Questions

Q: Do I need a web server to run Pactly?

A: No. You can open the HTML files directly in your browser. However, for production use, hosting on a web server is recommended.

Q: Can I embed Pactly in my website?

A: Yes. Simply include the HTML, CSS, and JS files in your project and link to app.html from your site.

Q: Is my data secure?

A: Yes. All data stays in your browser and is never sent to external servers. Data is stored locally in localStorage.

Q: Can I customize the contract templates?

A: Yes. Edit the templates in assets/js/main.js to modify clause text, add new sections, or create entirely new templates.

Q: What browsers are supported?

A: Chrome, Firefox, Safari, and Edge (all modern versions from 2020 onwards).

Q: Can I translate Pactly to another language?

A: Yes. Edit the text in assets/js/main.js and assets/css/style.css to translate the UI and templates.

Q: What's the file size?

A: Approximately 400-500 KB total (including bundled libraries and fonts). Optimized for fast loading.

Q: Can I add more contract templates?

A: Yes. Duplicate an existing template in assets/js/main.js and customize it for your needs.

Quick Reference

Important Files

Customization Priority

  1. CSS colors → Edit :root variables in style.css
  2. Contract templates → Edit template objects in main.js
  3. Fonts → Update fonts.css or add new fonts to assets/fonts/
  4. Layout → Modify HTML structure in page files