Hi Vasily,

there seems to be a typo in your customconfig.py:

pageMarginVert= 1 * 1nch

1nch should be inch ;)

If that is fixed, I can generate a letter format PDF with a custom footer.

But this is not the reason for the problem. Your customconfig.py file is 
not used. Make sure the file is placed somewhere where it can be found 
by python. e.g. place it in your homedirectory and add your 
homedirectory to the PYTHONPATH environment variable.

Hope this helps,

Volker

p.s. Take a look at section 6.3 of the reportlab manual for more info on 
styling text reportlab text for your page footer. the manual is 
available at http://www.reportlab.org/os_documentation.html


Vasily wrote:
> PDF output from the Collection extension is coming out in A4 format,
> and I want to add a standard company footer to each page. We're
> running MediaWiki 1.13.2, and Collection version 1.2. I created a
> customconfig.py file as discussed in another thread here, and we
> placed it at
>
> /usr/local/lib/python2.6/site-packages/mwlib.rl-0.10.2-py2.6.egg/mwlib/
> rl/
>
> but it's not working - I'm still getting A4 page format, and no
> footer. Any suggestions would be most welcome. Source for
> customconfig.py follows:
>
> ------------------------- snip -----------------------
>
> #! /usr/bin/env python
> #! -*- coding:utf-8 -*-
>
> ######### PAGE CONFIGURATION
>
> from reportlab.lib.units import cm, inch
>     new_size = (8.5*inch, 11*inch)
>
>     ######### PAGE CONFIGURATION
>     pageMarginHor = 1 * inch
>     pageMarginVert= 1 * 1nch
>     pageWidth, pageHeight = new_size
>     printWidth = pageWidth - 2*pageMarginHor
>     printHeight = pageHeight - 2*pageMarginVert
>     pagefooter = '<img src="https://ourpathtothewiki/wiki/extensions/
> newedgesmall.gif" width="75px height="20px" valign="bottom" /><br /
>   
>> PROPRIETARY AND CONFIDENTIAL<br />Not for Use or Disclosure Outside
>>     
> of Company<br />(c) Company 2009, All Rights Reserved'
> >
>   

-- 
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
[email protected]    http://www.brainbot.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to