Kërkoni te Asistenca

Shmangni karremëzime gjoja asistence. S’do t’ju kërkojmë kurrë të bëni një thirrje apo të dërgoni tekst te një numër telefoni, apo të na jepni të dhëna personale. Ju lutemi, raportoni veprimtari të dyshimtë duke përdorur mundësinë “Raportoni Abuzim”.

Mësoni Më Tepër

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

  • 2 përgjigje
  • 0 e kanë hasur këtë problem
  • 5 parje
  • Përgjigjja më e re nga JoeB

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 PDFjs' 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 the property, "color: red !important;" to both 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 PDFjs' 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 the property, "'''color: red !important;'''" to both rules creates a RED text layer in highlighted results (misaligned w/ original text).

Krejt Përgjigjet (2)

more options

E dobishme?

more options

yeah... I've come to know viewer.css, on a Biblical basis. Problem... lots has to do w/ "textLayer" code (in viewer.css & maybe other that affects textLayer behavior).

I'm not too familiar w/ textlayer in pdf's. May be a reason devs didn't try to change text color in highlighted entries.

One issue is if a PDF uses a 'gray / brown-ish' text color, it's obscured more by highlighting vs. solid black text.

https://github.com/mozilla/pdf.js/ Searching their past / current posts, issues, found nothing on highlight + text color.

Brief discussions on a few sites, on problems of changing text color in PDF (using textLayer) vs. other file formats. Touching on the problem of new text layers not lining up w/ original.

E dobishme?

Bëni një pyetje

Duhet të bëni hyrjen te llogaria juaj që t’i përgjigjeni postimeve. Ju lutemi, filloni me një pyetje të re, nëse nuk keni ende një llogari.