pdf

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package pdf provides Go bindings for android.print.pdf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type PrintedPdfDocument

type PrintedPdfDocument struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

PrintedPdfDocument wraps android.print.pdf.PrintedPdfDocument.

func NewPrintedPdfDocument

func NewPrintedPdfDocument(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*PrintedPdfDocument, error)

NewPrintedPdfDocument creates a new android.print.pdf.PrintedPdfDocument instance.

func (*PrintedPdfDocument) GetPageContentRect

func (m *PrintedPdfDocument) GetPageContentRect() (*jni.Object, error)

GetPageContentRect calls android.print.pdf.PrintedPdfDocument.getPageContentRect.

func (*PrintedPdfDocument) GetPageHeight

func (m *PrintedPdfDocument) GetPageHeight() (int32, error)

GetPageHeight calls android.print.pdf.PrintedPdfDocument.getPageHeight.

func (*PrintedPdfDocument) GetPageWidth

func (m *PrintedPdfDocument) GetPageWidth() (int32, error)

GetPageWidth calls android.print.pdf.PrintedPdfDocument.getPageWidth.

func (*PrintedPdfDocument) StartPage

func (m *PrintedPdfDocument) StartPage(arg0 int32) (*jni.Object, error)

StartPage calls android.print.pdf.PrintedPdfDocument.startPage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL