react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Highlight font formatting and style

Open raf-microsoft opened this issue 11 months ago • 3 comments

Before you start - checklist

  • [X] I followed instructions in documentation written for my React-PDF version
  • [X] I have checked if this bug is not already reported
  • [X] I have checked if an issue is not listed in Known issues
  • [X] If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo

Description

When I run search in the pdf.js the highlight works nicely, the font is the same as the pdf and the styling looks correct.

image

when I do the same based on Wiki the fonts are inconsistent, and the highlight is a bit of

image

Steps to reproduce

Run the example form the Wiki https://github.com/wojtekmaj/react-pdf/wiki/Recipes

Expected behaviour

The highlight fonts should follow the document fonts.

Actual behaviour

The size & style of the font is inconsistent.

Additional information

No response

Environment

All latest.

raf-microsoft avatar Jan 12 '25 08:01 raf-microsoft

The same happens when the text is selected: image

raf-microsoft avatar Jan 12 '25 21:01 raf-microsoft

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] avatar Apr 14 '25 00:04 github-actions[bot]

+1 on this. Am seeing similar issues on some documents

Image

mchen10 avatar Apr 24 '25 06:04 mchen10

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

github-actions[bot] avatar Jul 28 '25 00:07 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Aug 11 '25 00:08 github-actions[bot]