C# Class PdfRpt.Core.Helper.DiagonalWatermarkManager

A class to encapsulate the diagonal watermark related methods.
Mostrar archivo Open project: VahidN/PdfReport Class Usage Examples

Public Methods

Method Description
ApplyWatermark ( Document document ) : void

Apply Watermark to the added templates

InitWatermarkTemplate ( PdfWriter writer, Document document ) : void

Create an empty template

ReserveWatermarkSpace ( PdfWriter writer ) : void

Add an empty template to each page

Private Methods

Method Description
getHypotenuseAngleInDegreesFrom ( double opposite, double adjacent ) : double

Method Details

ApplyWatermark() public method

Apply Watermark to the added templates
public ApplyWatermark ( Document document ) : void
document iTextSharp.text.Document PDF Document
return void

InitWatermarkTemplate() public method

Create an empty template
public InitWatermarkTemplate ( PdfWriter writer, Document document ) : void
writer iTextSharp.text.pdf.PdfWriter PdfWriter
document iTextSharp.text.Document PDF Document
return void

ReserveWatermarkSpace() public method

Add an empty template to each page
public ReserveWatermarkSpace ( PdfWriter writer ) : void
writer iTextSharp.text.pdf.PdfWriter PdfWriter
return void