开发者

How to translate .PDF files using google APIs? [closed]

开发者 https://www.devze.com 2022-12-29 16:18 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this q开发者_StackOverflow社区uestion so that it can be reopened, visit the help center. Closed 9 years ago.

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)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消