feat: implement high-fidelity DOCX to PDF conversion using headless LibreOffice#269
Open
ankittroy-21 wants to merge 3 commits into
Open
feat: implement high-fidelity DOCX to PDF conversion using headless LibreOffice#269ankittroy-21 wants to merge 3 commits into
ankittroy-21 wants to merge 3 commits into
Conversation
|
@ankittroy-21 is attempting to deploy a commit to the Durgeshwar's projects Team on Vercel. A member of the Team first needs to authorize it. |
Author
|
@Durgeshwar-AI Look into it |
Owner
|
@ankittroy-21 I do not want any temp file creations please remove all such instances. |
Author
|
@Durgeshwar-AI Removed the temp file section |
Owner
|
import os from flask import Blueprint, request from utils.helpers import error, send_file_and_cleanup docx_pdf_bp = Blueprint("docx_pdf", name) @docx_pdf_bp.route("/convertDocxToPdf", methods=["POST"]) @ankittroy-21 Still there |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR upgrades the DOCX to PDF conversion engine from a basic text-extraction method to a full-fidelity rendering engine using headless LibreOffice.
The Problem
The previous implementation used ReportLab to extract raw text from python-docx. This resulted in the loss of:
The Solution
Changes
Verification Results
How to Test