noshutdown-ru / vault

Is a plugin for project management system Redmine. Allows you to store various passwords/keys in one place for the project.
https://noshutdown.ru/en/redmine-plugins-vault
46 stars 29 forks source link

Table size in PDF #3

Closed peterbeck closed 7 years ago

peterbeck commented 7 years ago

Is it possible to resize the tables in the pdf output ? For example, i don't need such a long URL field, but would prefer a bigger "login" table. How can I achieve that ?

noshutdown-ru-user commented 7 years ago

you can try change some values here ./app/helpers/keys_helper.rb

page_height   = pdf.get_page_height # 210
 page_width    = pdf.get_page_width  # 297
 left_margin   = pdf.get_original_margins['left'] # 10
 right_margin  = pdf.get_original_margins['right'] # 10
 bottom_margin = pdf.get_footer_margin
 row_height    = 4
 table_width = page_width - right_margin - left_margin
noshutdown-ru-user commented 7 years ago

we think about custom templates for pdf

peterbeck commented 7 years ago

perfect - I could manage to adjust the tables via RDMMultiCell

Thanks a lot for this great plugin !