Types & Enums
Value types and enumerations shared across the loom pipeline, plus a few shared, pipeline-agnostic types used everywhere colors/positions appear.
DocraftDocumentMetadata
Metadata container for PDF document info-dict fields (author, title, dates,
etc.), applied via DocraftLoomPdfCreator::set_metadata() (see
Orchestrator). Includes the nested DateTime struct for creation/
modification dates — richer than what the .craft <Metadata> block
currently wires up (see Document Metadata).
-
class DocraftDocumentMetadata
Metadata container for PDF document information.
Supports all document info fields exposed by libharu (string attributes plus creation and modification dates).
Public Functions
-
void set_author(const std::string &author)
-
void set_creator(const std::string &creator)
-
void set_producer(const std::string &producer)
-
void set_title(const std::string &title)
-
void set_subject(const std::string &subject)
-
void set_keywords(const std::string &keywords)
-
void set_trapped(const std::string &trapped)
-
void set_gts_pdfx(const std::string >s_pdfx)
-
void clear_author()
-
void clear_creator()
-
void clear_producer()
-
void clear_title()
-
void clear_subject()
-
void clear_keywords()
-
void clear_trapped()
-
void clear_gts_pdfx()
-
void clear_creation_date()
-
void clear_modification_date()
-
const std::optional<std::string> &author() const
-
const std::optional<std::string> &creator() const
-
const std::optional<std::string> &producer() const
-
const std::optional<std::string> &title() const
-
const std::optional<std::string> &subject() const
-
const std::optional<std::string> &keywords() const
-
const std::optional<std::string> &trapped() const
-
const std::optional<std::string> >s_pdfx() const
-
struct DateTime
Date/time structure compatible with libharu info dates.
-
void set_author(const std::string &author)
Loom Node Enums
DocraftPositionType is documented alongside DocraftLoomNode in
Node Tree — Base & Text (it’s set via position_mode()).
-
enum class docraft::loom::nodes::TextAlignment
Text alignment options.
Values:
-
enumerator kLeft
-
enumerator kCenter
-
enumerator kRight
-
enumerator kJustified
-
enumerator kLeft