I want to overwrite pdf.xml in Magento 2.1.3 to change order for the total block, but i can't figure out how i can do that.
The totals are ordered in pdf.xml in Magento/sales/pdf
First I had only extend the invoice file:
<preference for="Magento\Sales\Model\Order\Pdf\Invoice" type="Hc\Sales\Model\Pdf\Invoice" />
And I have tried to extend the reader class
<preference for="Magento\Sales\Model\Order\Pdf\Config\Reader" type="Hc\Sales\Model\Pdf\Reader" />
But I get always the same error:
1 exception(s): Exception #0 (Exception): Warning: Magento\Framework\Config\Dom::_mergeNode(): unterminated entity reference`