Table of Contents

Method SetPdfFilePath

Namespace
DotNetBrowser.Print.Settings
Assembly
DotNetBrowser.dll

SetPdfFilePath<TPrintSettings>(IPdfFilePath<TPrintSettings>, string)

Sets the full PDF file path.

public static TPrintSettings SetPdfFilePath<TPrintSettings>(this IPdfFilePath<TPrintSettings> obj, string pdfFilePath) where TPrintSettings : class, IPrintSettings

Parameters

obj IPdfFilePath<TPrintSettings>

The IPdfFilePath<TPrintSettings> implementation.

pdfFilePath string

The full PDF file path. Cannot be null, empty, or contain only white space.

Returns

TPrintSettings

The current print settings instance.

Type Parameters

TPrintSettings

The specific print settings type.

Exceptions

ArgumentException

The specified file path is null, empty, or contain only white space.

ArgumentException

The parent directory for the PDF file does not exist and cannot be created.