Why would a doctor send my girlfriend for a pelvic X-ray if ready to have baby?

I don't know. Old school... Before ultrasound, x-ray was used to check fetal position (breech vs vertex) or to calculate pelvic size (no longer used). It beats me, i suggest you ask your doctor. Additionally, you really shouldn't do a test if it doesn't make sense to you.