[−]Struct jni_android_sys::android::print::pdf::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env PrintAttributes>>
) -> Result<Local<'env, PrintedPdfDocument>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, PdfDocument_Page>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Rect>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env PdfDocument_PageInfo>>
) -> Result<Option<Local<'env, PdfDocument_Page>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env PdfDocument_Page>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-pdf-PdfDocument_Page"
pub fn writeTo<'env>(
&'env self,
arg0: impl Into<Option<&'env OutputStream>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env OutputStream>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-OutputStream"
pub fn getPages<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
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
impl JniType for PrintedPdfDocument
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for PrintedPdfDocument
impl !Send for PrintedPdfDocument
impl !Sync for PrintedPdfDocument
impl Unpin for PrintedPdfDocument
impl UnwindSafe for PrintedPdfDocument
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,