menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface ICustomPdfRenderer - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface ICustomPdfRenderer

    Provides the functionality to render the PDF document using third party renderers in a SfPdfViewer.

    Namespace: Syncfusion.SfPdfViewer.Android
    Assembly: Syncfusion.SfPdfViewer.Android.dll
    Syntax
    public interface ICustomPdfRenderer

    Properties

    BitmapConfig

    Gets or sets the bitmap configuration in which PDF document is being rendered.

    Declaration
    Bitmap.Config BitmapConfig { get; set; }
    Property Value
    Type
    Android.Graphics.Bitmap.Config

    PageCount

    Gets or sets the total page count of the PDF document rendered using ICustomPdfRenderer.

    Declaration
    int PageCount { get; set; }
    Property Value
    Type
    System.Int32

    Methods

    Close()

    Closes the Custom PDF renderer objects to release memory.

    Declaration
    void Close()

    GetPageSize(Int32)

    Gets the size of the page of the PDF document with the specified page index using ICustom Pdf renderer.

    Declaration
    Size GetPageSize(int pageIndex)
    Parameters
    Type Name Description
    System.Int32 pageIndex

    Index of the PDF pages.

    Returns
    Type Description
    Android.Util.Size

    Size of the page of the PDF document with the specified page index.

    Initialize(Context, Stream)

    Used to initialize the Custom PDF renderer objects.

    Declaration
    void Initialize(Context context, Stream fileInputStream)
    Parameters
    Type Name Description
    Android.Content.Context context
    System.IO.Stream fileInputStream

    PDF document file stream used to render the PDF document.

    Render(Bitmap, Int32, Int32, Int32)

    Renders a PDF page to a bitmap.

    Declaration
    void Render(Bitmap destination, int pageIndex, int pageWidth, int pageHeight)
    Parameters
    Type Name Description
    Android.Graphics.Bitmap destination

    Destination bitmap to which to render.

    System.Int32 pageIndex

    Index of the PDF page to renderer it as a bitmap.

    System.Int32 pageWidth

    Width of the destination bitmap.

    System.Int32 pageHeight

    Height of the destination bitmap.

    Render(Bitmap, Int32, Int32, Int32, Int32, Int32)

    Renders the given region of the page for tile rendering on a bitmap.

    Declaration
    void Render(Bitmap destination, int pageIndex, int x, int y, int width, int height)
    Parameters
    Type Name Description
    Android.Graphics.Bitmap destination

    The bitmap on which the page should be rendered.

    System.Int32 pageIndex

    The index of the page to be rendered.

    System.Int32 x

    The x coordinate of the origin of the region to be rendered.

    System.Int32 y

    The y coordinate of the origin of the region to be rendered.

    System.Int32 width

    The width of the region to be rendered.

    System.Int32 height

    The height of the region to be rendered.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved