package cpdf
High-level PDF tools based on CamlPDF
Install
Dune Dependency
Authors
Maintainers
Sources
v2.7.zip
md5=8dd7b420b71374640679351cfa618c44
sha512=ddb2f30d10699ef4b843d06d30620ba018dbaec1ac9180b3fb7e85d1100718ece13212d56eca18139fdf1a19e4b27dbc6f31f628c4296273813448fb29d624e0
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>