React PDF viewer
v1.6.0

Example: Highlight given keyword in the first render

The keyword option can be a string or a regular expression. The following code will highlight pdf document in the document.

Scroll to page 5 to see it in action!

<div style={{ height: '750px' }}>
    <Viewer
        fileUrl={url}
        keyword={new RegExp('pdf document', 'i')}
    />
</div>

(The sample code)

/ 8
90%
bbcParameters for Opening PDF FilesAdobe® Acrobat® SDK April 2007Version 8.1