Gets the URL needed to generate a preview of a PDF document.
Namespace:
TallComponents.Web.PdfAssembly: TallComponents.Web.PdfViewer (in TallComponents.Web.PdfViewer.dll) Version: 1.0.6.5
Syntax
| C# |
|---|
public static string GetPreviewUrl( string baseUrl, string storageKey, Unit width, Unit height, double scale, int pageIndex, int dx, int dy ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function GetPreviewUrl ( _ baseUrl As String, _ storageKey As String, _ width As Unit, _ height As Unit, _ scale As Double, _ pageIndex As Integer, _ dx As Integer, _ dy As Integer _ ) As String |
| Visual C++ |
|---|
public: static String^ GetPreviewUrl( String^ baseUrl, String^ storageKey, Unit width, Unit height, double scale, int pageIndex, int dx, int dy ) |
Parameters
- baseUrl
- Type: System..::.String
A URL associated with a PdfToImageHandler instance.
- storageKey
- Type: System..::.String
The storage key.
- width
- Type: System.Web.UI.WebControls..::.Unit
The width of the clipping rectangle.
- height
- Type: System.Web.UI.WebControls..::.Unit
The height of the clipping rectangle.
- scale
- Type: System..::.Double
The scale as a fraction; 1 equals a scale of 100%.
- pageIndex
- Type: System..::.Int32
The 0-based index of the page.
- dx
- Type: System..::.Int32
The horizontal offset of the clipping rectangle.
- dy
- Type: System..::.Int32
The vertical offset of the clipping rectangle.