Helper class for creating PDF files.
Inheritance Hierarchy
pdf7.PdfWriterPdfUtil
Namespace: pdf7.PdfWriter
Assembly: pdf7.PdfWriter (in pdf7.PdfWriter.dll) Version: 4.0.0.0 (4.0.1000.111)
Syntax
The PdfUtil type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PdfUtil | Initializes a new instance of the PdfUtil class |
Properties
Name | Description | |
---|---|---|
DefaultPrinterName |
Returns the default printer name for the assembly.
|
Methods
Name | Description | |
---|---|---|
AllowExecute |
Determine if it is allowed to run programs after PDF creation or if an error occurs.
If this method returns false, the printer will ignore settings such as AfterPrintProgram, RunOnSuccess, and RunOnError
| |
DecryptSetting |
Decrypt Unicode string.
| |
EncryptPdf |
Encrypt an existing PDF
| |
EncryptSetting |
Encrypt Unicode string.
| |
GetCompatiblePrinters |
Get list of compatible printers
| |
GetPrinterAppFolder |
Get the application folder of the specified printer.
| |
GetPrinterVersion |
Get the version of the printer.
| |
GetPrinterVersionInfo |
Get the version information of the printer.
| |
GetRegistrySetting |
Read printer settings from the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\[PRINTER NAME]
| |
GetWindowsDefaultPrinterName |
Get the name of the default printer in Windows
| |
HasDistiller |
Check if a given distiller type is installed in the required version.
| |
IsGhostscriptFriendlyFilePath |
Determines if a path can be used by Ghostscript. The path is scanned for Unicode characters.
| |
Linearize(String, String, String) |
Linearize PDF for fast web view.
| |
Linearize(String, String, String, Int32) |
Linearize PDF for fast web view.
| |
Merge(String, String, String, Int32) |
Merge two or more PDF files.
| |
Merge(String, String, String, Int32, Boolean) |
Merge two or more PDF files.
| |
PrintFile |
Send a file to the printer set in the PrinterName property.
This method will use the PrintTo verb to send a file to the printer and create a PDF document.
You often want to create a runonce.ini before calling this method.
It is recommended that you set the following settings:
ShowSettings=never ShowSaveAs=never ShowProgress=yes ShowProgressFinished=no ShowPDF=no ConfirmOverwrite=no | |
PrintPdf(String, PdfUtilPrinterSelection, String, String, Boolean, Int32, String, Int32, Boolean, Int32, Int32, Int32) |
Send an existing PDF file to a printer
| |
PrintPdf(String, PdfUtilPrinterSelection, String, String, Boolean, Int32, String, Int32, Boolean, Int32, Int32, Int32, Int32, Int32) |
Send an existing PDF file to a printer
| |
PrintPdf2 |
Send an existing PDF file to a printer
| |
ReadIniString |
Read a string from an ini file.
| |
SignPdf(String, String, String, String, String, String, String, String, Boolean, Single, Single, Single, Single, Int32) |
Apply a digital signature to a PDF document.
| |
SignPdf(String, String, String, String, String, String, String, String, Boolean, Single, Single, Single, Single, Int32, String, String, PdfUtilEncryptionType, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) |
Apply a digital signature to a PDF document.
| |
SignPdfByThumbprint(String, String, String, String, String, String, String, String, String, Boolean, Single, Single, Single, Single, Int32) |
Apply a digital signature to a PDF document.
| |
SignPdfByThumbprint(String, String, String, String, String, String, String, String, String, Boolean, Single, Single, Single, Single, Int32, String, String, PdfUtilEncryptionType, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean) |
Apply a digital signature to a PDF document.
| |
Split |
Split a PDF file into one file per page.
| |
WaitForFile |
Wait for a file to be created.
| |
WriteIniString |
Write a string to an ini file.
|
See Also