---
title: "Codeunit 3110 PDF Document"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/3110-pdf-document/
type: codeunit
id: 3110
name: "PDF Document"
app: "System Application"
namespace: System.IO
versions: "26-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/3110-pdf-document/source/26/ https://jonas-paprotka.de/ref/codeunit/3110-pdf-document/source/27/ https://jonas-paprotka.de/ref/codeunit/3110-pdf-document/source/28/ https://jonas-paprotka.de/ref/codeunit/3110-pdf-document/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 3110 PDF Document

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/3110-pdf-document/

| | |
| --- | --- |
| App | System Application |
| Namespace | System.IO |
| Versions | 26-28 |
| Source file | Pdf/src/PDFDocument.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Initialize | () | - | public | 26-28 | - | - |
| Load | (InStream) | Boolean | public | 26-28 | - | - |
| ConvertToImage | (var InStream, Enum Image Format, Integer) | - | public | 26-28 | Pending 27.2 | Use the ConvertPdfToImage procedure instead. |
| GetDocumentAttachmentStream | (InStream, var Codeunit Temp Blob) | Boolean | public | 26-28 | - | - |
| GetPdfProperties | (InStream) | JsonObject | public | 26-28 | - | - |
| GetPdfPageCount | (InStream) | Integer | public | 26-28 | - | - |
| GetZipArchive | (InStream) | - | public | 26-28 | - | - |
| GetAttachmentNames | (InStream) | List | public | 26-28 | - | - |
| AddAttachment | (Text, Enum PDF Attach. Data Relationship, Text, Text, Text, Boolean) | - | public | 26-28 | - | - |
| AddFileToAppend | (Text) | - | public | 26-28 | - | - |
| AddStreamToAppend | (InStream) | - | public | 26-28 | - | - |
| ProtectDocument | (Text, Text) | - | public | 26-28 | - | - |
| ProtectDocument | (SecretText, SecretText) | - | public | 26-28 | - | - |
| AttachmentCount | () | Integer | public | 26-28 | - | - |
| AppendedDocumentCount | () | Integer | public | 26-28 | - | - |
| ToJson | (JsonObject) | JsonObject | public | 26-28 | - | - |
| ConvertPdfToImage | (var InStream, Enum Image Format, Integer) | Boolean | public | 27-28 | - | - |
| AddAttachment | (Text, Enum PDF Attach. Data Relationship, Text, InStream, Text, Boolean) | - | public | 27-28 | - | - |

## Source

Symbols: Microsoft.SystemApplication.symbols.63ca2fa4-4f03-4f2b-a480-172fef340d3f, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 26: https://github.com/microsoft/BCApps, MIT, releases/26.x at 78c4acf0d64a8eee157ea80164fa8fc2acffc9eb.
AL source 27: https://github.com/microsoft/BCApps, MIT, releases/27.x at 1749020b4c9445a43e4f7f540e89b7fa76ec25fd.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 740f59156b249f8ed7cba2e28423f03ae7b07233.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
