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.
bim-pdf-1.14.schema.json(current)bim-pdf-1.13.schema.jsonbim-pdf-1.12.schema.jsonbim-pdf-1.11.schema.jsonbim-pdf-1.10.schema.jsonbim-pdf-1.9.schema.jsonbim-pdf-1.8.schema.jsonbim-pdf-1.7.schema.jsonbim-pdf-1.6.schema.jsonbim-pdf-1.5.schema.jsonbim-pdf-1.4.schema.jsonbim-pdf-1.3.schema.jsonbim-pdf-1.2.schema.jsonbim-pdf-1.1.schema.jsonbim-pdf-1.0.schema.json
Sidecar documents (1.14)
Generated from the 1.14 schema. Names are the attachment filenames.
| Sidecar | Required fields | Role |
|---|---|---|
elements.json (anchor) | meta, source, class_registry, elements | |
annotations.json | requires, coordinate_space, annotations | |
levels.json | levels | |
marks.json | requires, coordinate_space, marks | |
model3d.json | meta, models | Optional live 3D model placements for embedded glb attachments. |
pages.json | meta, pages | v1.12 pages.json -- the page manifest. |
scales.json | pages | |
schedules.json | meta, schedules | |
titleblock.json | sheets |
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
- 1.1 A .bim.pdf MUST be a valid PDF 1.7 file (ISO 32000-1) with header or catalog
/Version>= 1.7. Keys from PDF 2.0 below MUST be ignorable by a 1.7 reader. - 1.2 Producers MUST NOT encrypt it (AF payloads are always encrypted in an encrypted PDF). Readers MAY try to read an encrypted file. Signing is allowed.
- 1.3 The extension is
.pdf;.bim.pdfis a naming convention. - 1.4 Degrades to a plain PDF: removing every attachment, the XMP label and
/ExtensionsMUST leave a file that renders the same pages. No page content MAY depend on bim data, 3D or JavaScript. Every OCG holding sheet content MUST default ON.
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.
| Fact | PDF construct | Sidecar | Rule |
|---|---|---|---|
| Sheet number | catalog /PageLabels | pages.json | MUST at drawing. Display strings; sheet ids stay in the sidecar. |
| Sheet index | catalog /Outlines | pages.json | MUST at drawing. One entry per sheet; no data in titles. |
| Drawing scale | page /VP + /Measure /Subtype /RL | scales.json | MUST 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). |
| Layers | OCGs + /OCProperties | pmt-layers.json | SHOULD. OCG names are the join key and MUST be stable across exports. |
| Markup identity | annotation /NM | marks.json | MUST 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. |
| 3D | glTF attachment model_*.glb | -- | Optional, opt-in only. The sheet is always the 2D poster. |
3. Sidecars as Associated Files
- 3.1 Every sidecar MUST be in the catalog
/EmbeddedFilesname tree AND the catalog/AFarray. Page-level/AFis not used in 1.x. - 3.2 Each filespec MUST have
/F=/UF= the filename,/AFRelationship, and a/Descnaming the file's role andhttps://bimpdf.com/spec. - 3.3 Each embedded file stream MUST have
/Subtypeas a MIME name (/application#2Fjson,/model#2Fgltf-binary,/text#2Fmarkdown) and/Paramswith/Sizeand/ModDate. - 3.4 AFRelationship:
elements.json(the anchor) and the other format sidecars/Data;README-agent.md, glTF and app-private files/Supplement. Note: custom AFRelationship names are valid per ISO 32000-2 but rejected by widely used libraries (pdfcpu); revisit when they accept second-class names. Readers MAY still accept/BIMP_Elementsonelements.jsonin files written earlier (detection rung 3). - 3.5
elements.jsonMUST be present; its"bim-pdf"field is the data version of the sidecars. - 3.6 Readers MUST walk both flat
/Namesarrays and/Kidstrees. - 3.7 Reserved names: the canonical sidecar names in the schema,
README-agent.md,model_*.glb. App-private attachments MUST use an<app>-prefix (e.g.pmt-marks.json). Readers MUST ignore unknown names. - 3.8 No bim data in
/PieceInfoor private streams.
4. Declaration and discovery
Each rung stands alone; a reader MUST NOT require more than one.
- Visible notice (shipped). Unchanged.
- XMP label: namespace
https://bimpdf.com/ns/1/, prefixbimpdf. 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 standardxmp:CreatorTool. - Catalog
/Extensions /<PFX> << /BaseVersion /1.7 /ExtensionLevel 1 /URL (https://bimpdf.com/spec) >>. ExtensionLevel changes only on a major. - AFRelationship +
/Descon every attachment (section 3). README-agent.mdattachment: how to read this file, under 60 lines.https://bimpdf.com/llms.txtdescribing 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
core: base file (1) + sidecars as AF (3) + XMP label (4.2). Every producer MUST reachcore.drawing: core + PageLabels, Outlines,/VP+/Measure, annotation/NM(2).- Orthogonal flag
archival: pdfa-3b: the file also passes veraPDF as PDF/A-3b. - The word "profile" is not used: pdf-cli's
bim.validatealready has aprofilefield (sidecar shape) that drafter keys on [bim_validate.go:36,issue.test.mjs:75].
6. Versioning
- 6.1
MAJOR.MINOR. Minor = additive. Major = an old reader would misread a new file. - 6.2 Every published
https://bimpdf.com/schema/bim-pdf-1.X.schema.jsonis frozen forever, bytes and$id. New versions add files only. - 6.3 Our own components pin: each producer writes exactly one version and byte-checks that schema. A validator given a version it has no schema for MUST refuse ("unknown format version 1.X") and MUST NOT fall back to an older schema.
- 6.4 Release order for our components: core -> pdf-cli release vendoring the new schema -> bim-cli pin -> producers write the new version. A producer MUST NOT write a version the validator pinned by bim-cli lacks.
- 6.5 Third-party policy: readers SHOULD accept any minor of a known major and ignore unknown fields and attachments; MUST refuse an unknown major. Producers SHOULD write the newest minor they fully implement.
- 6.6 The XMP namespace URI and ExtensionLevel change only on a major.
7. Migration
- 7.1 Files written before 1.14 stay valid at their sidecar version; readers find them by the legacy rungs (section 4).
- 7.2 autocad-cli's pre-1.0 wrapper stays readable by pdf-cli (
v2/legacy-v1shape) but is not a conforming .bim.pdf. - 7.3 blender-cli's 1.0 output is valid 1.0.
- 7.4 A tool that rewrites a .bim.pdf (PMT export) MUST regenerate the declaration (XMP label,
/Extensions, AF entries) for what it writes, MUST carry over PageLabels, Outlines and legacypdfbim:*fields, and MUST NOT copy a stale declaration.