Skip to content

Conversation

@sohamsahajwanivolt
Copy link

No description provided.

parvesh-garg and others added 30 commits February 6, 2025 19:07
added new templates for tata agreement & kfs
tata agreement changed templates
Co-authored-by: akshat-sachan01 <akshat.sachan@voltmoney.com>
Co-authored-by: akshat-sachan01 <akshat.sachan@voltmoney.com>
* Added: KFS term loan template

* Improved TermLoan KFS template

* deleted

* test file added

* Pushed

* Added: KSF & Agreement template

---------

Co-authored-by: akshat-sachan01 <akshat.sachan@voltmoney.com>
Co-authored-by: akshat-sachan01 <akshat.sachan@voltmoney.com>
* TermLoan kFS Doc

* Updated Agreement Doc

---------

Co-authored-by: akshat-sachan01 <akshat.sachan@voltmoney.com>
* TermLoan kFS Doc

* Updated Agreement Doc

* Updated : KFS data

---------

Co-authored-by: akshat-sachan01 <akshat.sachan@voltmoney.com>
* Add & Remove templates

* Add & Remove templates
- Update /api/v1/process-template-document/docx-to-pdf endpoint to support both:
  * Single file processing (when fileName is provided)
  * Parallel processing (when folderName is provided and fileName is empty)
- Add process_parallel_sections() helper function for parallel processing
- Process dynamic DOCX files in parallel using ThreadPoolExecutor
- Load pre-existing static PDF files directly
- Merge all files in correct numerical order using PyPDF2
- Add PyPDF2==3.0.1 dependency to requirements.txt
- Include agreement_document folder with 6 test files:
  * 3 dynamic DOCX files (01, 03, 05)
  * 3 static PDF files (02, 04, 06)
- Optimize memory usage with explicit cleanup
- Maintain backward compatibility for existing single file processing
…ocument endpoint

- Add resourceURL = f"{get_env('GOTENBERG_API_URL')}/forms/libreoffice/convert"
- Fixes undefined variable error in the original endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants