Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

How to create password protected pdf thru AX

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.

  • Martin Dráb Profile Picture
    Martin Dráb 225,526 Super User 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
    Community Member Microsoft Employee 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
    ksurendra 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
    Rajdip Das 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
    Kambiz Nasehi 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
    Rajdip Das 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
    Community Member Microsoft Employee 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
    Rajdip Das 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....
  • 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
    Rajdip Das 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans