---
id: post/demiliani-com/12623
type: post
title: "Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document."
summary: Dynamics 365 Business Central 2025 Wave 2 introduces a new ExtendedDataType called Document that enables PDF file previews in web client FactBoxes. Developers can use Media fields with this data type to display PDF files as images in CardPart and ListPart pages by converting them using the PDF Document codeunit.
tier: community
language: en
tags:
  - pdf preview
  - extended data type
  - media fields
  - factbox
  - web client
  - document rendering
  - al development
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T01:58:43.812Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 4599bf7bc5e3e61894dc07c59df23b212072ee709e6540dae71c249b17d758a3
evidence:
  - kind: blog
    url: https://demiliani.com/2025/10/14/dynamics-365-business-central-previewing-pdf-files-in-web-client-using-the-new-extendeddatatype-document/
    title: "Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document."
    date: "2025-10-14"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://demiliani.com/2025/10/14/dynamics-365-business-central-previewing-pdf-files-in-web-client-using-the-new-extendeddatatype-document/
    title: "Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document."
    date: "2025-10-14"
    commit: null
    t: null
    quote: This new ExtendedDataType allows the client to render elements such as PDF files and images in FactBoxes.
  - kind: blog
    url: https://demiliani.com/2025/10/14/dynamics-365-business-central-previewing-pdf-files-in-web-client-using-the-new-extendeddatatype-document/
    title: "Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document."
    date: "2025-10-14"
    commit: null
    t: null
    quote: Convert the PDF document in an image by calling the ConvertToImage method.
links:
  learn: []
  objects:
    - object/codeunit/419
    - object/codeunit/4100
    - object/codeunit/3110
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "12623"
source_id: demiliani-com
source_name: Stefano Demiliani
url: https://demiliani.com/2025/10/14/dynamics-365-business-central-previewing-pdf-files-in-web-client-using-the-new-extendeddatatype-document/
published_at: "2025-10-14T09:44:28.000Z"
author: Stefano Demiliani
full_text: false
words: 418
quotes:
  - text: This new ExtendedDataType allows the client to render elements such as PDF files and images in FactBoxes.
    why_it_matters: Explains the primary capability and use case for the new Document ExtendedDataType feature
  - text: Convert the PDF document in an image by calling the ConvertToImage method.
    why_it_matters: Identifies the key technical step required to prepare PDFs for preview in the UI
code_objects_mentioned:
  - codeunit File Management
  - codeunit Temp Blob
  - codeunit PDF Document
  - page SD PDF Preview
systems:
  - development
  - platform
versions_mentioned:
  - 2025 Wave 2
  - v27
  - AL Language 16.x
preview:
  embeddable: true
  frame_url: https://demiliani.com/2025/10/14/dynamics-365-business-central-previewing-pdf-files-in-web-client-using-the-new-extendeddatatype-document/embed/
  image: https://demiliani.com/wp-content/uploads/2025/10/alpdfpreview_00.png
  image_alt: null
  image_w: 746
  image_h: 521
  site_name: Stefano Demiliani
  favicon: https://demiliani.com/wp-content/uploads/2022/09/sd_wordpress_logo.png?w=32
  probed_at: "2026-10-07T11:51:30.614Z"
---

# Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document.

[Read the post](https://demiliani.com/2025/10/14/dynamics-365-business-central-previewing-pdf-files-in-web-client-using-the-new-extendeddatatype-document/) · Stefano Demiliani (Stefano Demiliani, MVP) · 2025-10-14 · 418 words · tier community · reviewed (checked by Opus)

> Dynamics 365 Business Central 2025 Wave 2 introduces a new ExtendedDataType called Document that enables PDF file previews in web client FactBoxes. Developers can use Media fields with this data type to display PDF files as images in CardPart and ListPart pages by converting them using the PDF Document codeunit.

## Key points

- New Document ExtendedDataType available in v27 with AL Language 16.x for Media and MediaSet fields
- Allows rendering PDF files and images in FactBox elements (CardPart and ListPart pages)
- PDF files must be converted to images using the ConvertToImage method before preview
- Implementation requires loading PDF content into InStream, converting to image format, and importing into Media field

## Quotes

- "This new ExtendedDataType allows the client to render elements such as PDF files and images in FactBoxes." (Explains the primary capability and use case for the new Document ExtendedDataType feature)
- "Convert the PDF document in an image by calling the ConvertToImage method." (Identifies the key technical step required to prepare PDFs for preview in the UI)

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- [codeunit 419 "File Management"](../../objects/codeunit/419.md)
- [codeunit 4100 "Temp Blob"](../../objects/codeunit/4100.md)
- [codeunit 3110 "PDF Document"](../../objects/codeunit/3110.md)
- page "SD PDF Preview"

Not found in BC28-30: page "SD PDF Preview".

## Context

- Features: PDF preview in web client, ExtendedDataType Document, Media field rendering, PDF to image conversion, FactBox document display
- Versions: 2025 Wave 2, v27, AL Language 16.x

Source: Stefano Demiliani, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
