From 4f1eaa5dd6e31f3eb509a75c52d7da1a08b33226 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 20 Apr 2026 00:39:09 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/documents.pleading.new.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/routes/documents.pleading.new.tsx b/src/routes/documents.pleading.new.tsx index 7ada058..702ddf8 100644 --- a/src/routes/documents.pleading.new.tsx +++ b/src/routes/documents.pleading.new.tsx @@ -15,7 +15,7 @@ import { Switch } from "@/components/ui/switch"; import { FL_CIRCUITS } from "@/lib/florida"; import { Packer } from "docx"; import { buildPleadingDoc, downloadPleading, type PleadingFootnote, type PleadingSignature, type ServiceContact } from "@/lib/docx-pleading"; -import { downloadPleadingPdf } from "@/lib/pdf-pleading"; +import { downloadPleadingPdf, buildPleadingPdfBlob } from "@/lib/pdf-pleading"; import { RichTextEditor } from "@/components/documents/rich-text-editor"; import { ContactPickerPopover } from "@/components/clients/contact-picker-popover"; import { supabase } from "@/integrations/supabase/client"; @@ -276,10 +276,6 @@ function PleadingNewPage() { mimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; ext = "docx"; } else { - // Generate PDF blob via downloadPleadingPdf path — but we need the bytes, - // so build it inline mirroring the helper. The helper saves directly, - // so we use a workaround: dynamically import jsPDF output. - const { buildPleadingPdfBlob } = await import("@/lib/pdf-pleading"); blob = await buildPleadingPdfBlob(input); mimeType = "application/pdf"; ext = "pdf";