Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I implement a word to PDF conversion in python without importing any libraries?

First time poster here. I’m trying to convert one or multiple .docx files to PDF but I can’t figure out how to do it without importing any libraries/modules aside from what is available in python 3.3.

I’ve read through the packages documentation but nothing stuck out as a solution. I also don’t know what I am looking for as I am pretty new to python. I found plenty of articles and resources that mention how to do it with an imported library, but not without.

Is it possible to accomplish this without importing a library?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Any advice/resources are welcome.

>Solution :

Code it from scratch. If you’re not going to use an external library, that is by definition pretty much your only option.

You’ll want to become an expert in the formal specifications for both PDF
and MS Word. Given the complexity and history of each of those, I expect a senior developer will want 6-12 months of experience with each to obtain the necessary understanding.

You should also have 6-12 months’ experience with Python, since you’ll likely need to be familiar with the language in order to define and use all the functions you’ll need. But in just a few years of dedication, you should be able to write the necessary code.

MORE REALISTICALLY, import Python libraries for managing PDFs and MS Word. That should only take a week or two.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading