[]Struct jni_android_sys::android::print::pdf::PrintedPdfDocument

#[repr(transparent)]
pub struct PrintedPdfDocument(_);

public class PrintedPdfDocument

Required feature: "android-print-pdf-PrintedPdfDocument"

Methods

impl PrintedPdfDocument

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env PrintAttributes>>
) -> Result<Local<'env, PrintedPdfDocument>, Local<'env, Throwable>>
[src]

PrintedPdfDocument

Required features: "android-content-Context", "android-print-PrintAttributes"

pub fn startPage<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, PdfDocument_Page>>, Local<'env, Throwable>>
[src]

startPage

Required features: "android-graphics-pdf-PdfDocument_Page"

pub fn getPageWidth<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getPageHeight<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getPageContentRect<'env>(
    &'env self
) -> Result<Option<Local<'env, Rect>>, Local<'env, Throwable>>
[src]

getPageContentRect

Required features: "android-graphics-Rect"

Methods from Deref<Target = PdfDocument>

pub fn startPage<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PdfDocument_PageInfo>>
) -> Result<Option<Local<'env, PdfDocument_Page>>, Local<'env, Throwable>>
[src]

startPage

Required features: "android-graphics-pdf-PdfDocument_Page", "android-graphics-pdf-PdfDocument_PageInfo"

pub fn finishPage<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PdfDocument_Page>>
) -> Result<(), Local<'env, Throwable>>
[src]

finishPage

Required features: "android-graphics-pdf-PdfDocument_Page"

pub fn writeTo<'env>(
    &'env self,
    arg0: impl Into<Option<&'env OutputStream>>
) -> Result<(), Local<'env, Throwable>>
[src]

writeTo

Required features: "java-io-OutputStream"

pub fn getPages<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getPages

Required features: "java-util-List"

pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for PrintedPdfDocument

impl AsValidJObjectAndEnv for PrintedPdfDocument

impl Deref for PrintedPdfDocument

type Target = PdfDocument

The resulting type after dereferencing.

impl JniType for PrintedPdfDocument

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.