cancel
Showing results for 
Search instead for 
Did you mean: 

#BPTechTip - Converting a PDF to a Word document.

ewilson
Staff
Staff
Have you ever needed to convert a PDF to an editable Word document that your process could then work with? If so, you may have noticed there aren't a lot of useable solutions for this without purchasing a commercial product.

Well, it turns out you likely already have a solution in the form of Microsoft Word itself. And yes, this does work with the MS Word VBO. 😉

To convert a PDF to an editable Word document you simply supply the PDF as the target document for the Open action on the MS Word VBO. There are three issues to be aware of though: 

  1. When you call the Open action on the VBO, with a PDF as a target, the action will block until the PDF is converted to an editable Word document. Depending on the size of the PDF this can take several seconds or longer (I tested with a 6MB PDF on my laptop and it took about 10 seconds to open and convert).
  2. Word will pop-up a warning dialog which will block further processing until the dialog is dismissed. Luckily, this dialog can be disabled by setting a registry flag beforehand. The flag is a REG_DWORD that must be created (it typically doesn't exist unless someone clicks the Don't show this message again checkbox on the dialog) at the following location: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options. The option is titled DisableConvertPdfWarning and it's value should be set to 1 (see second image below).
  3. Microsoft have identified some PDF features that don't convert very well. You can read about them here.

15615.png
15616.png
I hope you find this tip useful. #BPTechTips

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
0 REPLIES 0