NEEDS DISCUSSION - PDFs with Active Hyperlinked Images - Error/Issues
- Dominant language
- Python
- Stars
- 8
- Forks
- 2
- Avg merge
- 14h 34m
- Merged PRs (30d)
- 46
Description
**Describe the bug in current situation**
When PDF files with hyperlinked images are uploaded to the Records tab, and subsequently available in the Redaction App, several issues are occurring.
See MAG-2023-32691 in PROD as example.
For example, these two small images are hyperlinked to take them to their respective pages.
[Private Zenhub Image](https://api.zenhub.com/attachedFiles/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBOXJ3QVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--cf3f47af2908e5931593ff13b1f5b6c4798ce638/image.png)
The first issue is the hyperlinked image is creating an annotation in the Comments tab (see image below, circled in yellow). In addition, a yellow paperclip is displayed on the page. The cannot be deleted or removed.
Second, when trying to produce the redline, the creation is stuck in progress, and likely stalled due to an error (presumably) related to this annotation.
[Private Zenhub Image](https://api.zenhub.com/attachedFiles/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBOWp3QVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--4f96064b1151226f04ca9f294b33ab61ecadbbd4/image.png)

Note that files that are converted to PDF through our conversion engine are flattened, and this issue won't occur on those files. This issue is primarily where a PDF is uploaded originally, with hyperlinked images enabled in the 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?**
PROD and TEST
**Steps to Reproduce**
Steps to reproduce the behavior:
1. Upload a PDF file with hyperlinked images to the Records tab
2. Enter the Redaction App
3. See unknown annotation in Comments pane (yellow paperclip)
4. Next, flag all pages with an acceptable page flag, and attempt to produce the redline
5. See error thrown in Console, and creation is stuck in progress
**Actual/ observed behaviour/ results**
Unable to produce redline or delete annotation
**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
Assessment
This issue has not been assessed yet.