When I ran your sample code with node, an error occurred: panic: interface conversion: pdfcpu.Object is nil, not pdfcpu.Integer