تلاش سپورٹ

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

مزید سیکھیں

Change text color in highlighted results in PDF Reader's Find (search)

  • کوئی جواب نہیں
  • 0 میں یہ مسئلہ ہے
more options

Anyone know what's needed to style the text color in *PDFviewer's highlighted "Find" results, AND make it readable?

It's easy changing *PDFviewer's highlighted background colors of "Find" results (Ctrl + F). Due to "textLayer" use in pdfjs, may not be easy to change text color for the same results (and be readable).

/** userContent.css **/ .pdfViewer .textLayer .highlight { background-color: rgb(239 15 255 / .3) !important; }

.pdfViewer .textLayer .highlight.selected { background-color: rgb(0 255 255 / .3) !important; }

Adding a new property, "color: red !important;" to above rules creates a red text layer in highlighted results (misaligned w/ original text).

Anyone know what's needed to style the '''text''' color in *PDFviewer's highlighted "Find" results, AND make it readable? It's easy changing *PDFviewer's highlighted '''background''' colors of "Find" results (Ctrl + F). Due to "textLayer" use in pdfjs, may not be easy to change '''text''' color for the same results (and be readable). /** userContent.css **/ .pdfViewer .textLayer .highlight { background-color: rgb(239 15 255 / .3) !important; } .pdfViewer .textLayer .highlight.selected { background-color: rgb(0 255 255 / .3) !important; } Adding a new property, "'''color: red !important;'''" to above rules creates a red text layer in highlighted results (misaligned w/ original text).

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.