Inspiration

One of the major pain point in the financial sector is the slow, manual process of generating and protecting high-stakes financial approval letters. Loan officers manually edit Word documents for every borrower, which leads to errors in interest rates and property addresses. Furthermore, standard PDFs can sometimes be edited after generation, creating a fraud risk. SecureFin DocGen is here to the rescue..

What it does

Automated Mortgage Approval Pipeline Powered by Foxit Document Generation API & PDF Services API(Flattening, Compression & Linearization AI) .

An automated pipeline where:

1.) The Use Case: Mortgage Approval Automation.

The Problem: Loan officers manually edit Word documents for every borrower, which leads to errors in interest rates and property addresses. Furthermore, standard PDFs can sometimes be edited after generation, creating a fraud risk.

The Solution: An automated pipeline where:
Input: The officer enters loan details into a secure UI.
Generation (Document Generation API): A professional, branded mortgage letter is created dynamically.
Enhancement (PDF Services API): The document is Flattened (to lock legal text and prevent fraud), Compressed (to ensure it meets small-file-size requirements for bank portal uploads) and Linearized so mobile-using borrowers can open large contracts instantly on 4G/5G networks. Every step is logged to our compliance database for a full audit trail.

The Admin then Signup and Login into the Admin Section to access all submitted applications by the Loan Officers.

Admin can mark any of the submitted application as Accepted/Closed.

Admin can also view Properties Location on Maps and can also visualize all submitted applications vs Applications still Open and awaiting approval vs Applications already Accepted/Close leveraging Google Chart Satistics via Linechart, Barchart and PieChart Statistical distribution Analysis..

For Properties Mapping and accessibility on Map, the Application leverages:

1. Leaflet.js (The Map Engine):
This is the open-source JavaScript library you used to display the interactive map in your Bootstrap modal. It is a 100% free alternative to the Google Maps JavaScript API.
2. OpenStreetMap (OSM) (The Map Provider):
These are the "tiles" (the actual images of the world) that loaded inside Leaflet. It is the most popular free, crowdsourced map data in the world.
3. Nominatim API (The Geocoder):
I used this to turn the text address (e.g., "123 Broadway, NY") into Latitude and Longitude coordinates.



2.) Architecture: Input → Generate → Process → Deliver

Transparency: The progress bar moves logically (10% →→ 50% →→ 60% →→ 85% →→100%).
By updating the percentage at specific intervals (15%, 60%, 85%, 100%), the loan officer feels the "power" of the automated system.

Sophistication: The app demonstrates the ability to handle state-dependent workflows.
You can't compress a file that hasn't been flattened yet, and you can't linearize a file that isn't compressed. Result Quality: The final file the borrower receives is smaller (faster email) and web-streamable (faster viewing).

The "Full Suite" Logic: The app aren't just generating a file; you are Generating (DocGen) →→ Securing (Flattening) →→ Shrinking (Compression) →→ Streaming (Linearization). This is a professional "Production-Grade" workflow.

Frontend: jQuery AJAX collects form data.

Step 1 (DocGen): PHP sends JSON data to Foxit to merge with a .docx template.
Step 2 (PDF Services): The resulting PDF is uploaded back to Foxit Cloud.
Step 3 (PDF Services): The "Flatten" operation is triggered to lock the file, followed by Compression and finally Linearized.

Output: A secure, optimized PDF is delivered for download.

3.) Data Handling & Security:

Storage: The generated PDF is stored as a temporary file.
Persistence: Users data are stored in a database as PDF is generated. Security: Authentication is handled via secure headers on the server-side, ensuring the API Client Secret is never exposed to the browser console.

Submission Use Case Update:

The app provides "Immutable Financial Record Keeping." Every document generated is not only flattened, Compressed and Linearized for security but archived on the corporate server with a traceable registration number for compliance auditing.

4. Judging Criteria Highlights:

End-to-end usefulness: Solves a multi-billion dollar fraud and manual-entry problem in finance.
Design Flow: Clean transitions from input form to progress tracking to final secure delivery. Technical Execution: Effectively chains two different Foxit API families (DocGen + PDF Services) into a single user-click experience.

Built With

Share this project:

Updates