Here is a modification of a program that worked for me. It uses Word 2007 with the Save As PDF add-in installed. It searches a directory for .doc files, opens them in Word and then saves them as a PDF. Note that you'll need to add a reference to Microsoft.Office.Interop.Word to the solution.
I went through the Word to PDF pain when someone dumped me with 10000 word files to convert to PDF. Now I did it in C# and used Word interop but it was slow and crashed if I tried to use PC at all.. very frustrating.
This lead me to discovering I could dump interops and their slowness..... for Excel I use (EPPLUS) and then I discovered that you can get a free tool called Spire that allows converting to PDF... with limitations!
Also, with Office 2007 having publish to PDF functionality, I guess you could use office automation to open the *.DOC file in Word 2007 and Save as PDF. I'm not too keen on office automation as it's slow and prone to hanging, but just throwing that out there...
Microsoft PDF add-in for word seems to be the best solution for now but you should take into consideration that it does not convert all word documents correctly to pdf and in some cases you will see huge difference between the word and the output pdf. Unfortunately I couldn't find any api that would convert all word documents correctly.The only solution I found to ensure the conversion was 100% correct was by converting the documents through a printer driver. The downside is that documents are queued and converted one by one, but you can be sure the resulted pdf is exactly the same as word document layout.I personally preferred using UDC (Universal document converter) and installed Foxit Reader(free version) on server too then printed the documents by starting a "Process" and setting its Verb property to "print". You can also use FileSystemWatcher to set a signal when the conversion has completed.
I have received a file stored in Microsoft Word that includes formatted words (italics, bold). I would like to do some work with the file (extracting sections, inserting words, etc.) and was planning to do this work with R Markdown. I need to keep the formatting (italics, bold) from Word during this conversion. I know I can convert from Markdown to Word, but is the reverse conversion from Word to Markdown also possible? If not, does anyone have any suggestions of how to bring Word into Markdown (relatively) painlessly while maintaining the italics and bold formatting?
I've created a form where responses populate a word doc template and create a file in SharePoint. This all works fine. The next step should convert the document to a pdf, but I get an error that says --The selected file doesn't exist, please select a valid file and drive. clientRequestId: 0b8924ab-4efe-47c3-991e-a8672fc6386e-- at the 'Convert Word Document to PDF step', However, it does exist. I'm not sure what I'm doing wrong. Below are some pictures of my flow up to that step. Note: in the 'Convert to PDF' step, I've tried, from the 'Create File' step: ID, Name, and DisplayName.
I finally have this working, however I could not get it to work using the 'Convert Word Doc to PDF' premium- Word Online (Business), which I do have an account for. I had to use the OneDrive for Business - Convert file (Preview) in order to get it working. Below is a screen shot of my flow. More steps, but it works.
I realize this was a long time ago, but I faced similar issues and really needed to avoid One Drive. My process worked, finally, and here was the solve: In the Convert Word step, in File it should be / then the Name output from the create file in sharepoint step (it wants a path to the file relative to the document library root). I also needed to be sure the filename when I then saved the converted document back to SharePoint wasn't just the Name output, because I just get a word doc because that is the filename when I created the first Word doc. So I needed to ensure the filename is just recreated and instead of .docx on the end of it, place .pdf. Works great. Thanks, Kev
How did you attach the converted pdf file to email? I am more specifically asking the step before "Add request to sharepoint list". I could not see which pdf file to choose to attach to the email. Did you use the path of folder or the location? I would appreciate if you could share it. Thanks!
Mine is a little different from @Mike44's, because I am storing the PDF files.
First, I populate the template and create the word file in sharepoint. Then I convert it to PDF, save it, attach that to the email, and delete the Word file.
You're not missing anything - the "Convert file" OneDrive (preview) action just bit the big one a month or two ago and now this Convert to Word Document is the only option unless you want to pay Adobe $25,000 a year OR are okay with setting up new Adobe API user accounts every 500 PDFs lol
It's time for the June Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members. If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond. COMMUNITY HIGHLIGHTS Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do! Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzcreativeopinionExpiscornovusFubarAmikNived_NambiarPstork1OliverRodriguesmmbr1606ManishSolankifernandosilvaragavanrajanBCBuizerExpiscornovusrenatoromaoLucas001timlAlexEncodianViswavEmadBeshaiDBO_DVDeenujiUmiantaChrist0fGochixVishnuReddy1997citron-trucmandelaVishalJhaverieetuRoboJohanTprathyooanandm08VictorIvanidzenicoxrfm1964shashankbhidepaulbeck1 rpaa LATEST NEWSSummer of Solutions 2024The Summer of Solutions challenge kicked off this month - an amazing Microsoft Community initiative to win free tickets to the Power Platform Community Conferencethis September in Las Vegas.The challenge is NOW OPEN to all #PowerPlatform community members and will consist of four weekly entry periods until July 14th, 2024. Click the image below to find out more on how you can win free tickets to #PPCC24 by entering the Summer of Solutions TODAY! Microsoft Customer StoriesWe're constantly working with an array of great businesses across the globe to assist them in taking advantage of the latest business applications technology.If you'd like to find out more about their low code journeys, click the image below to view our playlist of Customer Stories to discover how Accenture, Lumen Technologies, Cineplex, and many more, are streamlining their business processes with Microsoft Power Platform. Microsoft Leap ProgramHave you heard of Microsoft Leap - a global program designed to recruit, develop, and upskill unconventional talent for careers in the tech space.Microsoft Leap organizes a number of pathways into the industry, including the recent "NFL Legend Cohort - Technical Program Management" run jointly with the NFL Player Care Foundation (PCF) who are dedicated to helping retired players improve their quality of life.Click the image below to find out more about the great day shared at the Redmond campus and be sure to visit the Microsoft Leap website to discover how this amazing initiative is helping re-launch the lives of countless individuals.www.leap.microsoft.com UPCOMING EVENTSBiz Apps Partner Summit Seattle July 24-25It's not long now until the Biz Apps Partner Summit, which takes place at the Hilton Bellevue in Seattle on July 24-25, 2024.This event is the perfect place to network, connect, and learn how to scale your Microsoft practice, drive profitable revenue, and dazzle your customers! There's a great selection of speakers, including the likes of Tom Patterson, Donald Kossmann Joseph Corigliano, Cecilia Flombaum, Peter Jensen, John Siefert, Becky Lymberis, Daniel Rippey, and many more.Click the image below to find out more and register today! TechCon365 & Power Platform Conference D.C. August 12-16Things are hotting up for the next TechCon365 & PWRCON Conference in Washington D.C. on August 12-16, 2024.Featuring the likes of Tamara Bredemus, Sunny Eltepu, Lindsay Shelton, Brian Alderman, Daniel Glenn, Julie Turner, Jim Novak, John White, Jason Himmelstein, Luc Labelle, Emily Mancini, MVP, UXMC, Fabian Williams, Emma Wiehe,and many more, this is the perfect event for those that are looking to gain invaluable insights from industry experts.Click the image below to grab your tickets today! Power Platform Community Conference Vegas Sept. 18-20thAre you ready to come and join the fun in Las Vegas this September at PPCC24?This event is the perfect place to connect with fellow business applications enthusiasts and share your knowledge with the worldwide Microsoft Community.Now's your chance to hold all the aces. Just click the image below to find out more and we hope to see you go ALL-IN this September in Las Vegas! For more events, click the image below to visit the Community Days website.
We are excited to announce the "The Copilot Cookbook Community Challenge is a great way to showcase your creativity and connect with others. Plus, you could win tickets to the Power Platform Community Conference in Las Vegas in September 2024 as an amazing bonus. Two ways to enter:1. Copilot Studio Cookbook Gallery: _Copilot_Cookbook_Challenge2. Power Apps Copilot Cookbook Gallery: _Copilot_Cookbook_Challenge There will be 5 chances to qualify for the final drawing:Early Bird Entries: March 1 - June 2Week 1: June 3 - June 9Week 2: June 10 - June 16Week 3: June 17 - June 23Week 4: June 24 - June 30 At the end of each week, we will draw 5 random names from every user who has posted a qualifying Copilot Studio template, sample or demo in the Copilot Studio Cookbook or a qualifying Power Apps Copilot sample or demo in the Power Apps Copilot Cookbook. Users who are not drawn in a given week will be added to the pool for the next week. Users can qualify more than once, but no more than once per week.Four winners will be drawn at random from the total qualifying entrants. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once. If they are drawn multiple times, another user will be drawn at random.Prizes: One Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value, does not include travel, lodging, or any other expenses)Winners are also eligible to do a 10-minute presentation of their demo or solution in a community solutions showcase at the event.To qualify for the drawing, templates, samples or demos must be related to Copilot Studio or a Copilot feature of Power Apps, Power Automate, or Power Pages, and must demonstrate or solve a complete unique and useful business or technical problem. Power Automate and Power Pagers posts should be added to the Power Apps Cookbook. Final determination of qualifying entries is at the sole discretion of Microsoft.Weekly updates and the Final random winners will be posted in the News & Announcements section in the communities on July 29th, 2024.Did you submit entries early? Early Bird Entries March 1 - June 2: If you posted something in the "early bird" time frame complete this form: _Challenge_EarlyBirds if you would like to be entered in the challenge. Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.Copilot Cookbook Gallery:Power Apps Cookbook Gallery:1. @Mathieu_Paris 1. @SpongYe 2. n/a2. @Deenuji 3. n/a3. @Nived_Nambiar 4. n/a4. @ManishSolanki 5. n/a5. n/a Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.Copilot Cookbook Gallery:Power Apps Cookbook Gallery:1. Kasun_Pathirana1. ManishSolanki2. cloudatica2. madlad3. n/a3. SpongYe4. n/a4. n/a5. n/a5. n/a Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.Copilot Cookbook Gallery:Power Apps Cookbook Gallery:1. Parul_Yadav_Neo1. n/a2. SpongYe2. n/a3. n/a3. n/a4. n/a4. n/a5. n/a5. n/a
d3342ee215