From 4e3b6b8bc9bebb4ffd6fbd1de277ae98d7b65549 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Fri, 17 Apr 2026 02:17:00 +0000
Subject: [PATCH] Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
---
src/routes/documents.pleading.new.tsx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/routes/documents.pleading.new.tsx b/src/routes/documents.pleading.new.tsx
index fd7dc8e..324beb3 100644
--- a/src/routes/documents.pleading.new.tsx
+++ b/src/routes/documents.pleading.new.tsx
@@ -13,11 +13,12 @@ import {
import { FL_CIRCUITS } from "@/lib/florida";
import { Packer } from "docx";
import { buildPleadingDoc, downloadPleading, type PleadingFootnote } from "@/lib/docx-pleading";
+import { downloadPleadingPdf } from "@/lib/pdf-pleading";
import { RichTextEditor } from "@/components/documents/rich-text-editor";
import { supabase } from "@/integrations/supabase/client";
import { useAuth } from "@/lib/auth";
import { toast } from "sonner";
-import { Download, Save, Loader2, Plus, Trash2 } from "lucide-react";
+import { Download, FileText, Save, Loader2, Plus, Trash2 } from "lucide-react";
export const Route = createFileRoute("/documents/pleading/new")({
component: PleadingNewPage,
@@ -66,6 +67,10 @@ function PleadingNewPage() {
await downloadPleading(input, docName || "Pleading");
};
+ const onDownloadPdf = async () => {
+ await downloadPleadingPdf(input, docName || "Pleading");
+ };
+
const onSave = async () => {
setSaving(true);
try {
@@ -113,6 +118,7 @@ function PleadingNewPage() {
description="Florida court caption ยท Bookman Old Style, 12pt"
actions={
<>
+