Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16714

converting a word file into a pdf file without notes

$
0
0

I want to convert a word file into a pdf file using python, but without any notes that I added to the word file.

I am using PyPDF2 library and convert() function.

    for paragraph in infile.paragraphs:        for run in paragraph.runs:            if run.comment:                run.clear()  

The above codes didn't work.


Viewing all articles
Browse latest Browse all 16714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>