@@ -316,14 +316,23 @@ directly:
316316 the translated document. Only supported for ` docx ` and ` pdf ` output; for
317317 other output formats the API ignores this option.
318318- ` extraRequestParameters ` : same as in [ Text translation options] ( #text-translation-options ) .
319- - ` enableDocumentMinification ` : A ` bool ` value. If set to ` true ` , the library will try to minify a document
320- before translating it through the API, sending a smaller document if the file contains a lot of media. This is
321- currently only supported for ` pptx ` and ` docx ` files. See also [ Document minification] ( #document-minification ) .
319+ - ` enableDocumentMinification ` : ** deprecated** , will be removed in the next
320+ major version. A ` bool ` value. If set to ` true ` , the library will try to
321+ minify a document before translating it through the API, sending a smaller
322+ document if the file contains a lot of media. This is currently only
323+ supported for ` pptx ` and ` docx ` files. See also
324+ [ Document minification] ( #document-minification ) .
322325
323326#### Document minification
327+ > ** Deprecated:** document minification (the ` enableDocumentMinification ` option and the
328+ > ` DocumentMinifier ` class) is deprecated and will be removed in the next major version.
329+ > It still works until then. The DeepL API accepts larger documents; see the
330+ > [ usage limits] ( https://developers.deepl.com/docs/resources/usage-limits ) .
331+
324332In some contexts, one can end up with large document files (e.g. PowerPoint presentations
325- or Word files with many contributors, especially in a larger organization). However, the
326- DeepL API enforces a limit of 30 MB for most of these files (see Usage Limits in the docs).
333+ or Word files with many contributors, especially in a larger organization). The DeepL API
334+ limits the size of uploaded documents; see the
335+ [ usage limits] ( https://developers.deepl.com/docs/resources/usage-limits ) for the current values.
327336In the case that most of this size comes from media included in the documents (e.g. images,
328337videos, animations), document minification can help.
329338In this case, the library will create a temporary directory to extract the document into,
0 commit comments