Represents a printed document in the form of a PDF document.
public class PrintDocument : EncodedFile
PrintDocument
Initializes a new instance of the PrintDocument class.
public PrintDocument(string base64EncodedDocument)
Parameters
base64EncodedDocument
string
The printed document as a Base64-encoded string.
If base64EncodedDocument
is null.
The length of base64EncodedDocument
, ignoring white-space characters, is not zero or a multiple of 4.
-or-
The format of base64EncodedDocument
is invalid. base64EncodedDocument
contains a non-base-64 character, more than two padding characters, or a non-white space-character among the padding characters.
Saves this PrintDocument as a PDF formatted file, overwriting the file if it already exists.
public override void SaveAsFile(string fileName)
Parameters
fileName
string
The full path and file name to save the printed document to.
If fileName
is null or whitespace.
-or-
fileName
refers to a non-file device, such as "con:", "com1:", "lpt1:", etc. in an NTFS environment.
fileName
refers to a non-file device, such as "con:", "com1:", "lpt1:", etc. in a non-NTFS environment.
The specified path is invalid, such as being on an unmapped drive.
The specified path, file name, or both exceed the system-defined maximum length.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4