Class which allows to place any text or page numbers at the top and bottom of PDF page

Namespace:  SautinSoft
Assembly:  SautinSoft.PdfVision (in SautinSoft.PdfVision.dll) Version: 5.1.2.13

Syntax

      
 C#  Visual Basic 
public class CPageNumbers
Public Class CPageNumbers

Members

         
 All Members  Constructors   Properties  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
PdfVision..::.CPageNumbers()()()
Allows to place custom page numbers or any text for every PDF page
Aligment
Allows to set align for page numbers text
FontColor
Set color for page numbers text
FontFace
Set font for page numbers text
FontSize
Set font size for page numbers text
MarginFromStart
PageNumbersInBottom
Allows to place custom page numbers or any text at the bottom of each PDF page
PageNumbersInTop
Allows to place custom page numbers or any text at the top of each PDF page

Remarks

Also you may specify custom font name, size and color for page numbers and text.



This text or page numbers will placed on each page of PDF document.

Examples

CopyC#
SautinSoft.PdfVision v = new SautinSoft.PdfVision();
v.PageNumbers.FontSize = 12;
v.PageNumbers.FontColor.SetRGB(0, 0, 0);
//Place text at the top of each page
v.PageNumbers.PageNumbersInTop = "Web page snapshots at " + DateTime.Now.ToString();
//Place page numbers at the bottom of each page
v.PageNumbers.PageNumbersInBottom = "Page {page} of {numpages}";
CopyVB.NET
Dim v As New SautinSoft.PdfVision()
v.PageNumbers.FontSize = 12
v.PageNumbers.FontColor.SetRGB(0, 0, 0)
'Place text at the top of each page
v.PageNumbers.PageNumbersInTop = "Web page snapshots at " & DateTime.Now.ToString()
'Place page numbers at the bottom of each page
v.PageNumbers.PageNumbersInBottom = "Page {page} of {numpages}"

Inheritance Hierarchy

System..::.Object
  SautinSoft..::.PdfVision..::.CPageNumbers

See Also