Drupal 8 Entity_View

$view_builder = \Drupal::entityTypeManager()
      ->getViewBuilder($entity->getEntityTypeId());
    $entityView = $view_builder
      ->view($entity, 'pdf');;
Dizzy Dove