However the line generated does not occupy any space to set up the bank, in addition to page number \thepage is at the end of the line, also not reaching the margin.
It happens that aa line \renewcommand{\footrulewidth}{1.5pt} is generated a
line ending before finishing the space bounded by the total margin.
To adapt to that need, it is necessary that she go to the bank and that the page number is on the right corner at the end of the line.
I need just the header and footer commands to create line, using all the space to the bank.
Currently he is finishing a 4 cm before the end of the margin.