package cpdf
PDF command line tools
Install
Dune Dependency
Authors
Maintainers
Sources
v2.7.1.tar.gz
md5=9dc2502c6e97a786cdd1af5e1db5a2e1
sha512=b23c1c151f095d11b6c3c56766cdc05aa6b12a0e1224880a050f69f67c4d40053f2415ac3f9e54233bf8314ca8bdfccc2c65dd44b0c6d60ae8d7c08b1c411a04
doc/cpdf/Cpdfembed/index.html
Module Cpdfembed
Embed a TrueType font in a PDF
type t = Pdftext.font list * (int, int * int) Hashtbl.t
type cpdffont =
| PreMadeFontPack of t
| EmbedInfo of {
fontfile : Pdfio.bytes;
fontname : string;
encoding : Pdftext.encoding;
}
| ExistingNamedFont
val fontpack_of_standardfont : Pdftext.font -> t
Build a fontpack for a Standard 14 font
val get_char : t -> int -> (int * int * Pdftext.font) option
Look up a unicode codepoint in a font page. Returns (charcode, fontnumber, font)
val embed_truetype :
Pdf.t ->
fontfile:Pdfio.bytes ->
fontname:string ->
codepoints:int list ->
encoding:Pdftext.encoding ->
t
Build a fontpack from a TrueType font and list of codepoints, embedding its fonts in the document
Collate outputs of get_char
with like font
val load_substitute : string -> Pdftext.standard_font -> Pdfio.bytes * string
Load substitute Standard 14 font
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>