From 77d97b695420730e16fdae5d4deb132e2f95dead Mon Sep 17 00:00:00 2001 From: Suraj Jha Date: Tue, 19 Aug 2025 23:35:00 +0545 Subject: [PATCH] update: add template generation from pdf as well --- .../components/FileUploadSection.tsx | 10 +-- .../custom-template/hooks/useFileUpload.ts | 7 ++- .../hooks/useSlideProcessing.ts | 63 ++++++++++++------- .../custom-template/page.tsx | 4 +- .../custom-template/types/index.ts | 2 +- 5 files changed, 55 insertions(+), 31 deletions(-) diff --git a/servers/nextjs/app/(presentation-generator)/custom-template/components/FileUploadSection.tsx b/servers/nextjs/app/(presentation-generator)/custom-template/components/FileUploadSection.tsx index a371c9df..0c164890 100644 --- a/servers/nextjs/app/(presentation-generator)/custom-template/components/FileUploadSection.tsx +++ b/servers/nextjs/app/(presentation-generator)/custom-template/components/FileUploadSection.tsx @@ -36,10 +36,10 @@ export const FileUploadSection: React.FC = ({ - Upload PPTX File + Upload PDF or PPTX File - Select a PowerPoint file (.pptx) to process. Maximum file size: 50MB + Select a PDF or PowerPoint file (.pdf or .pptx) to process. Maximum file size: 50MB {slides.length > 0 && (
@@ -56,12 +56,12 @@ export const FileUploadSection: React.FC = ({