Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Convert the word Document to PDF in custom workflow activity or plugin

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All;

i have a word document attach to an entity i want to pick that word document and convert it to pdf and then create and email and attach with it 

i am struggling in the part of creating word document from attachment to convert it into pdf.

is there anyone who has ever convert word document attachment to pdf through code in mscrm whether through plugin or custom workflow activity .

Note : i do not want to use the third party expensive dll's to achieve this 

*This post is locked for comments

  • Kp Profile Picture
    Kp 2 on at
    Convert the word Document to PDF in custom workflow activity or plugin
    I am trying same now. 
    In Crm on premise I need to convert word template to PDF.
    Is your solution working????? Can you help me?
  • Nafstar Profile Picture
    Nafstar 15 on at
    RE: Convert the word Document to PDF in custom workflow activity or plugin

    Hi Azwar,

    Which version of iTextSharp did you use? 5/7?  

  • Verified answer
    M.Azwar Alam Profile Picture
    M.Azwar Alam on at
    RE: Convert the word Document to PDF in custom workflow activity or plugin

    You can use iTextSharp dll for generating PDF and then use ILMerge for assembly registration.

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,694 on at
    RE: Convert the word Document to PDF in custom workflow activity or plugin

    Hi Anwar,

    You pretty much have to use a 3rd party dll for this, but you can find them free. Check out the results: www.google.com

    The only limitation is you need to make sure that it doesn't require a full trust environment. CRM Online is partial trust for security reasons so you can't use all the same dll's you may use on a desktop.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

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! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans