I am trying to create a header and footer with an image in the background. I am not using any text in the header/footer, only the image.
The images are png files with transparent background. Their print size is around 26,5cm by 3cm. In pixels they are around 3130x363. The orientation of the page is landscape.
I am using version 188.8.131.52.
I have setup the header and the footer through the Format → Page Style… menu selection. On the Header / Footer tab I choose the Background tab and then Image button. I Add/Import the image and then under Options, Style I choose Custom position/size. Under Size I set the above stated Width and Height. Under Position I choose Top Center. Then I press OK.
The image appears in the header / footer oversize. When I open the above dialog again the Width is reported 82.82cm and the Height 6.59cm.
Can anybody explain the way Calc uses images in the header / footer? I have read that the image must be pre-sized because it can not be re-dimensioned. That is why I provide an image with the exact dimensions I want but apparently some sort of re-dimensioning occurs.
I tried scaling down by 30% but that does not work in Calc as changing the Width and Height value also fails.
Edit: I found a solution that works but I consider it a hack.
1 .I changed the Style under Options from Custom Position/size to Stretched and clicked OK. 2. In the window Page Style, in the Header or Footer tab I set the Height to the height of the image.
3. In the Page tab I set the Left and Right Margins to (Page Format Width - Image Width)/2
This way the image appears correctly proportioned. Of course this works only for images that have been prepared to fit the page area of the paper used.
So the question remains. Does the Custom Position/size Option works? Can somebody explain how it works?