Get page gap between the pages in UWP PDF Viewer
8 Jun 20211 minute to read
The SfPdfViewer control provides the property to access the gap between two pages being displayed in the PDF Viewer. This value can be accessed using the following code. Here ‘buffer’ is the byte array read from the PDF file either using FileOpenPicker or from Assets folder, as illustrated in the Viewing PDF section.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(buffer); pdfViewer.LoadDocument(loadedDocument); //Gets the gap between two pages. int pageGap = pdfViewer.PageGap;
Dim loadedDocument As New PdfLoadedDocument(Buffer) pdfViewer.LoadDocument(loadedDocument) 'Gets the gap between two pages. Dim pageGap As Integer = pdfViewer.PageGap