Automated line based on hydraulic and mechanical press