-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
π Description
Currently, the tool saves the filled PDF using a static or generic filename. When processing multiple documents, this requires the user to manually rename the outputs to keep track of who the form belongs to.
π οΈ Proposed Solution
- Add logic in
main.py(or wherever the save function is called) to inspect the final JSON dictionary before saving. - Look for common identifying keys (e.g., "Name", "Employee Name", "Patient Name").
- Dynamically construct the output filename:
{Original_PDF_Name}_{Extracted_Name}.pdf. - Fallback to a timestamped name if no identifier is found.
β Acceptance Criteria
- Running
form.pdfwith John Doe's transcript outputsform_John_Doe.pdf. - Special characters and spaces in the extracted name are sanitized (e.g., replaced with underscores) to prevent file system errors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels