The PCLXL BeginPage operator has a variable length attribute list, although most of the attributes are optional; I think the only ones that are not optional are those for Orientation and paper (usually MediaSize, but there are alternative attributes to select non-standard paper types).
It seems that whatever driver you are using to create your output is not generating syntactically correct PCLXL.