Click or drag to resize
Pdftools logo

AppearanceCreateFromXml Method

Create an appearance with the content loaded from an XML file

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

Namespace: PdfTools.Sign
Assembly: PdfTools (in PdfTools.dll) Version: 1.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
Syntax
C#
public static Appearance CreateFromXml(
	Stream stream
)

Parameters

stream  Stream
The XML file defining the content

Return Value

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