<?php
/** @var \Magetop\Advancepreview\Block\Order\CustomEmail $block */
//$itemId = $block->getData('item_id');
$orderId = $block->getData('order_id');
?>
<a href="<?php echo $block->getUrl().'advance_preview/index/index/order_id/'.$orderId.'/type/2'; ?>"><?php echo __('Download order PDF') ?></a>
