Question

How to translate .PDF files using google APIs? (translate from language the pdf's are to for example russian (new pdf file orplain text or html).) (code example needed)

Was it helpful?

Solution

You could link the PDFs to
http://translate.google.com/translate?hl=fr&sl=auto&tl=en&u=http://www.example.com/PDF.pdf

The query paramaters:

hl: original language
tl: language to translate to
u: URL for PDF

If you would like to use the AJAX API I guess you first need to extract the text content from the PDF with some PHP and then translate it with Googles AJAX API for translation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top