pub struct AddPageNumbersParams {Show 23 fields
pub position: Option<AddPageNumbersPosition>,
pub position_mode: Option<AddPageNumbersPositionMode>,
pub x_percent: Option<f64>,
pub y_percent: Option<f64>,
pub scale: Option<f64>,
pub format: Option<AddPageNumbersFormat>,
pub template: Option<String>,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub page_mode: Option<AddPageNumbersPageMode>,
pub facing_placement: Option<AddPageNumbersFacingPlacement>,
pub start_number: Option<f64>,
pub font_size: Option<f64>,
pub font_family: Option<String>,
pub font_style: Option<AddPageNumbersFontStyle>,
pub x_offset: Option<f64>,
pub y_offset: Option<f64>,
pub margin: Option<f64>,
pub rotation: Option<f64>,
pub color: Option<String>,
pub pages: Option<String>,
pub output_name: Option<String>,
pub extra: Object,
}Expand description
Parameters of Add Page Numbers (add-page-numbers).
Fields§
§position: Option<AddPageNumbersPosition>Number placement. Default: "middle-center".
position_mode: Option<AddPageNumbersPositionMode>Use a placement preset or percentage coordinates. Default: "preset".
x_percent: Option<f64>Horizontal center for custom placement. Default: 50. Range: 0 to 100. Used when
position_mode is custom.
y_percent: Option<f64>Vertical center for custom placement. Default: 50. Range: 0 to 100. Used when position_mode
is custom.
scale: Option<f64>Size multiplier applied to fontSize. Default: 1. Range: 0.1 to 4.
format: Option<AddPageNumbersFormat>Page-number text format. Default: "number".
template: Option<String>Custom template using {n} and {total}. Required in custom format. Used when format is
custom.
prefix: Option<String>Text before the generated page number, up to 40 characters.
suffix: Option<String>Text after the generated page number, up to 40 characters.
page_mode: Option<AddPageNumbersPageMode>Single placement or mirrored facing-page placement. Default: "single".
facing_placement: Option<AddPageNumbersFacingPlacement>Place facing-page numbers inside or outside. Default: "outside". Used when page_mode is
facing.
start_number: Option<f64>Number assigned to the first selected PDF page. Default: 1. Range: 1 to 1000000.
font_size: Option<f64>Number font size in points, before scale is applied. Default: 60. Range: 8 to 180.
font_family: Option<String>Number font: helvetica, times or courier (standard PDF fonts); gf:<id> embeds a family of
the font catalog (/docs/fonts: every Google Fonts family, all scripts, shaped for Devanagari,
Bengali, Tamil, Telugu and Arabic); u:<id> one of your uploaded fonts (the id from your
fonts in the PDF editor; another person’s or a deleted font is refused). Default: "helvetica".
font_style: Option<AddPageNumbersFontStyle>Font style. Default: "regular".
x_offset: Option<f64>Fine horizontal offset in PDF points. Positive moves right. Default: 0.
y_offset: Option<f64>Fine vertical offset in PDF points. Positive moves down. Default: 0.
margin: Option<f64>Page-edge margin in PDF points for preset placement. Default: 36. Range: 0 to 240.
rotation: Option<f64>Turn of the number in degrees, counter-clockwise, from -360 to 360 (decimals allowed; 0 and 360 are upright). The number sits at its spot, and stays whole on the page, by the box it covers once turned. When omitted it is 45 for the diagonal position, otherwise 0. Range: -360 to 360 degrees.
color: Option<String>Number color as a six-digit hex value. Default: "#2e2e2e".
pages: Option<String>Pages to number; blank numbers every page. Page numbers and ranges separated by commas, plus odd, even, last and last-N (the Nth page before the last), e.g. 1-3,5, odd or 5-last.
output_name: Option<String>Output file name without a path; the extension is added for you.
extra: ObjectFurther parameters this SDK version does not model.