Skip to content

Commit

Permalink
refactor(PdfAssetPreview): disable annotation and text layers
Browse files Browse the repository at this point in the history
  • Loading branch information
olafsulich committed Feb 12, 2025
1 parent 5805177 commit 23fd121
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
*/

import {Document, Page} from 'react-pdf';
import 'react-pdf/dist/Page/AnnotationLayer.css';
import 'react-pdf/dist/Page/TextLayer.css';

import {useResizeObserver} from 'Hooks/useResizeObserver/useResizeObserver';

Expand All @@ -40,10 +38,11 @@ export const PdfAssetPreview = ({url}: PdfAssetPreviewProps) => {
<Document file={url} loading={<PdfAssetLoader />} noData={<PdfAssetError />} css={documentStyles}>
<Page
pageNumber={1}
loading={<></>}
loading={<PdfAssetLoader />}
width={width || undefined}
height={height || undefined}
renderAnnotationLayer={false}
renderTextLayer={false}
/>
</Document>
</div>
Expand Down

0 comments on commit 23fd121

Please sign in to comment.