i am planning to align my markup to the right of the pdf and i use prawn's bounding_box to do it but bounding_box requires the width parameter to be set
As the markup may contain arbitrary content (lists, tables, images, ..), I guess it would be impossible to determine the resulting width. Why don't you give the bounding box full width (bounds.width)?
i am planning to align my markup to the right of the pdf and i use prawn's bounding_box to do it but bounding_box requires the width parameter to be set