You may also specify different input and output paths in docx2pdf command. In the above command, docx2pdf will convert all docx files present in /home/ubuntu/data_files into pdf files. You can also bulk convert a folder of docx to pdf files by specifying the folder path as input. If you don’t mention absolute paths above, then docx2pdf will look for docx files as well as write pdf files in your present working directory. We have mentioned absolute paths for both input and outpur files. Here’s an example to convert docx to pdf C:\> docx2pdf C:\Project\test.docx C:\Project\test.pdf In the above command, you need to specify the file path of docx file as first argument and the file path of pdf file to written as second argument. Open command prompt & run the following command to install docx2pdf C:\> pip install docx2pdfĢ. In such cases, it is better to use an online docx to pdf convertor like SmallPDF. Please note, Docx2pdf is available only in Windows. Here are the steps to convert docx to pdf files. We will use docx2pdf library for this purpose. In this article, we will look at how to convert docx to pdf using Python. Sometimes you may need to convert docx files to pdfs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |