I just want to set the default page width to 'fitToWidth' instead of 100% on page load. Below is the reference code:
import * as React from "react";
import { PDFViewer, PDFViewerTool } from "@progress/kendo-react-pdf-viewer";
import { SampleFileBase64 } from "./base64Sample";
export const DocumentViewer = (props: any) => {
const pdfViewerTools: PDFViewerTool[] = ["pager", "spacer", "zoomInOut", "zoom", "selection", "search", "open", "download", "print"];
return (
<>
<div>
{<PDFViewer
data={SampleFileBase64}
defaultZoom={1}
style={{ height: 500 }}
tools={pdfViewerTools}
/>
}
</div>
</>
)
}