pub struct AcroformBackend;Expand description
AcroForm backend implementation for Quillmark.
Trait Implementations§
Source§impl Backend for AcroformBackend
impl Backend for AcroformBackend
Source§fn supported_formats(&self) -> &'static [OutputFormat]
fn supported_formats(&self) -> &'static [OutputFormat]
Get supported output formats
Source§fn plate_extension_types(&self) -> &'static [&'static str]
fn plate_extension_types(&self) -> &'static [&'static str]
Get the plate file extensions accepted by this backend (e.g., &[“.typ”, “.tex”])
Returns an empty array to disable custom plate files.
Source§fn compile(
&self,
_plate_content: &str,
quill: &Quill,
opts: &RenderOptions,
json_data: &Value,
) -> Result<RenderResult, RenderError>
fn compile( &self, _plate_content: &str, quill: &Quill, opts: &RenderOptions, json_data: &Value, ) -> Result<RenderResult, RenderError>
Compile the plate content with JSON data into final artifacts. Read more
Source§fn compile_to_document(
&self,
_plate_content: &str,
_quill: &Quill,
_json_data: &Value,
) -> Result<CompiledDocument, RenderError>
fn compile_to_document( &self, _plate_content: &str, _quill: &Quill, _json_data: &Value, ) -> Result<CompiledDocument, RenderError>
Compile a document to an opaque backend-specific handle for selective page rendering. Read more
Source§fn render_pages(
&self,
_doc: &CompiledDocument,
_pages: Option<&[usize]>,
_format: OutputFormat,
_ppi: Option<f32>,
) -> Result<RenderResult, RenderError>
fn render_pages( &self, _doc: &CompiledDocument, _pages: Option<&[usize]>, _format: OutputFormat, _ppi: Option<f32>, ) -> Result<RenderResult, RenderError>
Render selected pages from a previously compiled document. Read more
Source§fn default_quill(&self) -> Option<Quill>
fn default_quill(&self) -> Option<Quill>
Provide an embedded default Quill for this backend. Read more
Source§fn transform_fields(
&self,
fields: &HashMap<String, QuillValue>,
_schema: &QuillValue,
) -> HashMap<String, QuillValue>
fn transform_fields( &self, fields: &HashMap<String, QuillValue>, _schema: &QuillValue, ) -> HashMap<String, QuillValue>
Transform field values according to backend-specific rules. Read more
Source§impl Default for AcroformBackend
impl Default for AcroformBackend
Source§fn default() -> AcroformBackend
fn default() -> AcroformBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AcroformBackend
impl RefUnwindSafe for AcroformBackend
impl Send for AcroformBackend
impl Sync for AcroformBackend
impl Unpin for AcroformBackend
impl UnsafeUnpin for AcroformBackend
impl UnwindSafe for AcroformBackend
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more