Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,7 +194,7 @@ elif selection == "PDF Signer":
|
|
| 194 |
except Exception as e:
|
| 195 |
print(f"Error creating temporary file: {e}")
|
| 196 |
st.error("Could not create temporary file. Please make sure your uploaded file is valid")
|
| 197 |
-
return
|
| 198 |
|
| 199 |
try:
|
| 200 |
doc = fitz.open(temp_pdf_path)
|
|
@@ -217,7 +217,7 @@ elif selection == "PDF Signer":
|
|
| 217 |
st.download_button("Download Signed PDF", f, file_name = output_file, mime = "application/pdf")
|
| 218 |
os.remove(output_file)
|
| 219 |
else:
|
| 220 |
-
|
| 221 |
else:
|
| 222 |
st.error("Please upload both a PDF file and a signature image")
|
| 223 |
except Exception as e:
|
|
|
|
| 194 |
except Exception as e:
|
| 195 |
print(f"Error creating temporary file: {e}")
|
| 196 |
st.error("Could not create temporary file. Please make sure your uploaded file is valid")
|
| 197 |
+
return # This is the return we were checking
|
| 198 |
|
| 199 |
try:
|
| 200 |
doc = fitz.open(temp_pdf_path)
|
|
|
|
| 217 |
st.download_button("Download Signed PDF", f, file_name = output_file, mime = "application/pdf")
|
| 218 |
os.remove(output_file)
|
| 219 |
else:
|
| 220 |
+
st.error("An Error occurred when creating the signed PDF - Error 101")
|
| 221 |
else:
|
| 222 |
st.error("Please upload both a PDF file and a signature image")
|
| 223 |
except Exception as e:
|