The BoundingBox/PageBoundingBox DSC comments must be integers. So you will need something like:
os_bbox << "%%BoundingBox: 0 0 " << (int)ceil(width) << (int)ceil(height); os_pagebbox << "%%PageBoundingBox: 0 0 " << (int)ceil(width) << (int)ceil(height);
The BoundingBox/ PageBoundingBox DSC comments must be integers. So you will need something like:
os_bbox << "%%BoundingBox: 0 0 " << (int)ceil(width) << (int)ceil(height);
os_pagebbox << "%%PageBoundingBox: 0 0 " << (int)ceil(width) << (int)ceil(height);