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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to Convert Base64 to PDF through X++

(1) ShareShare
ReportReport
Posted on by 134
Hi Experts,
 
My requirment is that i want to convert base64 string to pdf in dynamics 365 f&o and want to print that pdf file on user screen. Again! Base64 to pdf not pdf to base64.
 
Thanks.
 
Irfan Ayoub.
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    238,740 Most Valuable Professional on at
    Moved from Dynamics AX forum.
     
    I'll assume that you have a string containing contents of a PDF file encoded with Base64. If not, then your question doesn't make sense.
     
    There are several ways how to convert a Base64 string to an X++ container or .NET byte array. For example, you can use base64str2con() method.
     
    This thread is just about How to Convert Base64 to PDF through X++, but let me give you a hint for your next step, i.e. sending to a printer. You will find an example in How-to send PDF document to a printer from X++.
  • Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi,

    I'm not sure if this old link will help somehow, but u can give it a try
    https://devblog.sertanyaman.com/2017/08/01/using-base64-for-file-transfer-in-ax-2012/

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future. You can do this by ticking the box "Does this answer your question"
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    You can also simply view if the link below is helpful.
    jacquesdev.blogspot.com
    Best Regards,
    Hana

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 590 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans