Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to create password protected pdf thru AX

(0) ShareShare
ReportReport
Posted on by 3,333

Hi All,

I run a report and save it into a .pdf format. These procedures are absolutely fine. But now I need to create a password protected of that .pdf file. Please provide me the procedure how to create password of the pdf while it saves at the time of report run? Kindly help me in giving a solution to this procedure.

*This post is locked for comments

  • Martin Dráb Profile Picture
    232,850 Most Valuable Professional on at
    RE: How to create password protected pdf thru AX

    Anuj, your question about unzipping and decryption a file doesn't belong to this thread, which is about printing reports to password-protected PDF files. Please continue in the thread you've created for your question.

  • Community Member Profile Picture
    on at
    RE: How to create password protected pdf thru AX

    I am receiving a zipped and password protected file from external system. How can I unzip and decrypt a file with password in Dynamics AX? Then I'll read the file data.

  • ksurendra Profile Picture
    5 on at
    RE: How to create password protected pdf thru AX

    I think it will meet the your senario. it will help out you.

    axcompendium.wordpress.com/.../167

  • Rajdip Das Profile Picture
    3,333 on at
    RE: How to create password protected pdf thru AX

    Absolutely agree with Kambiz, do a .dll with the logic and incorporate the password in the document and convert it to into the .pdf.

    For SSRS, I think there must have this option because .NET is a great and powerful tool. Check it once from there.

    Cheers... happy DAXing... :)

  • Kambiz Nasehi Profile Picture
    30 on at
    RE: How to create password protected pdf thru AX

    In short, you have to use from .NET to write a managed code or custom assembly in order to protect the given PDF  with password, then call it from your x++, run it as a job or call it within your current x++ class with the required args.

    If your are working with SSRS, the logic is the same, except you could write the managed code directly inside SSRS and no need to x++ (but and unless you might use x++, depends on your situation).

  • Rajdip Das Profile Picture
    3,333 on at
    RE: How to create password protected pdf thru AX

    Sorry guys, I could not help any more cause still we are finding the solution from Ax end. We could not make it till today but one way I can give you, it may help you but not sure how much it will help; make your document in word format and make this document  password protected with the help of 3rd party software or may be help of wrapper class of Ax and then convert into the document in pdf. I am not sure about this process but conceptually it can be done. Best of luck and happy DAXing.

  • Community Member Profile Picture
    on at
    RE: How to create password protected pdf thru AX

    Hi Rajdip,

    please share the code for the same ... i also have to generate a payslip in 2009 and that must be password protected.

    thanks

  • Rajdip Das Profile Picture
    3,333 on at
    Re: Re: Re: How to create password protected pdf thru AX
    Till today, after lots of R&Ds, it has not done....
  • Chayalakshmi Pinnapaturu Profile Picture
    20 on at
    Re: Re: How to create password protected pdf thru AX

    Hi,

    I do face the same problem, if anyone find the soln plz do let me know.

     

    Thanks 

    Chaya

  • Rajdip Das Profile Picture
    3,333 on at
    Re: How to create password protected pdf thru AX

     Hi,

    Till now I didn't get any solution regarding this process. If you find any solution then please let me know. Any suggestion would be helpful.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,000 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,850 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans