Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Merge PDF files in the DocuView form

(1) ShareShare
ReportReport
Posted on by 11
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?
 
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,340 Most Valuable Professional on at
    D365 Finanance: Merge PDF files in the DocuView form
    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

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,602 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,340 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans