pub struct PdfOptions { /* private fields */ }Expand description
PDF-specific request controls.
The default allows isolated raster fallback:
use excalidraw_render::{PdfOptions, PdfRasterFallback};
let options = PdfOptions::default().with_raster_fallback(PdfRasterFallback::Forbid);
assert_eq!(options.raster_fallback(), PdfRasterFallback::Forbid);Implementations§
Source§impl PdfOptions
impl PdfOptions
Sourcepub const fn with_raster_fallback(
self,
raster_fallback: PdfRasterFallback,
) -> Self
pub const fn with_raster_fallback( self, raster_fallback: PdfRasterFallback, ) -> Self
Selects the isolated raster-fallback policy (default
PdfRasterFallback::AllowIsolated).
Sourcepub const fn raster_fallback(&self) -> PdfRasterFallback
pub const fn raster_fallback(&self) -> PdfRasterFallback
Returns the isolated raster-fallback policy.
Trait Implementations§
Source§impl Clone for PdfOptions
impl Clone for PdfOptions
Source§impl Debug for PdfOptions
impl Debug for PdfOptions
Source§impl Default for PdfOptions
impl Default for PdfOptions
impl Eq for PdfOptions
Source§impl PartialEq for PdfOptions
impl PartialEq for PdfOptions
impl StructuralPartialEq for PdfOptions
Auto Trait Implementations§
impl Freeze for PdfOptions
impl RefUnwindSafe for PdfOptions
impl Send for PdfOptions
impl Sync for PdfOptions
impl Unpin for PdfOptions
impl UnsafeUnpin for PdfOptions
impl UnwindSafe for PdfOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.