class_docstr: A component for converting files to Documents using Azure's Document Intelligence service.
  Supported file formats are: PDF, JPEG, PNG, BMP, TIFF, DOCX, XLSX, PPTX, and HTML.
  
  In order to be able to use this component, you need an active Azure account
  and a Document Intelligence or Cognitive Services resource. Please follow the steps described in the
  [Azure documentation](https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/quickstarts/get-started-sdks-rest-api)
  to set up your resource.
  
  Usage example:
  ```python
  from haystack.components.converters.azure import AzureOCRDocumentConverter
  
  converter = AzureOCRDocumentConverter()
  results = converter.run(sources=["image-based-document.pdf"], meta={"date_added": datetime.now().isoformat()})
  documents = results["documents"]
  print(documents[0].content)
  # 'This is a text from the PDF file.'
  ```
class_docstr_tok: ["A","component","for","converting","files","to","Documents","using","Azure","'s","Document","Intelligence","service",".","Supported","file","formats","are",":","PDF",",","JPEG",",","PNG",",","BMP",",","TIFF",",","DOCX",",","XLSX",",","PPTX",",","and","HTML",".","In","order","to","be","able","to","use","this","component",",","you","need","an","active","Azure","account","and","a","Document","Intelligence","or","Cognitive","Services","resource",".","Please","follow","the","steps","described","in","the","[","Azure","documentation","]","(","https",":","\/\/learn.microsoft.com\/en-us\/azure\/ai-services\/document-intelligence\/quickstarts\/get-started-sdks-rest-api",")","to","set","up","your","resource",".","Usage","example",":","``","`","python","from","haystack.components.converters.azure","import","AzureOCRDocumentConverter","converter","=","AzureOCRDocumentConverter","(",")","results","=","converter.run","(","sources=","[","``","image-based-document.pdf","''","]",",","meta=","{","``","date_added","''",":","datetime.now","(",")",".isoformat","(",")","}",")","documents","=","results","[","``","documents","''","]","print","(","documents","[","0","]",".content",")","#","'This","is","a","text","from","the","PDF","file",".","'","``","`"]
docstr: Serialize this component to a dictionary.
docstr_tok: ["Serialize","this","component","to","a","dictionary","."]
code: def to_dict(self) -> Dict[str, Any]:
      """
      Serialize this component to a dictionary.
      """
      return default_to_dict(
          self, endpoint=self.endpoint, model_id=self.model_id
      )
  
file_path: haystack/haystack/components/converters/azure.py
imports: from pathlib import Path
  from typing import List, Union, Dict, Any, Optional
  import logging
  import os
  from haystack.lazy_imports import LazyImport
  from haystack import component, Document, default_to_dict
  from haystack.dataclasses import ByteStream
  from haystack.components.converters.utils import get_bytestream_from_source, normalize_metadata
label_desc: Use image node_id 3 for calling the AzureOCRDocumentConverter obj's underlying member method code with example usage: obj.to_dict() and returns: default_to_dict