You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/background-images.adoc
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,13 @@
4
4
You can add a background image to all content pages in your document by setting the `page-background-image` document attribute.
5
5
You can also set the background images for recto and verso pages separately using the `page-background-image-recto` and `page-background-image-verso` document attributes.
6
6
You can set (or override) the background image applied to the title page using the `title-page-background-image` document attribute.
7
+
If you want to overlay a background image on top of the page content (i.e., a watermark), you can do so using the `page-foreground-image`.
7
8
8
-
This page explains how these attributes are used.
9
+
This page explains how these document attributes are used.
10
+
It also covers how attributes on the image macro can be used to control the size, fit, and position of the image.
9
11
All the document attributes covered on this page must be defined in the document header.
10
12
11
-
As an alternative to using document attributes, you can define these background images xref:theme:images.adoc[in your theme].
13
+
As an alternative to using document attributes, you can define these background images and the foreground image xref:theme:images.adoc[in your theme].
12
14
13
15
[#page-background-image]
14
16
== page-background-image attribute
@@ -17,6 +19,9 @@ Background images can be applied to all content pages using the `page-background
17
19
A content page is defined as every page in the document except for cover and imported pages.
18
20
The list of content pages includes the title page as well as non-facing pages in a prepress document.
19
21
22
+
NOTE: As a counterpart, a foreground image can be added to all pages using the `page-foreground-image`.
23
+
Unlike the background image, the foreground image cannot be added per side or page layout.
24
+
20
25
The `page-background-image` attribute accepts an inline image macro.
21
26
The target of the image macro can be xref:image-paths-and-formats.adoc#imagesdir[an absolute path or a path relative to imagesdir].
0 commit comments