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>
Add file to the store as ref_’s PDF.
file
ref_
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.
cite
force
Any AddError; nothing is written unless every check passed.
AddError