Get Pdf width and height in pixel

Hello,

Is there a way to get get Pdf width and height in pixel of the page loaded inside sfpdfviewer ?

Thanks,
Nicolas

2 Replies 1 reply marked as answer

VS Vasugi Sivajothi Syncfusion Team March 19, 2021 10:54 AM UTC

Hi Nicolas, 
 
 
Thanks for contacting Syncfusion support. 
 
 
We can get the page size details using documentLoad event. Please refer to the below sample and code snippet, 
 
Code Snippet: 
 
<SfPdfViewerServer @ref="@PDFViewer" DocumentPath="@DocumentPath" > <PdfViewerEvents DocumentLoaded="@documentLoad"></PdfViewerEvents> </SfPdfViewerServer> 
 
 
private void documentLoad(LoadEventArgs args) 
    { 
 
    } 
 
 
 
 
Kindly try this and revert to us with more details if you have any concerns about this. 
 
 
Regards, 
Vasugi 
 


Marked as answer

NN Nicolas NOEL March 20, 2021 09:47 PM UTC

Hi Vasugi,

Thank you 
Nicolas

Loader.
Up arrow icon