kendo-react-pdf-viewer: Increases all the pages to double if User clicks on zoom.

0 Answers 303 Views
PDF Viewer
Surender
Top achievements
Rank 1
Surender asked on 25 Apr 2023, 08:04 AM | edited on 25 Apr 2023, 10:13 AM

PDF loads correctly but pages are getting double if user clicks on any of the zoom option first time. But download pdf with the correct number of pages. 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>
        </>
    )
}
Vessy
Telerik team
commented on 26 Apr 2023, 11:32 AM

Hello, Surender,

I tried to replicate the reported behavior but the pages count remains correct at my end after zooming. Can you test the sample I used for my test below and see whether you are facing the same issue with it?

If so, please, share the exact reproduction steps with me so i can examine the problem further.

No answers yet. Maybe you can help?

Tags
PDF Viewer
Asked by
Surender
Top achievements
Rank 1
Share this question
or