Replace the configurable item’s name with that of the simple product
Edit Mypdf.php prepareLineItems()
insert
if ($orderItem->getProductType() == 'configurable') {
$configProductOptions = $orderItem->getProductOptions();
$simpleProductName = $configProductOptions['simple_name'];
$item->setName($simpleProductName);
}