Module B0_pdf_viewer

PDF viewer interaction.

Show PDFs

type t

The type PDF viewers.

val find : ?search:B0_std.Cmd.tool_search -> ?cmd:B0_std.Cmd.t -> unit -> (t, string) Stdlib.result

find ?search ~pdf_viewer tries to find a PDF viewer in a platform dependent way using Os.Cmd.find ?search.

val show : t -> B0_std.Fpath.t -> (unit, string) Stdlib.result

show pdf_viewer file shows PDF file using pdf_viewer.

Cli interface

module Env : sig ... end

Environment variables.

val pdf_viewer : ?docs:string -> ?opts:string list -> unit -> B0_std.Cmd.t option Cmdliner.Term.t

pdf_viewer ~docs ~opts () is an option and Env.pdfviewer environment variable to use with pdf_viewer argument of find. opts are the cli options and default to "pdf-viewer". docs is the documentation section where the option gets documented.