{"title":"Codeunit 5467 PDF Document Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5467-pdf-document-management/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":5467,"name":"PDF Document Management","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5467-pdf-document-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5467-pdf-document-management/source/","path":"src/Layers/W1/BaseApp/eServices/EDocument/PDFDocumentManagement.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:77":{"name":"Report Selections","url":"https://jonas-paprotka.de/ref/table/77-report-selections/"},"codeunit:260":{"name":"Document-Mailing","url":"https://jonas-paprotka.de/ref/codeunit/260-document-mailing/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"codeunit:5477":{"name":"Sales Invoice Aggregator","url":"https://jonas-paprotka.de/ref/codeunit/5477-sales-invoice-aggregator/"},"table:112":{"name":"Sales Invoice Header","url":"https://jonas-paprotka.de/ref/table/112-sales-invoice-header/"},"codeunit:5508":{"name":"Graph Mgt - Sal. Cr. Memo Buf.","url":"https://jonas-paprotka.de/ref/codeunit/5508-graph-mgt-sal-cr-memo-buf/"},"codeunit:5529":{"name":"Purch. Inv. Aggregator","url":"https://jonas-paprotka.de/ref/codeunit/5529-purch-inv-aggregator/"},"table:5509":{"name":"Attachment Entity Buffer","url":"https://jonas-paprotka.de/ref/table/5509-attachment-entity-buffer/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"}},"procs":[{"name":"GeneratePdf","line":35,"kind":"procedure","params":2,"steps":[[65,"ext","table",77,"GetPdfReportForCust",4],[66,"ext","codeunit",260,"GetAttachmentFileName",4],[66,"ext","table",36,"GetDocTypeTxt",0],[71,"ext","table",77,"GetPdfReportForCust",4],[72,"ext","codeunit",260,"GetAttachmentFileName",4],[72,"ext","table",36,"GetDocTypeTxt",0],[83,"ext","codeunit",5477,"GetSalesInvoiceHeaderFromId",2],[86,"ext","table",77,"GetPdfReportForCust",4],[87,"ext","codeunit",260,"GetAttachmentFileName",4],[87,"ext","table",112,"GetDocTypeTxt",0],[92,"ext","codeunit",5508,"GetSalesCrMemoHeaderFromId",2],[95,"ext","table",77,"GetPdfReportForCust",4],[96,"ext","codeunit",260,"GetAttachmentFileName",4],[105,"ext","codeunit",5529,"GetPurchaseInvoiceHeaderFromId",2],[113,"ext","table",77,"GetPdfReportForCust",4],[114,"ext","codeunit",260,"GetAttachmentFileName",4],[134,"write",5509,"Insert",1]]},{"name":"GeneratePdfBlobWithDocumentType","line":139,"kind":"procedure","params":4,"steps":[[142,"write",5509,"Rename"],[143,"write",5509,"Modify"]]},{"name":"AddToTempAttachmentEntityBuffer","line":167,"kind":"procedure","access":"internal","params":5,"steps":[[172,"ext","codeunit",4100,"HasValue",0],[182,"ext","codeunit",4100,"CreateInStream",1],[184,"write",5509,"Insert",1]]}]}