Skip to main content

add_user_pdf

Function add_user_pdf 

Source
pub async fn add_user_pdf(
    ref_: &Ref,
    file: &Utf8Path,
    force: bool,
    profile: &CapabilityProfile,
    ctx: &FetchContext,
    store: &dyn Store,
    store_root: &Utf8Path,
) -> Result<AddOutcome, AddError>
Expand description

Add file to the store as ref_’s PDF.

Metadata comes from the store when the ref is already there, else from the same resolver cite uses. force replaces a stored PDF and overrides a file name that names another work.

§Errors

Any AddError; nothing is written unless every check passed.