ddn.odf.image

ODF image document body model.

Provides typed access to image ODF packages (.odi). Image documents wrap a primary image stream inside an ODF package with standard metadata, manifest, and minimal content.xml.

Image constructs

  • OdfImageBody describes the primary image payload (path, media type)
  • Image formats commonly used: PNG, JPEG, SVG, TIFF, GIF, BMP
  • Package structure: mimetype, content.xml, META-INF/manifest.xml, and the image file (e.g. Pictures/image.png)
  • Round-trip preservation of metadata and manifest entries

Types 1

Describes the primary image payload in an ODF image document.

Fields
string imagePath
string mediaType
string width
string height
Methods
bool isEmpty() const @safe pure nothrowReturns `true` when no image reference is set.

Functions 2

fnOdfImageBody emptyImageBody() @safe pure nothrowReturns an empty `OdfImageBody`.
fnOdfImageBody imageBody(string imagePath, string mediaType, string width = "", string height = "") @safe pure nothrowConstructs an `OdfImageBody` referencing an image file.