Highlight color
You can fine-tune the behavior of the PDF viewer by modifying the default options. The full list of the options is available here. Most options are very advanced or covered by regular attributes of <ngx-extended-pdf-viewer />
, so use the options at your own risk.
This page uses the assetsFolder
attribute to use the "bleeding edge" version of pdf.js instead of the regular release of pdf.js. However, to see the effect you need a full reload of the page (i.e. you need to hit the F5 key). After that, the version number of pdf.js changes. You can see that in the blue bar of this page and in the console window of the developer tools.
import { pdfDefaultOptions } from 'ngx-extended-pdf-viewer';
...
constructor() {
pdfDefaultOptions.assetsFolder = 'bleeding-edge';
}
<ngx-extended-pdf-viewer
[src]="'/assets/pdfs/codpaste-teachingpack.pdf'"
[height]="'90vh'"
[showBorders]="showBorders"
[(scrollMode)]="scrollMode"
zoom="30%"
>
</ngx-extended-pdf-viewer>