Closed narinderCanGit closed 2 months ago
const docs = [ { uri : data, fileName : fileName } ];
<DocViewer pluginRenderers={DocViewerRenderers} documents={docs} config={{ header : { disableHeader : false, disableFileName : true, retainURLParams : false }, pdfVerticalScrollByDefault : true, disableExtractedTextAfterPage : true }} />
In the attached image the highlighted text is the duplicate text. If I open the data blob url in the new tab, the pdf is rendered fine with no duplicate issue.
See https://github.com/cyntler/react-doc-viewer/issues/261.
Adding the following import should sort you out:
import '@cyntler/react-doc-viewer/dist/index.css';
const docs = [ { uri : data, fileName : fileName } ];
<DocViewer pluginRenderers={DocViewerRenderers} documents={docs} config={{ header : { disableHeader : false, disableFileName : true, retainURLParams : false }, pdfVerticalScrollByDefault : true, disableExtractedTextAfterPage : true }} />
In the attached image the highlighted text is the duplicate text. If I open the data blob url in the new tab, the pdf is rendered fine with no duplicate issue.