PCBI_Connection Class

Definition

Namespace: PCBI_PDFImport
Assembly: PCBI_PDF_Import (in PCBI_PDF_Import.dll) Version: 17.0.0.0 (17.0.0.0)
C#
public class PCBI_Connection : IPluginRibbonCommand, 
	IPlugin, IPluginMessageReceiver, IPluginDataImporter, IPluginPDFPrinterProvider
Inheritance
Object    PCBI_Connection
Implements
IPlugin, IPluginDataImporter, IPluginMessageReceiver, IPluginPDFPrinterProvider, IPluginRibbonCommand

Constructors

PCBI_ConnectionInitializes a new instance of the PCBI_Connection class

Properties

Assembly 
Parent 
Path 
PluginDestination 
PluginEnabled 
Printers All available printers for PDF export, from this Plugin
Type 

Methods

AddDrawingToPDFPage Add a drawing with the given settings to the given PDF page. Use matrix for placement and scaling of the drawing.
CheckImportCompatibility Checks the compatibility of the importer with the given file extension and file content excerpt
GetImporterFormatType Returns the format type of the importer
GetPDFOutput Return the printer output for a given Setting. This Printeroutput can be used to save the PDF.
GetPDFStream Return a MemoryStream with the PDF content of the current step. Can be directly written to a file.
ImportData Imports the data from the given file
InitEvents 
InitPrinters Initialize the printers for PDF export
IsActionAllowed 
ReceiveMessage 
SavePDF(IPCBIWindow, PDFDrawSettings, IFileData) Save the PDF to a file. The file will be saved to the given IFileData.
SavePDF(IPCBIWindow, PDFDrawSettings, String) Save the PDF to a file. The file will be saved to the given path.

Explicit Interface Implementations

IPluginRibbonCommandOnCommandExecute Will be called with each command to execute.
IPluginRibbonCommandRegisterCommand Register your own commands here like this: int MyCmdID = Parent.UIAction.RegisterID(new PCBI.Plugin.Interfaces.IRegisterItem() { Text = PCB_Investigator.Localization.PCBILocalization.TranslateToCurrentLanguage("CommandName"), MetroStyleIcon = icon, ToolTip = "...", RegisterType = RegisterItemType.BUTTON, GUID = "ID_MY_COMMAND", Category = "PlugIn", EnableOn = Availability.Always });

See Also