Click or drag to resize

IOperationServiceRegisterBeforeFormatDocumentHandler Method

Allows modifying the document before the formatting. Returning 'null' from the callback will result in no changes being applied to the document markup.

Namespace:  Resto.Front.Api
Assembly:  Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
IDisposable RegisterBeforeFormatDocumentHandler(
	Func<(Guid printingDeviceId, Document documentMarkup), Document> callback
)

Parameters

callback
Type: SystemFuncValueTupleGuid, Document, Document
Callback to return modified document.

Return Value

Type: IDisposable
See Also