PdfUtil Class

Printer API Documentation
Helper class for creating PDF files.
Inheritance Hierarchy

SystemObject
  pdf7.PdfWriterPdfUtil

Namespace:  pdf7.PdfWriter
Assembly:  pdf7.PdfWriter (in pdf7.PdfWriter.dll) Version: 4.0.0.0 (4.0.1000.111)
Syntax

public class PdfUtil

The PdfUtil type exposes the following members.

Constructors

  NameDescription
Public methodPdfUtil
Initializes a new instance of the PdfUtil class
Top
Properties

  NameDescription
Public propertyStatic memberDefaultPrinterName
Returns the default printer name for the assembly.
Top
Methods

  NameDescription
Public methodStatic memberAllowExecute
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
Public methodStatic memberDecryptSetting
Decrypt Unicode string.
Public methodStatic memberEncryptPdf
Encrypt an existing PDF
Public methodStatic memberEncryptSetting
Encrypt Unicode string.
Public methodStatic memberGetCompatiblePrinters
Get list of compatible printers
Public methodStatic memberGetPrinterAppFolder
Get the application folder of the specified printer.
Public methodStatic memberGetPrinterVersion
Get the version of the printer.
Public methodStatic memberGetPrinterVersionInfo
Get the version information of the printer.
Public methodStatic memberGetRegistrySetting
Read printer settings from the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\[PRINTER NAME]
Public methodStatic memberGetWindowsDefaultPrinterName
Get the name of the default printer in Windows
Public methodStatic memberHasDistiller
Check if a given distiller type is installed in the required version.
Public methodStatic memberIsGhostscriptFriendlyFilePath
Determines if a path can be used by Ghostscript. The path is scanned for Unicode characters.
Public methodStatic memberLinearize(String, String, String)
Linearize PDF for fast web view.
Public methodStatic memberLinearize(String, String, String, Int32)
Linearize PDF for fast web view.
Public methodStatic memberMerge(String, String, String, Int32)
Merge two or more PDF files.
Public methodStatic memberMerge(String, String, String, Int32, Boolean)
Merge two or more PDF files.
Public methodStatic memberPrintFile
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
Public methodStatic memberPrintPdf(String, PdfUtilPrinterSelection, String, String, Boolean, Int32, String, Int32, Boolean, Int32, Int32, Int32)
Send an existing PDF file to a printer
Public methodStatic memberPrintPdf(String, PdfUtilPrinterSelection, String, String, Boolean, Int32, String, Int32, Boolean, Int32, Int32, Int32, Int32, Int32)
Send an existing PDF file to a printer
Public methodStatic memberPrintPdf2
Send an existing PDF file to a printer
Public methodStatic memberReadIniString
Read a string from an ini file.
Public methodStatic memberSignPdf(String, String, String, String, String, String, String, String, Boolean, Single, Single, Single, Single, Int32)
Apply a digital signature to a PDF document.
Public methodStatic memberSignPdf(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.
Public methodStatic memberSignPdfByThumbprint(String, String, String, String, String, String, String, String, String, Boolean, Single, Single, Single, Single, Int32)
Apply a digital signature to a PDF document.
Public methodStatic memberSignPdfByThumbprint(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.
Public methodStatic memberSplit
Split a PDF file into one file per page.
Public methodStatic memberWaitForFile
Wait for a file to be created.
Public methodStatic memberWriteIniString
Write a string to an ini file.
Top
See Also

Reference