When i tried to remove the header and footer and to download the pdf ,then i open it gives me below error.in screen shot

Is there any option to create the pdf with different custom layout option, without using the default.ctp
I have tried by creating the new file called empty.ctp and done below code but it is not wotking
$filename = 'userlabel';
$this->viewBuilder()
->className('Dompdf.Pdf')
->layout('Dompdf.empty')
->template('pdf/pdflabel')
->options(['config' => [
'orientation' => 'landscape',
'size' => 'A4',
'filename' => $filename,
'render' => 'download',
]]);
Can any one please help me in this issue. Thanks In Advance ......!
userlabel.pdf