Align Ortho Camera safe frame to outline?

Is there anyway to align a ortho cameras safe frame to a rectangular spline? This may be a bit of a stretch but I have came across this issue a bunch of times and I not sure how to solve it. I need to render a precise area and I usually just eyeball it...