I was embedding an image as the background image using
pdf.bounding_box([0, height], :width => width) do
pdf.image background, :fit => [width, height]
end
but for some reason this caused any graphics to fall in a layer underneath this image. Using the image as a background or simply not putting it in the bounding box resolved the issue.