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
IEncryptionServiceexpressionsService
ExpressionsServicestringLocalizer
IStringLocalizer<MasterDataResources>options
IOptionsSnapshot<MasterDataCoreOptions>dataItemService
DataItemServicelogger
ILogger<PdfWriter>entityRepository
IEntityRepositoryfieldFormattingService
FieldFormattingService
Properties
IsLandscape
public bool IsLandscape { get; set; }
Property Value
ShowBorder
public bool ShowBorder { get; set; }
Property Value
ShowRowStriped
public bool ShowRowStriped { get; set; }
Property Value
Methods
GenerateDocument(Stream, CancellationToken)
public override Task GenerateDocument(Stream ms, CancellationToken token)
Parameters
ms
Streamtoken
CancellationToken
Returns
Events
OnRenderCell
public event EventHandler<GridCellEventArgs> OnRenderCell
Event Type
OnRenderCellAsync
public event AsyncEventHandler<GridCellEventArgs> OnRenderCellAsync