PDF Translation discussion PDF.js

Hello

I wonder if PDF.js approach is applicable to Trados Studio

How to extract the text information of a PDF?

https://medium.otranslator.com/pdf-transaction-how-to-use-pdf-js-b669f092fc1d

2.1. Translate and replace the text of the PDF directly 

This approach extracts detailed information from the PDF text (such as text, color, font, position, and direction), and then translates and replaces the original text in its original position to achieve the effect of translation.

Disadvantage: When the translated text is longer than the original text, the font needs to be reduced in order to fit in the original position.

If the length of the translated text is nearly the same or shorter than the original, this way can product more perfect translated document.

2. How to extract text info from a PDF using PDF.js?

PDF.js is a JavaScript library used for rendering and interacting with PDF documents on a web page. Although primarily used for displaying PDF documents in a browser, PDF.js also provides APIs and functionalities for extracting text information from PDFs.

2.1 install
----- go to https://medium.otranslator.com/pdf-transaction-how-to-use-pdf-js-b669f092fc1d 

how to use this method in Trados Studio 2024?

emoji