Click or drag to resize
Pdftools logo

AppearanceCreateFromJson Method

Create an appearance with the content loaded from a JSON file

The format of the JSON file is described in the user manual.

Namespace: PdfTools.Sign
Assembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
Syntax
C#
public static Appearance CreateFromJson(
	Stream stream
)

Parameters

stream  Stream
The JSON file defining the content

Return Value

Appearance
Exceptions
ExceptionCondition
CorruptExceptionThe file is not a valid JSON file.
NotFoundExceptionAn image or font referenced in the JSON was not found.
GenericExceptionThe JSON file is not a valid appearance content specification.
ProcessingExceptionCould not process content of the JSON.
ArgumentNullExceptionif stream is .
See Also