Question, I am assuming when you input it, it is looking normal, with the barlines at the end of each line ... then when you PDF and send it, it arrives as your attachment shows, with the barlines displaced. Yes?
The PDF should look exactly like how you see it within the app.
Otherwise are you ok about how the barlines work? Any space can have a barline on either the right or left of it, so if you are working on a blank template, just add them where you need them, but remember there are 16 spaces across, so generally you can have 4 bars across as the other templates show.