Commit ab34e6ea authored by Fabien Morin's avatar Fabien Morin

add a space_between_pages attribute that's permit to change easyly the space

between two pages


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18951 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d2181dc
...@@ -52,7 +52,8 @@ def ERP5Site_createModuleScribus(self, ...@@ -52,7 +52,8 @@ def ERP5Site_createModuleScribus(self,
desired_height = desired_height desired_height = desired_height
desired_width = desired_width desired_width = desired_width
resolution = 300 # JPS-XXX - hardcoded resolution = 300 # JPS-XXX - hardcoded
background_format = 'jpg' # Fabien - XXX - hardcoded background_format = 'jpg' # XXX - hardcoded
space_between_pages = 20 # XXX - hardcoded
option_html = option_html option_html = option_html
# DECLARING NAMES # DECLARING NAMES
...@@ -235,7 +236,8 @@ def ERP5Site_createModuleScribus(self, ...@@ -235,7 +236,8 @@ def ERP5Site_createModuleScribus(self,
page_iterator, page_iterator,
page_gap, page_gap,
keep_page, keep_page,
properties_page) properties_page,
space_between_pages)
# recover useful page_object attributes from scribus dict # recover useful page_object attributes from scribus dict
...@@ -252,7 +254,8 @@ def ERP5Site_createModuleScribus(self, ...@@ -252,7 +254,8 @@ def ERP5Site_createModuleScribus(self,
# add last properties to css dict, including implementation # add last properties to css dict, including implementation
# of a n+1 page to prevent bug when rendering under Konqueror # of a n+1 page to prevent bug when rendering under Konqueror
ManageCSS.setFinalProperties(properties_css_dict,page_height) ManageCSS.setFinalProperties(properties_css_dict,page_height,
space_between_pages)
# generate output string from dict # generate output string from dict
form_css_content = ManageCSS.generateOutputContent(properties_css_dict) form_css_content = ManageCSS.generateOutputContent(properties_css_dict)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment