pub struct RenderArgs {
pub revisions: Revisions,
pub revision_palette: Option<String>,
pub dpi: f32,
pub move_comments: bool,
pub comment_notes: bool,
pub changed_pages: bool,
pub pages: Option<String>,
}Expand description
How -o FILE.pdf and -o FILE.png are rendered (convert, diff);
refused with any other output.
Fields§
§revisions: RevisionsHow tracked changes are painted: conventional (deletions red
struck through, insertions blue underlined, moves green:
double-struck where they left, double-underlined where they landed),
word (what Microsoft Word’s Save as PDF paints), or custom
(see –revision-palette).
revision_palette: Option<String>Marks for –revisions custom: kind=#RRGGBB[:lines],... with
kinds deleted, inserted, moved-from, moved-to and lines strike,
double-strike, underline, double-underline, plain. Kinds left out
keep their conventional mark.
dpi: f32PNG resolution in dots per inch (1-1200).
move_comments: boolList the comments after the last page instead of in balloons beside
the text. The commented text keeps its tint and a [JR1] marker,
and the pages keep their own width.
comment_notes: boolAlso attach each comment as a PDF note at its anchor. Viewers paint a note as an icon over the text, so none is written by default and the flag stays out of –help: it is for the exceptional case.
changed_pages: boolKeep only the pages a change touches: a body or note revision, a comment anchor, or the first page on which a revised header or footer paints (the first page when none does). Page numbers stay the document’s.
pages: Option<String>Only these pages, by the document’s page numbers: 3, 1-3,7.
Layout still covers the whole document; the PDF carries these pages
and PNGs are named by them (STEM-page-03.png).
Implementations§
Source§impl RenderArgs
impl RenderArgs
Sourcepub fn apply(&self, options: PdfOptions) -> PdfOptions
pub fn apply(&self, options: PdfOptions) -> PdfOptions
Apply comment placement and page filtering to the renderer options.
Trait Implementations§
Source§impl Args for RenderArgs
impl Args for RenderArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for RenderArgs
impl Clone for RenderArgs
Source§impl Debug for RenderArgs
impl Debug for RenderArgs
Source§impl Default for RenderArgs
impl Default for RenderArgs
Source§impl FromArgMatches for RenderArgs
impl FromArgMatches for RenderArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.