Someone asked me to code a program that translates French-language PDF files to English, and I thought that maybe I could convert the PDF files to Word documents or some other text document with a program I coded in C++, and then translate the text using Python's xgoogle library. Is programming this indirect translation process even feasible, and if so, how do I go about doing it? Thank you for your reply in advance.
jamd200 0 Newbie Poster
Recommended Answers
Jump to PostYou could use this PDF to Word converter program.
Jump to PostIf under Linux, you can use the "pdftotext" command (from package "poppler-utils"). Then, you can use "libtranslate-bin" package to install a text translator program and use it with "translate-bin" command. So, your problem can be entirely solved by:
$ pdftotext my_file.pdf my_file.txt $ translate-bin -s google -f …
All 7 Replies
NathanOliver 429 Veteran Poster Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Ancient Dragon commented: you made it too easy :) +17
alwaysLearning0 commented: thats great! :) +3
jamd200 0 Newbie Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
jamd200 0 Newbie Poster
zarfishan 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.