Size limit in Azure AI translator

Simon Duhil 0 Reputation points
2025-10-08T16:42:31.2233333+00:00

Hello, I run a digital agency in France and work for several clients around the world.

We are currently working for a major client in the luxury sector on an interface that automatically translates documents. We are therefore using Azure AI Translator.

We have some API limitations, notably:

  • Documents are limited to 40 MB. This is a real obstacle for us because our client has PPT presentations that are much larger in size. Is there a way to increase this size?
  • Line break issues, particularly in PPT files. When translating PPT documents, we have a problem with line break management because the API does not understand the overall context. Is it possible to specify that line breaks should be ignored in certain documents or in certain situations?

Thank you in advance for your feedback.

Azure AI Translator
Azure AI Translator
An Azure service to easily conduct machine translation with a simple REST API call.
{count} votes

1 answer

Sort by: Most helpful
  1. Aryan Parashar 1,850 Reputation points Microsoft External Staff Moderator
    2025-10-09T05:44:53.0133333+00:00

    Hi Simon,
    Currently, there is no way to increase the size limit. Here is the supported documentation:
    https://free.blessedness.top/en-us/azure/ai-services/translator/service-limits#asynchronous-batch-operation-limits

    I tried dividing the PPT using Python code on my end, but it doesn't create valid PPTs.

    You cannot specify the line breaks to be ignored.

    Here is the supported documentation:
    https://free.blessedness.top/en-us/azure/ai-services/translator/text-translation/quickstart/rest-api?tabs=python#headers

    You can use the below code to remove every line break from your PPT:

    from pptx import Presentation
    
    def remove_line_breaks(text):
        return text.replace('\n', ' ').replace('\r', ' ')
    
    def remove_line_breaks_from_pptx(file_path, output_file_path):
        prs = Presentation(file_path)  
        for slide in prs.slides:
            for shape in slide.shapes:
                if hasattr(shape, "text"):  
                    shape.text = remove_line_breaks(shape.text)
        
        prs.save(output_file_path)
        print(f"PowerPoint file saved without line breaks as '{output_file_path}'.")
    
    input_pptx = r'<YOUR-PPTX-FILE-PATH-HERE>'
    output_pptx = 'output_pptx_file_without_line_breaks.pptx'
    
    remove_line_breaks_from_pptx(input_pptx, output_pptx)
    

    Feel free to accept this as an answer.
    Thankyou for reaching out to the Microsoft QNA Portal.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.