async def extract_bytes_async(self, content: bytes) -> ExtractionResult:
        """Extract text and metadata from bytes content using Pandoc.

        Args:
            content: The content bytes to process.

        Returns:
            ExtractionResult with the extracted text and metadata.
        """
        extension = self._get_pandoc_type_from_mime_type(self.mime_type)
        input_file, unlink = await create_temp_file(f".{extension}")

        try:
            await AsyncPath(input_file).write_bytes(content)
            return await self.extract_path_async(input_file)
        finally:
            await unlink()
Extract text and metadata from bytes content using Pandoc.

        Args:
            content: The content bytes to process.

        Returns:
            ExtractionResult with the extracted text and metadata.
        
kreuzberg/_extractors/_pandoc.py