---
id: object/codeunit/6191
type: object
title: Codeunit 6191 "E-Doc. PDF File Format"
summary: Codeunit 6191 "E-Doc. PDF File Format" in EDocument (Microsoft.EServices.EDocument.Format). 3 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - edocument
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 10168c230dd9efa1f7b33b50610f135db87ff45330f07c4979b493c2a1b7407b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/FileFormat/EDocPDFFileFormat.Codeunit.al
    title: src/Apps/W1/EDocument/app/src/Processing/Import/FileFormat/EDocPDFFileFormat.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9635
object_type: codeunit
object_id: 6191
name: E-Doc. PDF File Format
namespace: Microsoft.EServices.EDocument.Format
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 4
  events: 1
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 6191 "E-Doc. PDF File Format"

> Codeunit 6191 "E-Doc. PDF File Format" in EDocument (Microsoft.EServices.EDocument.Format). 3 public procedures, 1 events. Introduced in BC29, still in BC30.

EDocument · Microsoft.EServices.EDocument.Format · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/FileFormat/EDocPDFFileFormat.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Events published

- `OnAfterSetIStructureReceivedEDocumentForPdf(var Result: Enum "Structure Received E-Doc.")` (integration, obsolete 29.0): Allows subscribers to override which structure data implementation is used for PDF processing. This is specifically used by the Payables Agent to force MLLM processing on, regardless of the experiment setting.
  - subscribers: [Codeunit 3316 "PA Events"](../codeunit/3316.md) UseMLLMWhenEnabledInSetup

## Procedures

- `PreviewContent(FileName: Text; TempBlob: Codeunit "Temp Blob")`
- `PreferredStructureDataImplementation(): Enum "Structure Received E-Doc."`
- `FileExtension(): Text`

## Recent changes

- 2026-07-22 [#9635 Obsolete MLLM Payables Agent rollout scaffold](../../changes/bcapps/9635.md) (main, BC30, obsoletion)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Deprecations

- procedure OnAfterSetIStructureReceivedEDocumentForPdf: Pending 29.0 (#if not CLEAN29), "The MLLM Payables Agent feature is fully rolled out; the override event used to roll it out is no longer needed."

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "E-Doc. PDF File Format")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
