Table of Contents

Class PdfWriter

Namespace
JJMasterData.Pdf
Assembly
JJMasterData.Pdf.dll
public class PdfWriter : DataExportationWriterBase, IBackgroundTaskWorker, IPdfWriter, IExportationWriter
Inheritance
PdfWriter
Implements
Inherited Members

Constructors

PdfWriter(IEncryptionService, ExpressionsService, IStringLocalizer<MasterDataResources>, IOptionsSnapshot<MasterDataCoreOptions>, DataItemService, ILogger<PdfWriter>, IEntityRepository, FieldFormattingService)

public PdfWriter(IEncryptionService encryptionService, ExpressionsService expressionsService, IStringLocalizer<MasterDataResources> stringLocalizer, IOptionsSnapshot<MasterDataCoreOptions> options, DataItemService dataItemService, ILogger<PdfWriter> logger, IEntityRepository entityRepository, FieldFormattingService fieldFormattingService)

Parameters

encryptionService IEncryptionService
expressionsService ExpressionsService
stringLocalizer IStringLocalizer<MasterDataResources>
options IOptionsSnapshot<MasterDataCoreOptions>
dataItemService DataItemService
logger ILogger<PdfWriter>
entityRepository IEntityRepository
fieldFormattingService FieldFormattingService

Properties

IsLandscape

public bool IsLandscape { get; set; }

Property Value

bool

ShowBorder

public bool ShowBorder { get; set; }

Property Value

bool

ShowRowStriped

public bool ShowRowStriped { get; set; }

Property Value

bool

Methods

GenerateDocument(Stream, CancellationToken)

public override Task GenerateDocument(Stream ms, CancellationToken token)

Parameters

ms Stream
token CancellationToken

Returns

Task

Events

OnRenderCell

public event EventHandler<GridCellEventArgs> OnRenderCell

Event Type

EventHandler<GridCellEventArgs>

OnRenderCellAsync

public event AsyncEventHandler<GridCellEventArgs> OnRenderCellAsync

Event Type

AsyncEventHandler<GridCellEventArgs>