R/extendr-wrappers.R

Defines functions rust_verify_pdf rust_sign_pdf

# Generated by extendr: Do not edit by hand
# nolint start

#' @usage NULL
#' @useDynLib pdfsigner, .registration = TRUE
NULL

#' Sign `pdf_file` with a PKCS#12 keystore, writing `output_file`.
#'
#' When `visible` is TRUE, a bordered signature box with `appearance_text`
#' is drawn on `page` at `[x, y, width, height]`. A non-empty `font_path`
#' embeds a TrueType/OpenType font in the box; a non-empty `image_path` draws a
#' PNG/JPEG logo. Errors become R errors.
#'
#' Internal: the user-facing wrapper is [`sign_pdf()`].
#' @noRd
rust_sign_pdf <- function(pdf_file, output_file, keystore_path, keystore_password, reason, name, location, contact_info, signing_time, visible, page, x, y, width, height, font_size, appearance_text, border, tsa_url, pades_level, font_path, image_path) .Call(wrap__rust_sign_pdf, pdf_file, output_file, keystore_path, keystore_password, reason, name, location, contact_info, signing_time, visible, page, x, y, width, height, font_size, appearance_text, border, tsa_url, pades_level, font_path, image_path)

#' Verify all signatures in `pdf_file`. Returns a list with one named list per
#' signature (`valid`, `signer`, `covers_whole_document`, `signed_len`,
#' `byte_range`, `detail`). An empty list means no signatures were found.
#'
#' Internal: the user-facing wrapper is [`verify_pdf_signature()`].
#' @noRd
rust_verify_pdf <- function(pdf_file, roots_pem_file) .Call(wrap__rust_verify_pdf, pdf_file, roots_pem_file)

# nolint end

Try the pdfsigner package in your browser

Any scripts or data that you put into this service are public.

pdfsigner documentation built on Sept. 25, 2026, 5:09 p.m.