public abstract class

PdfDrawable

extends Drawable
java.lang.Object
   ↳ android.graphics.drawable.Drawable
     ↳ com.pspdfkit.ui.drawable.PdfDrawable
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Drawable subclass for drawing on top of a PDF document.

Summary

Public Constructors
PdfDrawable()
Public Methods
void updatePDFToViewTransformation(Matrix matrix)
Called internally by PSPDFKit every time the PDF-to-view transformation was changed.
Protected Methods
final Matrix getPDFToPageTransformation()
Returns the current PDF-to-view transformation matrix, which can be used to position the drawable using PDF coordinates.
[Expand]
Inherited Methods
From class android.graphics.drawable.Drawable
From class java.lang.Object

Public Constructors

public PdfDrawable ()

Public Methods

public void updatePDFToViewTransformation (Matrix matrix)

Called internally by PSPDFKit every time the PDF-to-view transformation was changed.

Parameters
matrix The current PDF-to-view transformation matrix.

Protected Methods

protected final Matrix getPDFToPageTransformation ()

Returns the current PDF-to-view transformation matrix, which can be used to position the drawable using PDF coordinates. The caller should not modify the returned matrix directly, but maintain a separate copy if necessary.

Returns
  • Transformation matrix for PDF to view conversion.