Pdf Viewer - View multipage single page pdfs in the same view ie. simulate a multipage pdf


My question is:

We are looking for a Blazor pdf viewer for our HR and Invoice processing application written in Asp.net MVC C#.

Can the Syncfusion Blazor viewer cater for viewing multiple single page pdf files?

Some files here are HR files so they can span hundreds of pages. 

Therefore, combining the pages into as multipage file is before displaying is not an option.


Please find attached further information.


Regards,

Graham O'Riley


Attachment: Syncfusion_Blazor_PDF_Viewer_b2c26144.zip

1 Reply 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team July 29, 2020 12:05 PM UTC

Hi Graham , 

Thank you for contacting Syncfusion support. 

Our PDF Viewer supports to load the PDF documents dynamically using the Load() API. We can load multiple documents using the API.  Also our PDF Viewer supports thumbnail images clicking on that will navigate to that page.   

Code Snippet: 

<button style="width:150px;height:30px" @onclick="OnImportAnnotationsClick">Load PDF </button> 
 
 
<SfPdfViewerServer @ref="PDFViewer" ID="viewer" DocumentPath="@DocumentPath1" Height="800px" Width="1060px"> 
 
</SfPdfViewerServer> 
 
 
 
 
@functions { 
 
 
    public SfPdfViewerServer PDFViewer; 
 
    private string DocumentPath1 { get; set; } = "wwwroot/Data/PDF Succinctly.pdf"; 
 
 
    private async void OnImportAnnotationsClick(MouseEventArgs args) 
    { 
        string Url = "http://www.pdf995.com/samples/pdf.pdf"; 
 
        System.Net.WebClient webClient = new System.Net.WebClient(); 
        byte[] byteArray = webClient.DownloadData(Url); 
 
        string base64String = Convert.ToBase64String(byteArray); 
 
        PDFViewer.Load("data:application/pdf;base64," + base64String, null); 
 
    } 
 
} 




We can also load the PDF document from URL, refer to the below link for more details, 


Please try it and revert us with more details about your requirement and the use case if you need further assistance.  

Regards,  
Akshaya 


Marked as answer
Loader.
Up arrow icon