bcgov / bcgov/foi-flow

COR-2023-34143 - DOCX -> PDF Conversion File Formatting Issues

Open
#4,941 0 comments 0 reactions 0 assignees View on GitHub
bug low priority production
Dominant language
Python
Stars
8
Forks
2
Avg merge
14h 34m
Merged PRs (30d)
46

Description

**Describe the bug in current situation**
On COR-2023-34143, two DOCX files, when converted to PDF, are having it's content 'squished', leading to formatting issues where content is either not displayed, or overlapping other content.

Two files for examples that need investigating:

- File uploaded on Dec 11, 2023, 9:55 AM, 32.65 KB, titled "Print - xxxxxxxxxx.docx"
- File uploaded on Dec 11, 2023, 9:55 AM, 51.26 KB, titled " xxxxxx (24).docx"

Need to investigate and resolve root cause, as to allow these file formats to be correctly converted to PDF.

**Link bug to the User Story**

**Impact of this bug**
Describe the impact, i.e. what the impact is, and number of users impacted.

**Chance of Occurring (high/medium/low/very low)**

**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**

**Steps to Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Actual/ observed behaviour/ results**

**Expected behaviour**
A clear and concise description of what you expected to happen. Use the gherking language.

**Screenshots/ Visual Reference/ Source**
If applicable, add screenshots to help explain your problem. You an use screengrab.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the conversion using the two DOCX files uploaded on December 11, 2023, and compare their PDF output for missing or overlapping content. Trace the DOCX-to-PDF conversion path in the Python project and identify the root cause. Done means both files convert with their content and formatting displayed correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.