Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf controls not working #157

Open
Deepanshu072 opened this issue Jul 24, 2024 · 0 comments
Open

pdf controls not working #157

Deepanshu072 opened this issue Jul 24, 2024 · 0 comments

Comments

@Deepanshu072
Copy link

Pdf controls(zoom in, zoom out...) not working. Using this code.
<DocViewer
ref={docViewerRef2}
config={{
header: {
disableHeader: true,
disableFileName: true,
retainURLParams: true,
},
pdfZoom: {
defaultZoom: 0.7,
zoomJump: 0.1
},
pdfVerticalScrollByDefault: true
}}
theme={{
primary: "#FFF",
secondary: "#ffffff",
tertiary: "rgba(38, 38, 38, 0.8)",
textPrimary: "#ffffff",
textSecondary: "#5296d8",
textTertiary: "#99",
disableThemeScrollbar: false,
}}
documents={[
{ uri: resumeUrl, fileType: 'pdf' }
]}
style={{ borderRadius: '30px' }}
pluginRenderers={[PDFRenderer]}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant