[python-win32] Word Application saving to PDF
Tim Roberts
timr at probo.com
Wed Oct 9 02:03:55 EDT 2019
On Oct 8, 2019, at 9:58 AM, Holland, James via python-win32 <python-win32 at python.org> wrote:
>
> I’m trying to open some rtf files to Word and then save as PDFs.
> ...
> Traceback (most recent call last):
>
> File "<ipython-input-17-e8d4aaddfc8f>", line 15, in <module>
> doc.SaveAs2(output_dir + '/' + 'rtfTest.pdf', FileFormat = wdFormatPDF)
> File "C:\Users\CMTHOL~1\AppData\Local\Temp\gen_py\3.6\00020905-0000-0000-C000-000000000046x0x8x7\_Document.py", line 461, in SaveAs2
> , CompatibilityMode)
> com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Word', 'Command failed', 'wdmain11.chm', 36966, -2146824090), None)
Did you do any web searching for this? -2146824090 is 0x80A1066, which is a security issue. Do you have permission to write into that directory? Are you able to do this same action if you do it by hand?
—
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20191008/3c0eb948/attachment.html>
More information about the python-win32
mailing list