pub struct CGPDFDocument { /* private fields */ }Available on crate feature
CGPDFDocument only.Expand description
Implementations§
Source§impl CGPDFDocument
impl CGPDFDocument
pub fn with_provider( provider: Option<&CGDataProvider>, ) -> Option<CFRetained<CGPDFDocument>>
Available on crate feature
CGDataProvider only.pub fn with_url(url: Option<&CFURL>) -> Option<CFRetained<CGPDFDocument>>
Sourcepub unsafe fn version(
document: Option<&CGPDFDocument>,
major_version: NonNull<c_int>,
minor_version: NonNull<c_int>,
)
pub unsafe fn version( document: Option<&CGPDFDocument>, major_version: NonNull<c_int>, minor_version: NonNull<c_int>, )
§Safety
major_versionmust be a valid pointer.minor_versionmust be a valid pointer.
pub fn is_encrypted(document: Option<&CGPDFDocument>) -> bool
Sourcepub unsafe fn unlock_with_password(
document: Option<&CGPDFDocument>,
password: NonNull<c_char>,
) -> bool
pub unsafe fn unlock_with_password( document: Option<&CGPDFDocument>, password: NonNull<c_char>, ) -> bool
§Safety
password must be a valid pointer.
pub fn is_unlocked(document: Option<&CGPDFDocument>) -> bool
pub fn allows_printing(document: Option<&CGPDFDocument>) -> bool
pub fn allows_copying(document: Option<&CGPDFDocument>) -> bool
pub fn number_of_pages(document: Option<&CGPDFDocument>) -> usize
pub fn page( document: Option<&CGPDFDocument>, page_number: usize, ) -> Option<CFRetained<CGPDFPage>>
Available on crate feature
CGPDFPage only.pub fn catalog(document: Option<&CGPDFDocument>) -> CGPDFDictionaryRef
Available on crate feature
CGPDFDictionary only.pub fn info(document: Option<&CGPDFDocument>) -> CGPDFDictionaryRef
Available on crate feature
CGPDFDictionary only.pub fn id(document: Option<&CGPDFDocument>) -> CGPDFArrayRef
Available on crate feature
CGPDFArray only.Source§impl CGPDFDocument
impl CGPDFDocument
pub fn outline(&self) -> Option<CFRetained<CFDictionary>>
pub fn access_permissions(&self) -> CGPDFAccessPermissions
pub fn media_box(document: Option<&CGPDFDocument>, page: c_int) -> CGRect
👎Deprecated: No longer supported
pub fn crop_box(document: Option<&CGPDFDocument>, page: c_int) -> CGRect
👎Deprecated: No longer supported
pub fn bleed_box(document: Option<&CGPDFDocument>, page: c_int) -> CGRect
👎Deprecated: No longer supported
pub fn trim_box(document: Option<&CGPDFDocument>, page: c_int) -> CGRect
👎Deprecated: No longer supported
pub fn art_box(document: Option<&CGPDFDocument>, page: c_int) -> CGRect
👎Deprecated: No longer supported
pub fn rotation_angle(document: Option<&CGPDFDocument>, page: c_int) -> c_int
👎Deprecated: No longer supported
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Attempt to downcast the type to that of type T.
This is the reference-variant. Use CFRetained::downcast if you
want to convert a retained type. See also ConcreteType for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumbers, small CFStrings etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CGPDFDocument
impl AsRef<AnyObject> for CGPDFDocument
Source§impl AsRef<CFType> for CGPDFDocument
impl AsRef<CFType> for CGPDFDocument
Source§impl AsRef<CGPDFDocument> for CGPDFDocument
impl AsRef<CGPDFDocument> for CGPDFDocument
Source§impl Borrow<AnyObject> for CGPDFDocument
impl Borrow<AnyObject> for CGPDFDocument
Source§impl Borrow<CFType> for CGPDFDocument
impl Borrow<CFType> for CGPDFDocument
Source§impl ConcreteType for CGPDFDocument
impl ConcreteType for CGPDFDocument
Source§impl Debug for CGPDFDocument
impl Debug for CGPDFDocument
Source§impl Deref for CGPDFDocument
impl Deref for CGPDFDocument
Source§impl Hash for CGPDFDocument
impl Hash for CGPDFDocument
Source§impl Message for CGPDFDocument
impl Message for CGPDFDocument
Source§impl PartialEq for CGPDFDocument
impl PartialEq for CGPDFDocument
Source§impl RefEncode for CGPDFDocument
impl RefEncode for CGPDFDocument
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CGPDFDocument
impl Type for CGPDFDocument
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation crate. Read moreimpl Eq for CGPDFDocument
Auto Trait Implementations§
impl !Freeze for CGPDFDocument
impl !RefUnwindSafe for CGPDFDocument
impl !Send for CGPDFDocument
impl !Sync for CGPDFDocument
impl !Unpin for CGPDFDocument
impl !UnwindSafe for CGPDFDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more