mileszs / wicked_pdf

PDF generator (from HTML) plugin for Ruby on Rails
http://www.mileszs.com/wicked-pdf-plugin
MIT License
3.52k stars 640 forks source link

Wicked PDF | issue while setting fixed height for middle section of pdf file #1088

Open vishalinzalkar123 opened 6 months ago

vishalinzalkar123 commented 6 months ago

I have set a fixed header and footer for a pdf.

The content which come in middle section is a table whose data is dynamic.

I want middle section to be stretched till footer. so I want it to use entire available height if there is only 1 record or multiple records.

Currently height working on first page. but when data is more that table gets stretched and data come on next page but borders of table not reach till footer.

please help here Screenshot from 2024-01-02 23-06-49 Layout-of-the-FP10-Prescription-Form-Used-in-English-Primary-Care-Settings

vishalinzalkar123 commented 6 months ago

second image shared is format for pdf which I am using