click the 'Documents' header to see previous entries
https://rainbowstampsandcoins.blogspot.com/search/label/documents
6.3 Page header en footer
Sometime we want to add some extra information, outside the
border frame of our album.
Most of the time this is a page number, the title of the album or the chapter, …
It is important to know that once an album is generated, and
printed, the page numbers will not change anymore.
If you add a page to your program code, you will have to print all pages after
that specific page again, in order to keep the album correctly numbered.
Adding a blank page to your physical album, not programmed, will make your album
having numbered and not-numbered pages.
Open Test Design 14 a or b and save it as Test Design 15.
All options to place text outside the border frame, are valid for the whole
album, and therefore this information has to be placed in the Album-settings at
the beginning of the programming process.
6.3.1 Gerneral possibilities
Older versions of AlbumEasy, had no specific codes for header or footer texts, and had to be specified whether the text had to be on top or at the bottom of the page. From version 4.2 on, all options can be used both on top or at the bottom of the page. We only need to indicate where we want to place it.
ALBUM_PAGES_HEADER ….
For the header-option
ALBUM_PAGES_FOOTER … For the footer-option
There are for each option, 4 variations :
…PAD
Distance
above frame on top or distance below frame at the bottom
…NUMBER
Page number as cardinal number : page 1Page number as ordinal number : page 1 of 20
…DATE
As YMD : Year, Month, Date (American style)As DMY : Day, Month, Year (European style)
As MDY : Month, Day, Year (very confusing … 05 06 20, May 6 or June 5 ?)
…-no specification-
For
texts
4 variations for 2 locations, means 8 different possibilities.
6.3.2 8 combinations :
ALBUM_PAGES_HEADER
(font and size / position / “text”)
ALBUM_PAGES_HEADER_PAD
(distance above top frame line in
mm)
ALBUM_PAGES_HEADER_NUMBER
(font and size/ position [Start] [Text
before] [Text behind])
ALBUM_PAGES_HEADER_DATE
(font and size / position / Format
[Separator] [Text before] [Text behind])
ALBUM_PAGES_FOOTER
(font and size / position
/ “text”)
ALBUM_PAGES_FOOTER_PAD
(distance below bottom frame line
in mm)
ALBUM_PAGES_FOOTER_NUMBER
(font and size/ position [Start] [Text
before] [Text behind])
ALBUM_PAGES_FOOTER_DATE
(font and size / position
/ Format [Separator] [Text before] [Text
behind])
Some examples will make it clear:
Here, the comment lines are placed before the actual command.
Copy-paste all codes below and put them under the ALBUM_DEFINE_FONT -lineand above the PAGE_START command
# header, left on odd pages, right on even pages, followed by ‘header text’
ALBUM_PAGES_HEADER (TN 10 C "header text")
# page numbers left on odd pages, right on even
pages
# start numbering with 1, followed by ‘PAGE’ and no
text behind it
# this command is executed 3 mm above the top frame
border
ALBUM_PAGES_HEADER_PAD (3.0)
# footer, left on odd pages, right on even pages,
followed by ‘footer text’
ALBUM_PAGES_FOOTER (TN 10 LR "footer text")
# a page number in the footer, and the total number
of pages
# the code $PAGES$ replaces the total number of
pages, the moment the document is generated
ALBUM_PAGES_FOOTER_NUMBER (HN 12 C 1 "Page " " of $PAGES$")
# a date (format :YMD) in the footer, right on odd
pages, left on even pages
ALBUM_PAGES_FOOTER_DATE (HN 10 RL YMD "." "made on: ")
# this command is executed 5mm underneath the
bottom frame line
ALBUM_PAGES_FOOTER_PAD (5.0)
Generate the PDF
REMARK : each of the commands above can only occupy one place (left, centre, or middle) in other words, you can’t put two commands on the same spot.
POSITIONS:
C : centered
L : left
R : right
RL : right on odd pages, left on even pages
LR : left on odd pages, right on even pages
It is possible to combine L or C and R
LR and LR can be combined as they will not generate conficts
L and LR or R and RL on the same line is not possible,
also multiple L or R or C’s on the same line, will not work.
Some headers :
Some footers :
to be continued ...
previous part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-35.html
next part : https://rainbowstampsandcoins.blogspot.com/2021/05/making-your-own-album-37.html
No comments:
Post a Comment