Closed Bug 1721970 Opened 3 years ago Closed 2 years ago

[PDF form] The bottom of the letters are cut off while inputing text inside some pdf forms

Categories

(Firefox :: PDF Viewer, defect, P3)

defect

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- wontfix
firefox-esr102 --- fixed
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 --- wontfix

People

(Reporter: obotisan, Unassigned)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [pdfjs-form-acroform])

Attachments

(1 file)

Attached image image.png

Affected versions

  • Firefox 90.0
  • Firefox 91.0b6
  • Firefox 92.0a1

Affected platforms

  • Windows 7 x86
  • Windows 10 x64
  • macOS 10.15
  • Ubuntu 18.04 x64

Preconditions

  • pdfjs.renderInteractiveForms - true

Steps to reproduce

  1. Go to http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf.
  2. Type "ggggg" in one of the fields.
  3. Click outside the field.

Expected result

  • The letters are correctly displayed inside the field.

Actual result

  • The bottom of the letters are cut .

Regression range

  • This is a regression, I can't reproduce the issue on Nightly from 2020-07-20. I will try to find the range as soon as possible.

Additional notes

  • This issue is more evident on Windows 7 than the other platforms.
  • On Ubuntu the issue is reproducing only if the size of the page is changed.
  • Issue is not reproducing while using High Contrast Themes.

I can also reproduce the issue on this site: https://www.irs.gov/pub/irs-pdf/f1040.pdf.

Summary: [PDF form] The bottom of the letters are cut of on http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf. → [PDF form] The bottom of the letters are cut off while inputing text inside some pdf forms

On macOS, at least, this originates with the pdf.js update in bug 1691143, and is related to the fact that it now sets font-size on the text in the form field; prior to this, the text there was slightly smaller and did not suffer from the clipping.

Component: Graphics: Text → PDF Viewer
Product: Core → Firefox
Regressed by: 1691143
Has Regression Range: --- → yes

I tried to find the regression range as well. I got the same result.
last good: 2021-02-05
first bad: 2021-02-05
potential regressor: Bug 1691143

Has STR: --- → yes
Priority: -- → P3
See Also: → 1747071
Whiteboard: [pdfjs-form-acroform]
See Also: → 1721335, 1679384

works for me

seems to be fixed by

2022-09-17T22:56:40.326000: DEBUG : Found commit message:
Bug 1776538 - Update PDF.js to cd35b9bfac85c00238cf0fa0f657a780f2a5ead6 r=pdfjs-reviewers,marco

Differential Revision: https://phabricator.services.mozilla.com/D150311

Status: NEW → RESOLVED
Closed: 2 years ago
Depends on: 1776538
Resolution: --- → FIXED
Depends on: 1780839
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: