Stocks remain in your Demat account throughout the duration of the pledge and you are eligible to receive all the corporate actions like dividends, bonuses, etc. in your Demat in this time period.