open format · version 1.14

The .bim.pdf format

A .bim.pdf is a valid PDF 1.7 file that carries BIM data as associated-file sidecars and declares itself in XMP. Current version: 1.14.

Licence: this text is CC-BY-4.0; the schemas, reference types and validator are Apache-2.0. See LICENSE-spec and LICENSE in the repository.

JSON Schemas

Version-pinned URLs. Every published schema is frozen: its bytes and $id never change; new versions add files only.

Sidecar documents (1.14)

Generated from the 1.14 schema. Names are the attachment filenames.

SidecarRequired fieldsRole
elements.json (anchor)meta, source, class_registry, elements
annotations.jsonrequires, coordinate_space, annotations
levels.jsonlevels
marks.jsonrequires, coordinate_space, marks
model3d.jsonmeta, modelsOptional live 3D model placements for embedded glb attachments.
pages.jsonmeta, pagesv1.12 pages.json -- the page manifest.
scales.jsonpages
schedules.jsonmeta, schedules
titleblock.jsonsheets

Namespaces

XMP label: https://bimpdf.com/ns/1/ (prefix bimpdf). Legacy packaging fields: http://pdfbim.com/ns/1.0/ (prefix pdfbim).

Normative. MUST, SHOULD, MAY per RFC 2119. "Producer" writes a .bim.pdf; "reader" reads one; "validator" checks one. <PFX> = the registered developer prefix (proposed BIMP).

1. Base file

2. PDF-native first

Where PDF has a construct, a producer at conformance drawing MUST use it. Sidecars MAY carry the same fact for tool convenience; when both exist they MUST agree, and validators MUST check it.

FactPDF constructSidecarRule
Sheet numbercatalog /PageLabelspages.jsonMUST at drawing. Display strings; sheet ids stay in the sidecar.
Sheet indexcatalog /Outlinespages.jsonMUST at drawing. One entry per sheet; no data in titles.
Drawing scalepage /VP + /Measure /Subtype /RLscales.jsonMUST at drawing for each scaled viewport. Agreement: same BBox in raw user space (+-1 pt) and scale ratio within 0.1%. scales.json stays (PMT reads it).
LayersOCGs + /OCPropertiespmt-layers.jsonSHOULD. OCG names are the join key and MUST be stable across exports.
Markup identityannotation /NMmarks.jsonMUST at drawing on every annotation in the output (Revit's link annotations included): a document-unique UUID. Readers key by page + /NM.
Private annotation data/<PFX>_* keys--Any private key MUST carry the prefix. /PMT is legacy, read-only.
3DglTF attachment model_*.glb--Optional, opt-in only. The sheet is always the 2D poster.

3. Sidecars as Associated Files

4. Declaration and discovery

Each rung stands alone; a reader MUST NOT require more than one.

  1. Visible notice (shipped). Unchanged.
  2. XMP label: namespace https://bimpdf.com/ns/1/, prefix bimpdf. Properties: formatVersion (Text, 1.14), conformance (Text, core|drawing), archival (Text, optional, pdfa-3b), spec (URI), readingHint (Text, one sentence). The packet MUST include a PDF/A extension-schema block describing them. The namespace URI MUST resolve to a page on bimpdf.com. Producer identity uses standard xmp:CreatorTool.
  3. Catalog /Extensions /<PFX> << /BaseVersion /1.7 /ExtensionLevel 1 /URL (https://bimpdf.com/spec) >>. ExtensionLevel changes only on a major.
  4. AFRelationship + /Desc on every attachment (section 3).
  5. README-agent.md attachment: how to read this file, under 60 lines.
  6. https://bimpdf.com/llms.txt describing the format and linking /spec.

formatVersion is the one declaration. When it disagrees with elements.json's "bim-pdf" field, readers use elements.json and validators report an error.

Legacy: readers MUST read pdfbim:version and pdfbim:generator (http://pdfbim.com/ns/1.0/) and MUST NOT treat pdfbim:version as a format version. Producers MAY keep writing them. https://bimpdf.com/ns/1.0/ MUST resolve to a page explaining them.

Detection order: XMP bimpdf:formatVersion -> /Extensions /<PFX> -> AFRelationship /<PFX>_Elements (legacy: older files only; writers use /Data, so detection normally rests on the XMP and /Extensions rungs) -> legacy pdfbim XMP -> an attachment named elements.json. The first hit wins.

5. Conformance

6. Versioning

7. Migration