Viscomsoft UWP PDF Viewer SDK

PDFDisplayManager.ExportPage Method

 

Export specific page to image file.
 
 C#

public void ExportPage(int iPageNumber, double iZoomSize, StorageFile file, FileFormat iFormat)

 


Parameter
iPageNumber - the page number.

iZoomSize - the zoom size, 1.0 = 100%

file - the StorageFile objects.

Namespace: Viscomsoft.UWP.PDFViewerSDK;

Return Value
No Return value.

Example

   

[C# Syntax] 
using Viscomsoft.UWP.PDFViewerSDK;

FileSavePicker savePicker = new FileSavePicker();

savePicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;

savePicker.FileTypeChoices.Add("JPEG File", new List<string>() { ".jpg" });

StorageFile filesave = await savePicker.PickSaveFileAsync();

_pdfDisplayManager.ExportPage(1, 1.0, filesave, FileFormat.Jpeg);