Prints this IWebView instance to a PDF file, asynchronously. You should generally use this method in response to a PrintRequest event.
Assembly: Awesomium.Core (in Awesomium.Core.dll) Version: 22.214.171.124
int PrintToFile( string outputDirectory, PrintConfig config )
Function PrintToFile ( outputDirectory As String, config As PrintConfig ) As Integer
int PrintToFile( String^ outputDirectory, PrintConfig config )
- Type: SystemString
A writeable directory to write the file(s) to.
- Type: Awesomium.CorePrintConfig
The configuration settings to use.
Return ValueType: Int32
Returns a unique request identifier that you can use later to identify this specific request (see PrintFailed and PrintComplete). May return 0 if this method fails prematurely.
|InvalidOperationException||The member is called on an invalid view. (See: IsLive)|
|DirectoryNotFoundException||The specified output directory outputDirectory, does not exist.|
|ArgumentException||outputDirectory is a zero-length string, contains only white space, or contains one or more of the invalid characters defined in GetInvalidPathChars. -OR- The system could not retrieve the absolute path.|
|SecurityException||The caller does not have the required permissions.|
|ArgumentNullException||outputDirectory is null (Nothing in Visual Basic).|
|NotSupportedException||outputDirectory contains a colon (":") that is not part of a volume identifier (for example, "c:\").|
|PathTooLongException||The acquired full path to the specified outputDirectory, exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.|