PdfPageBuilder
OfficeIMO.Pdf
Page-level configuration (size, margins, default styles) and content/footers.
Inheritance
- object
- PdfPageBuilder
Usage
Explore 60 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 58
- Method PdfPageBuilder.Background
- Method PdfPageBuilder.BackgroundBottomBand
- Method PdfPageBuilder.BackgroundEllipse
- Method PdfPageBuilder.BackgroundImage
- Method PdfPageBuilder.BackgroundLeftBand
- Method PdfPageBuilder.BackgroundRectangle
- Method PdfPageBuilder.BackgroundRightBand
- Method PdfPageBuilder.BackgroundRoundedRectangle
- Method PdfPageBuilder.BackgroundShape
- Method PdfPageBuilder.BackgroundShapes
- Method PdfPageBuilder.BackgroundTopBand
- Method PdfPageBuilder.Canvas
- Method PdfPageBuilder.ClearBackgroundShapes
- Method PdfPageBuilder.Content
- Method PdfPageBuilder.DefaultDrawingStyle
- Method PdfPageBuilder.DefaultHeadingStyle
- Method PdfPageBuilder.DefaultHorizontalRuleStyle
- Method PdfPageBuilder.DefaultImageStyle
- Method PdfPageBuilder.DefaultListStyle
- Method PdfPageBuilder.DefaultPanelStyle
- Method PdfPageBuilder.DefaultParagraphStyle
- Method PdfPageBuilder.DefaultRowStyle
- Method PdfPageBuilder.DefaultTableStyle
- Method PdfPageBuilder.DefaultTextStyle
- Method PdfPageBuilder.EvenPagesImageWatermark
- Method PdfPageBuilder.EvenPagesWatermark
- Method PdfPageBuilder.FirstPageImageWatermark
- Method PdfPageBuilder.FirstPageWatermark
- Method PdfPageBuilder.Footer
- Method PdfPageBuilder.Header
- Method PdfPageBuilder.ImageWatermark
- Method PdfPageBuilder.Landscape
- Method PdfPageBuilder.Margin
- Method PdfPageBuilder.MirrorMargins
- Method PdfPageBuilder.Orientation
- Method PdfPageBuilder.PageBorder
- Method PdfPageBuilder.PageNumberStart
- Method PdfPageBuilder.PageNumberStyle
- Method PdfPageBuilder.Portrait
- Method PdfPageBuilder.PrintProductionPageBoxes
- Method PdfPageBuilder.RegisterEmbeddedFontFallbacks
- Method PdfPageBuilder.Size
- Method PdfPageBuilder.StartOnPageParity
- Method PdfPageBuilder.SuppressEvenPagesImageWatermark
- Method PdfPageBuilder.SuppressEvenPagesTextWatermark
- Method PdfPageBuilder.SuppressEvenPagesWatermark
- Method PdfPageBuilder.SuppressFirstPageImageWatermark
- Method PdfPageBuilder.SuppressFirstPageTextWatermark
- Method PdfPageBuilder.SuppressFirstPageWatermark
- Method PdfPageBuilder.TextHyphenation
- Method PdfPageBuilder.TextHyphenationDictionary
- Method PdfPageBuilder.TextLineBreaks
- Method PdfPageBuilder.Theme
- Method PdfPageBuilder.Typography
- Method PdfPageBuilder.UseEmbeddedFontFallbacksFromSystem
- Method PdfPageBuilder.UseFontFamily
- Method PdfPageBuilder.UseTextFallbacks
- Method PdfPageBuilder.Watermark
Accepted by parameters 2
- Method PdfDocumentBuilder.Page
- Method PdfDocumentBuilder.Section
Methods
public PdfPageBuilder Background(OfficeColor? color) #Sets or clears the page background color.
Parameters
- color OfficeIMO.OfficeColor?
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundBottomBand(OfficeLength height, OfficeColor? fill = null, OfficeLength insetX = default, OfficeLength offsetY = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Adds a page-scoped bottom background band using the current page size.
Parameters
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetX OfficeIMO.OfficeLength = default
- offsetY OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundEllipse(OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeColor? fill = null, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Adds a page-scoped ellipse background shape.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundImage(PdfPageBackgroundImage? image) #Sets or clears the page-scoped background image.
Parameters
- image OfficeIMO.Pdf.PdfPageBackgroundImage?
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundImage(byte[] imageBytes, OfficeImageFit fit = Cover, double? opacity = null) #Sets a page-scoped background image.
Parameters
- imageBytes byte[]
- fit OfficeIMO.Drawing.OfficeImageFit = Cover
- opacity double? = null
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundLeftBand(OfficeLength width, OfficeColor? fill = null, OfficeLength insetY = default, OfficeLength offsetX = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Adds a page-scoped left background band using the current page size.
Parameters
- width OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetY OfficeIMO.OfficeLength = default
- offsetX OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundRectangle(OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeColor? fill = null, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Adds a page-scoped rectangle background shape.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundRightBand(OfficeLength width, OfficeColor? fill = null, OfficeLength insetY = default, OfficeLength offsetX = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Adds a page-scoped right background band using the current page size.
Parameters
- width OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetY OfficeIMO.OfficeLength = default
- offsetX OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundRoundedRectangle(OfficeLength x, OfficeLength y, OfficeLength width, OfficeLength height, OfficeLength cornerRadius, OfficeColor? fill = null, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Adds a page-scoped rounded rectangle background shape.
Parameters
- x OfficeIMO.OfficeLength
- y OfficeIMO.OfficeLength
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- cornerRadius OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundShape(PdfPageBackgroundShape shape) #Adds a page-scoped background shape rendered behind page content.
Parameters
- shape OfficeIMO.Pdf.PdfPageBackgroundShape
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundShapes(IEnumerable<PdfPageBackgroundShape>? shapes) #Replaces or clears page-scoped background shapes.
Parameters
- shapes System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfPageBackgroundShape>?
Returns
PdfPageBuilderpublic PdfPageBuilder BackgroundTopBand(OfficeLength height, OfficeColor? fill = null, OfficeLength insetX = default, OfficeLength offsetY = default, OfficeLength cornerRadius = default, OfficeColor? stroke = null, OfficeLength strokeWidth = default, double? fillOpacity = null, double? strokeOpacity = null, OfficeLinearGradient? fillGradient = null) #Adds a page-scoped top background band using the current page size.
Parameters
- height OfficeIMO.OfficeLength
- fill OfficeIMO.OfficeColor? = null
- insetX OfficeIMO.OfficeLength = default
- offsetY OfficeIMO.OfficeLength = default
- cornerRadius OfficeIMO.OfficeLength = default
- stroke OfficeIMO.OfficeColor? = null
- strokeWidth OfficeIMO.OfficeLength = default
- fillOpacity double? = null
- strokeOpacity double? = null
- fillGradient OfficeIMO.Drawing.OfficeLinearGradient? = null
Returns
PdfPageBuilderpublic PdfPageBuilder Canvas(Action<PdfPageCanvas> build) #Adds foreground page content at absolute top-left page coordinates.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfPageCanvas>
Returns
PdfPageBuilderpublic PdfPageBuilder ClearBackgroundShapes() #Clears page-scoped background shapes.
Returns
PdfPageBuilderpublic PdfPageBuilder Content(Action<PdfContentBuilder> build) #Builds the page content through the universal content receiver.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfContentBuilder>
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultDrawingStyle(PdfDrawingStyle style) #Configures the default placement style for page drawing objects.
Parameters
- style OfficeIMO.Pdf.PdfDrawingStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultHeadingStyle(int level, PdfHeadingStyle style) #Configures the default style for a built-in heading level on the page.
Parameters
- level int
- style OfficeIMO.Pdf.PdfHeadingStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultHorizontalRuleStyle(PdfHorizontalRuleStyle style) #Configures the default style for page horizontal rules.
Parameters
- style OfficeIMO.Pdf.PdfHorizontalRuleStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultImageStyle(PdfImageStyle style) #Configures the default style for page images.
Parameters
- style OfficeIMO.Pdf.PdfImageStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultListStyle(PdfListStyle style) #Configures the default style for page bullet and numbered lists.
Parameters
- style OfficeIMO.Pdf.PdfListStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultPanelStyle(PdfPanelStyle style) #Configures the default style for page panel paragraphs.
Parameters
- style OfficeIMO.Pdf.PdfPanelStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultParagraphStyle(PdfParagraphStyle style) #Configures the default paragraph style for page paragraphs that do not provide an explicit style.
Parameters
- style OfficeIMO.Pdf.PdfParagraphStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultRowStyle(PdfRowStyle style) #Configures the default row/column layout style for the page.
Parameters
- style OfficeIMO.Pdf.PdfRowStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultTableStyle(PdfTableStyle style) #Configures the default table style for page tables that do not provide an explicit style.
Parameters
- style OfficeIMO.Pdf.PdfTableStyle
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultTableStyle(string wordTableStyleName) #Configures the default table style for the page from a supported Word table style name.
Parameters
- wordTableStyleName string
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultTextStyle(Action<PdfTextStyleBuilder> style) #Configures default text style for the page.
Parameters
- style System.Action<OfficeIMO.Pdf.PdfTextStyleBuilder>
Returns
PdfPageBuilderpublic PdfPageBuilder DefaultTextStyle(PdfTextStyle style) #Configures default text style for the page from a reusable text style object.
Parameters
- style OfficeIMO.Pdf.PdfTextStyle
Returns
PdfPageBuilderpublic PdfPageBuilder EvenPagesImageWatermark(PdfImageWatermark? watermark) #Sets or clears the even-page image watermark rendered behind page content.
Parameters
- watermark OfficeIMO.Pdf.PdfImageWatermark?
Returns
PdfPageBuilderpublic PdfPageBuilder EvenPagesImageWatermark(byte[] imageBytes, OfficeLength width, OfficeLength height, double? opacity = null, double? rotationAngle = null) #Sets an even-page image watermark rendered behind page content.
Parameters
- imageBytes byte[]
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- opacity double? = null
- rotationAngle double? = null
Returns
PdfPageBuilderpublic PdfPageBuilder EvenPagesWatermark(PdfTextWatermark? watermark) #Sets or clears the even-page text watermark rendered behind page content.
Parameters
- watermark OfficeIMO.Pdf.PdfTextWatermark?
Returns
PdfPageBuilderpublic PdfPageBuilder EvenPagesWatermark(string text, OfficeLength? fontSize = null, OfficeColor? color = null, double? opacity = null, double? rotationAngle = null, PdfStandardFont? font = null, bool bold = true, bool italic = false) #Sets an even-page text watermark rendered behind page content.
Parameters
- text string
- fontSize OfficeIMO.OfficeLength? = null
- color OfficeIMO.OfficeColor? = null
- opacity double? = null
- rotationAngle double? = null
- font OfficeIMO.Pdf.PdfStandardFont? = null
- bold bool = true
- italic bool = false
Returns
PdfPageBuilderpublic PdfPageBuilder FirstPageImageWatermark(PdfImageWatermark? watermark) #Sets or clears the first-page image watermark rendered behind page content.
Parameters
- watermark OfficeIMO.Pdf.PdfImageWatermark?
Returns
PdfPageBuilderpublic PdfPageBuilder FirstPageImageWatermark(byte[] imageBytes, OfficeLength width, OfficeLength height, double? opacity = null, double? rotationAngle = null) #Sets a first-page image watermark rendered behind page content.
Parameters
- imageBytes byte[]
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- opacity double? = null
- rotationAngle double? = null
Returns
PdfPageBuilderpublic PdfPageBuilder FirstPageWatermark(PdfTextWatermark? watermark) #Sets or clears the first-page text watermark rendered behind page content.
Parameters
- watermark OfficeIMO.Pdf.PdfTextWatermark?
Returns
PdfPageBuilderpublic PdfPageBuilder FirstPageWatermark(string text, OfficeLength? fontSize = null, OfficeColor? color = null, double? opacity = null, double? rotationAngle = null, PdfStandardFont? font = null, bool bold = true, bool italic = false) #Sets a first-page text watermark rendered behind page content.
Parameters
- text string
- fontSize OfficeIMO.OfficeLength? = null
- color OfficeIMO.OfficeColor? = null
- opacity double? = null
- rotationAngle double? = null
- font OfficeIMO.Pdf.PdfStandardFont? = null
- bold bool = true
- italic bool = false
Returns
PdfPageBuilderpublic PdfPageBuilder Header(Action<PdfHeaderBuilder> build) #Defines the header layout and content.
Parameters
- build System.Action<OfficeIMO.Pdf.PdfHeaderBuilder>
Returns
PdfPageBuilderpublic PdfPageBuilder ImageWatermark(PdfImageWatermark? watermark) #Sets or clears the page-scoped image watermark rendered behind page content.
Parameters
- watermark OfficeIMO.Pdf.PdfImageWatermark?
Returns
PdfPageBuilderpublic PdfPageBuilder ImageWatermark(byte[] imageBytes, OfficeLength width, OfficeLength height, double? opacity = null, double? rotationAngle = null) #Sets a page-scoped image watermark rendered behind page content.
Parameters
- imageBytes byte[]
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- opacity double? = null
- rotationAngle double? = null
Returns
PdfPageBuilderpublic PdfPageBuilder Landscape() #Sets page orientation to landscape while preserving the current page size dimensions.
Returns
PdfPageBuilderpublic PdfPageBuilder Margin(OfficeLength all) #Sets uniform page margins (all sides in points).
Parameters
- all OfficeIMO.OfficeLength
Returns
PdfPageBuilderpublic PdfPageBuilder Margin(PdfPageMargins margins) #Sets page margins from a reusable margin value.
Parameters
- margins OfficeIMO.Pdf.PdfPageMargins
Returns
PdfPageBuilderpublic PdfPageBuilder Margin(OfficeLength left, OfficeLength top, OfficeLength right, OfficeLength bottom) #Sets page margins (left, top, right, bottom in points).
Parameters
- left OfficeIMO.OfficeLength
- top OfficeIMO.OfficeLength
- right OfficeIMO.OfficeLength
- bottom OfficeIMO.OfficeLength
Returns
PdfPageBuilderpublic PdfPageBuilder MirrorMargins(bool enabled = true) #Swaps left and right margins on even visible page numbers, including numbering restarts.
Parameters
- enabled bool = true
Returns
PdfPageBuilderpublic PdfPageBuilder Orientation(OfficePageOrientation orientation) #Sets page orientation while preserving the current page size dimensions.
Parameters
- orientation OfficeIMO.OfficePageOrientation
Returns
PdfPageBuilderpublic PdfPageBuilder PageBorder(PdfPageBorder? border) #Sets or clears the page-scoped page border.
Parameters
- border OfficeIMO.Pdf.PdfPageBorder?
Returns
PdfPageBuilderpublic PdfPageBuilder PageBorder(OfficeColor? color = null, OfficeLength? width = null, OfficeLength? inset = null, double? opacity = null, OfficeStrokeDashStyle dashStyle = Solid) #Sets a page-scoped page border.
Parameters
- color OfficeIMO.OfficeColor? = null
- width OfficeIMO.OfficeLength? = null
- inset OfficeIMO.OfficeLength? = null
- opacity double? = null
- dashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle = Solid
Returns
PdfPageBuilderpublic PdfPageBuilder PageNumberStart(int start) #Sets the first visible page number for this page or section flow.
Parameters
- start int
Returns
PdfPageBuilderpublic PdfPageBuilder PageNumberStyle(PdfPageNumberStyle style) #Sets the visible page-number style for this page or section flow.
Parameters
- style OfficeIMO.Pdf.PdfPageNumberStyle
Returns
PdfPageBuilderpublic PdfPageBuilder Portrait() #Sets page orientation to portrait while preserving the current page size dimensions.
Returns
PdfPageBuilderpublic PdfPageBuilder PrintProductionPageBoxes(PdfPrintProductionPageBoxes? boxes) #Sets or clears page-scoped TrimBox and BleedBox geometry.
Parameters
- boxes OfficeIMO.Pdf.PdfPrintProductionPageBoxes?
Returns
PdfPageBuilderpublic PdfPageBuilder RegisterEmbeddedFontFallbacks(PdfEmbeddedFontFallbackSet fallbackSet) #Registers a planned embedded-font fallback set for generated rich text runs on this composed page or section.
Parameters
- fallbackSet OfficeIMO.Pdf.PdfEmbeddedFontFallbackSet
Returns
PdfPageBuilderpublic PdfPageBuilder Size(PdfPageSize size) #Sets page size using a predefined PdfPageSize.
Parameters
- size OfficeIMO.Pdf.PdfPageSize
Returns
PdfPageBuilderpublic PdfPageBuilder Size(OfficeLength width, OfficeLength height) #Sets custom page size in points.
Parameters
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
Returns
PdfPageBuilderpublic PdfPageBuilder StartOnPageParity(PdfPageParity? parity, bool useContinuingPageNumber = false) #Sets or clears the parity required at the start of a later page group. Optionally uses the continuing page number before this group's numbering restart.
Parameters
- parity OfficeIMO.Pdf.PdfPageParity?
- useContinuingPageNumber bool = false
Returns
PdfPageBuilderpublic PdfPageBuilder SuppressEvenPagesImageWatermark() #Suppresses the inherited image watermark on even pages.
Returns
PdfPageBuilderpublic PdfPageBuilder SuppressEvenPagesTextWatermark() #Suppresses the inherited text watermark on even pages.
Returns
PdfPageBuilderpublic PdfPageBuilder SuppressEvenPagesWatermark() #Suppresses inherited text and image watermarks on even pages.
Returns
PdfPageBuilderpublic PdfPageBuilder SuppressFirstPageImageWatermark() #Suppresses the inherited image watermark on the first page.
Returns
PdfPageBuilderpublic PdfPageBuilder SuppressFirstPageTextWatermark() #Suppresses the inherited text watermark on the first page.
Returns
PdfPageBuilderpublic PdfPageBuilder SuppressFirstPageWatermark() #Suppresses inherited text and image watermarks on the first page.
Returns
PdfPageBuilderpublic PdfPageBuilder TextHyphenation(PdfTextHyphenationCallback? callback) #Sets or clears the page-scoped generated text hyphenation callback used for long unspaced tokens.
Parameters
- callback OfficeIMO.Pdf.PdfTextHyphenationCallback?
Returns
PdfPageBuilderpublic PdfPageBuilder TextHyphenationDictionary(PdfHyphenationLexicon? dictionary) #Uses or clears an immutable first-party word hyphenation dictionary.
Parameters
- dictionary OfficeIMO.Pdf.PdfHyphenationLexicon?
Returns
PdfPageBuilderpublic PdfPageBuilder TextLineBreaks(Func<string, IReadOnlyList<int>>? callback) #Sets or clears the page-scoped generated text line-break callback used for long unspaced tokens.
Parameters
- callback System.Func<string, System.Collections.Generic.IReadOnlyList<int>>?
Returns
PdfPageBuilderpublic PdfPageBuilder Theme(PdfTheme theme) #Applies reusable page-scoped default styles.
Parameters
- theme OfficeIMO.Pdf.PdfTheme
Returns
PdfPageBuilderpublic PdfPageBuilder Typography(OfficeRenderingProfile profile, OfficeRenderingProfileApplyMode mode = Replace) #Applies a shared, page-scoped font, fallback, language, and shaping profile.
Parameters
- profile OfficeIMO.Drawing.OfficeRenderingProfile
- mode OfficeIMO.Drawing.OfficeRenderingProfileApplyMode = Replace
Returns
PdfPageBuilderpublic PdfPageBuilder UseEmbeddedFontFallbacksFromSystem(string? familyNames, int maxFallbackFonts = 2) #Registers generated-text fallback fonts from installed system font families without requiring callers to choose PDF font slots.
Parameters
- familyNames string?
- maxFallbackFonts int = 2
Returns
PdfPageBuilderpublic PdfPageBuilder UseFontFamily(PdfEmbeddedFontFamily fontFamily) #Uses a caller-supplied TrueType font family for this composed page or section.
Parameters
- fontFamily OfficeIMO.Pdf.PdfEmbeddedFontFamily
Returns
PdfPageBuilderpublic PdfPageBuilder UseFontFamily(string familyName, byte[] regular, byte[]? bold = null, byte[]? italic = null, byte[]? boldItalic = null) #Uses caller-supplied TrueType font files for this composed page or section.
Parameters
- familyName string
- regular byte[]
- bold byte[]? = null
- italic byte[]? = null
- boldItalic byte[]? = null
Returns
PdfPageBuilderpublic PdfPageBuilder UseFontFamily(string familyName, string regularPath, string? boldPath = null, string? italicPath = null, string? boldItalicPath = null) #Uses caller-supplied TrueType font files for this composed page or section.
Parameters
- familyName string
- regularPath string
- boldPath string? = null
- italicPath string? = null
- boldItalicPath string? = null
Returns
PdfPageBuilderpublic PdfPageBuilder UseTextFallbacks(PdfTextFallbackFeatures features = Default) #Applies OfficeIMO's built-in generated-text fallback groups for this composed page or section.
Parameters
- features OfficeIMO.Pdf.PdfTextFallbackFeatures = Default
Returns
PdfPageBuilderpublic PdfPageBuilder Watermark(PdfTextWatermark? watermark) #Sets or clears the page-scoped text watermark rendered behind page content.
Parameters
- watermark OfficeIMO.Pdf.PdfTextWatermark?
Returns
PdfPageBuilderpublic PdfPageBuilder Watermark(string text, OfficeLength? fontSize = null, OfficeColor? color = null, double? opacity = null, double? rotationAngle = null, PdfStandardFont? font = null, bool bold = true, bool italic = false) #Sets a page-scoped text watermark rendered behind page content.
Parameters
- text string
- fontSize OfficeIMO.OfficeLength? = null
- color OfficeIMO.OfficeColor? = null
- opacity double? = null
- rotationAngle double? = null
- font OfficeIMO.Pdf.PdfStandardFont? = null
- bold bool = true
- italic bool = false
Returns
PdfPageBuilderInherited Methods
Properties
public PdfPageSetup PageSetup { get; } #Page size, margins, orientation and running headers and footers of this page group's options snapshot.