AddFooter

AddFooter(FormattedText, float)

Adds footer to the pages of the document.

public void AddFooter(FormattedText formattedText, float bottomMargin)
Parameter Type Description
formattedText FormattedText FormattedText object which contains text of the footer and text properties.
bottomMargin Single Margin at the top of page.

Examples

PdfFileStamp stamp = new PdfFileStamp("input.pdf", "output.pdf");
stamp.AddFooter(new FormattedText("Foot of the page"), 10);

See Also


AddFooter(FormattedText, float, float, float)

Adds footer to the pages of the document.

public void AddFooter(FormattedText formattedText, float bottomMargin, float leftMargin, 
    float rightMargin)
Parameter Type Description
formattedText FormattedText FormattedText object which contains footer text and text properties.
bottomMargin Single Margin at the bottom of the page.
leftMargin Single Margin at the left side of the page.
rightMargin Single Margin at the right side of the page.

Examples

PdfFileStamp stamp = new PdfFileStamp("input.pdf", "output.pdf");
stamp.AddFooter(new FormattedText("Foot of the page"), 10, 50, 50);

See Also


AddFooter(string, float)

Adds image as footer to the pages of the document.

public void AddFooter(string imageFile, float bottomMargin)
Parameter Type Description
imageFile String Image file name and path.
bottomMargin Single Margin at the bottom of the page.

Examples

PdfFileStamp fileStamp = new PdfFileStamp("input.pdf", output.pdf");
Stream input = new FileStream(TestSettings.GetInputFile("test.jpg"), FileMode.Open, FileAccess.Read);
fileStamp.AddFooter("image.jpg", 50);
fileStamp.Close();

See Also


AddFooter(string, float, float, float)

Adds image as footer of the pages.

public void AddFooter(string imageFile, float bottomMargin, float leftMargin, float rightMargin)
Parameter Type Description
imageFile String Iamge file name and path.
bottomMargin Single Margin at the bottom of the page.
leftMargin Single Margin at the left side of the page.
rightMargin Single Margin at the right side of the page.

Examples

PdfFileStamp fileStamp = new PdfFileStamp("input.pdf", output.pdf");
Stream input = new FileStream(TestSettings.GetInputFile("test.jpg"), FileMode.Open, FileAccess.Read);
fileStamp.AddFooter("image.jpg", 50, 100, 100);
fileStamp.Close();

See Also


AddFooter(Stream, float)

Adds image as footer of the page.

public void AddFooter(Stream imageStream, float bottomMargin)
Parameter Type Description
imageStream Stream Stream contains image data.
bottomMargin Single Margin at the bottom of the page.

Examples

PdfFileStamp fileStamp = new PdfFileStamp("input.pdf", output.pdf");
Stream input = new FileStream(TestSettings.GetInputFile("test.jpg"), FileMode.Open, FileAccess.Read);
fileStamp.AddFooter(new FileStream("image.jpg", FileMode.Open, FileAccess.Read), 50);
fileStamp.Close();

See Also


AddFooter(Stream, float, float, float)

Adds image as footer of the page.

public void AddFooter(Stream imageStream, float bottomMargin, float leftMargin, float rightMargin)
Parameter Type Description
imageStream Stream Stream contains image data.
bottomMargin Single Margin at the bottom of the page.
leftMargin Single Margin at the left side of the page.
rightMargin Single Margin at the right side of the page.

Examples

PdfFileStamp fileStamp = new PdfFileStamp("input.pdf", output.pdf");
Stream input = new FileStream(TestSettings.GetInputFile("test.jpg"), FileMode.Open, FileAccess.Read);
fileStamp.AddFooter(new FileStream("image.jpg", FileMode.Open, FileAccess.Read), 50, 50, 50);
fileStamp.Close();

See Also