[pdf4st] Re: right aligned footer

  • From: bobn@xxxxxxxxxx
  • To: "pdf4st@xxxxxxxxxxxxx" <pdf4st@xxxxxxxxxxxxx>
  • Date: Thu, 16 Aug 2012 11:01:29 -0700 (PDT)

Ivo,
The problem is caused by the footer string width calculation. It's based 
on 'page <page>/<total>' but is rendered as 'page 1/7' which is narrower. 
Right justification is calculated by setting the X value to the right margin 
minus the string width, so in this case it's off by a bit.

'<page>' can be translated earlier in the build, since we know which output 
page number is being created, but '<total>' cannot. 
The translation code was left in the output step 
(R4PBuilder>>updateOutputPages) to keep in all in one place.
I'm not sure what the best fix would be. Perhaps the #updateOutputPages can 
adjust the X value after the string replacement. 
I'll look into it, but no quick fix this time ;-) 

Bob

________________________________
 From: Ivo Roefs <ivo.roefs@xxxxxxxxx>
To: pdf4st@xxxxxxxxxxxxx 
Sent: Thursday, August 16, 2012 10:44:48 AM
Subject: [pdf4st] Re: unwanted page breaks
 

    "I also discovered a second minor problem. The alignment in the footer is 
'right', 
        but apparently there still some extra space on the right
      side of the page numbering."

Ivo

Other related posts:

  • » [pdf4st] Re: right aligned footer - bobn