prawn icon indicating copy to clipboard operation
prawn copied to clipboard

group was awesome, i miss it

Open seebs opened this issue 8 years ago • 3 comments

I don't think this is new or surprising, but I actually used the "group" feature in the past, and have been unable to find a usable workaround for the case of "I want all of these objects to bump over to next page if there isn't enough space for them where they are". When I invoke group, I get an error saying that it's been disabled because of corruption. I'm not sure I have time or skill to try to fix such a thing, but I want to be sure it's in the tracker somewhere.

(Alternatively: If there's some other way to achieve the same goals, like a speculative-render to find out what something's bounds would be if you did it, that could serve? But at that point that could be a way to implement group, too.)

seebs avatar Jun 27 '17 18:06 seebs

Hi, there is a gem https://github.com/ddengler/prawn-grouping, I've never used it but take a look.

ViktorKopychko avatar Jul 19 '17 12:07 ViktorKopychko

To be honest, it may be better to actually include it as part of prawn directly, while displaying a warning that it is not recommended to use it perhaps.

ghost avatar Aug 12 '17 20:08 ghost

I just gave the prawn-grouping gem a bit of (much needed) love and released a new version that should be at least easy to install and compatible with the recent prawn version. Let me know if you find any issues.

@seebs your suggestion is basically what the grouping gem does internally

ddengler avatar Aug 03 '18 20:08 ddengler