diff --git a/src/layouts/upload/inputPDF.js b/src/layouts/upload/inputPDF.js index ebbd701..cbb481d 100644 --- a/src/layouts/upload/inputPDF.js +++ b/src/layouts/upload/inputPDF.js @@ -1,6 +1,6 @@ import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; -import { Container, Typography } from "@mui/material"; +import { Container, Switch, Typography } from "@mui/material"; import Card from "@mui/material/Card"; import MDButton from "components/MDButton"; import MDBox from "components/MDBox"; @@ -11,6 +11,7 @@ import { uploadPdfs } from "api/sendPdf"; // Replace with your API endpoint for const PDFUploader = () => { const [selectedFiles, setSelectedFiles] = useState([]); const [backendResponse, setBackendResponse] = useState([]); + const [imageScan, setImageScan] = useState(false); const navigate = useNavigate(); const handleFileChange = (event) => { @@ -72,6 +73,16 @@ const PDFUploader = () => { Upload PDFs + + + + Does PDF contain Scanned Images? + + + + setImageScan(!imageScan)} /> + + Submit