prawnpdf / prawn-table

Provides support for tables in Prawn
Other
205 stars 98 forks source link

Implement path for setting table width (prawn-table's width options) #144

Closed allthesignals closed 2 years ago

allthesignals commented 2 years ago

According to prawn-table, there's a width option:

The default table width depends on the content provided. It will expand up to the current bounding box width to fit the content. If you want the table to have a fixed width no matter the content you may use the :width option to manually set the width.

image

I can't find a way to do this. Maybe we should start with getting it to honor the table options:

pdf.markup_options = {
  table: { width: 320 }
}

Maybe in the future, it could work this way:

<table style="width: 320px;">
</table>

Thoughts?

allthesignals commented 2 years ago

Oh gosh, sorry. Wrong repo...