Showing error in PDF view for custom print format when watermark is used

The print format is showing in full page view, while giving pdf view it is showing server error