# Native Vector Document Exports (PDF, HTML, Markdown)

When exporting rich documents created with BlockNote to standard desktop formats, Slasher provides built-in transformer adapters:

<FeatureGrid cols={3}>
  <FeatureCard
    title="PDF Vector Export"
    description="Rendered via @react-pdf/renderer with preserved institutional borders, typography, and hyperlinks."
    icon="file-text"
  />
  <FeatureCard
    title="Word DOCX Export"
    description="Transformed via docx library into native formatted callout tables and metadata grids."
    icon="layout"
  />
  <FeatureCard
    title="LibreOffice ODF Export"
    description="Open Document Format XML mapping ensuring lossless fidelity in sovereign office suites."
    icon="archive"
  />
</FeatureGrid>

---

## ⚡ Integration Code Example

Import adapters from independent subpath entry points (`exporters/pdf`, `exporters/docx`, `exporters/odt`) to isolate dependencies and prevent unused export libraries from bundling into your application:

```tsx
// Independent format entry points (tree-shakable)
import { blockMappingSourceBlockPDF } from "@suitenumerique/blocknote-sources/exporters/pdf";
import { blockMappingSourceBlockDocx } from "@suitenumerique/blocknote-sources/exporters/docx";
import { blockMappingSourceBlockODT } from "@suitenumerique/blocknote-sources/exporters/odt";

// Register in BlockNote exporter schema mappings
pdfSchemaMappings.blockMapping.sourceBlock = blockMappingSourceBlockPDF;
docxSchemaMappings.blockMapping.sourceBlock = blockMappingSourceBlockDocx;
odtSchemaMappings.blockMapping.sourceBlock = blockMappingSourceBlockODT;
```
