web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Merge PDF files in the DocuView form

(1) ShareShare
ReportReport
Posted on by 17
We have an requirement to merge PDF files we can attach in the DocView form (see screenshot). Currently each line if the type is 'File' has it's own attachment, for example an invoice. According requirement, DocuView form should be extended with a button /Merge PDF/ . This button should add a new record ,collecting the PDF attachments of the existing records, merge these and place it as an attachment for the created line. 
Does anyone know if there were I can find an X++ example how to achieve this or via a D365 forum or via an example in D365 Finance?
 
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    238,242 Most Valuable Professional on at
    You can use PDFsharp (or maybe some other similar library) to merge PDF files. For example, look at PDFsharp Sample: Combine Documents.
     
    I suggest you first write C# code to test the approach and then either rewrite to X++, or wrap it to a library and call the library from X++.

    (Moved from Dynamics AX forum to Dynamics 356 Finance forum. The prefix 'D365 Finanance: ' removed from the title, because it's not needed anymore.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 836 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 441 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 346 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans