PenForms

Anoto Qualified Solutions

Penforms provide solutions supporting Anoto digital pen and paper. http://www.anoto.com/about-ano...

Our Partners

Penforms provide solutions supporting Anoto digital pen and paper

The PPOD Printing Interface can be used in two ways; either as a console application, or as a .NET API.

Using Penforms PPOD Printing Interface from .NET     Download pdf Document  

To use the Penforms PPOD Printing interface from a .NET solution, add a reference to Printing.dll, and include the namespace

Penforms.PaperOnDemand.Printing’.

To print the file “c:\MyPADFile.pad” to the printer “OKI C5900 (PS)”, the following code can be used:

PrinterSettings Settings = new PrinterSettings(); 

Settings.Server = new PrinterSettings.ServerInformation(); 

Settings.Server.Server = "ppod.penforms-it.com";

Settings.Server.Email = " This e-mail address is being protected from spambots. You need JavaScript enabled to view it ";

Settings.Server.Password = "MyPassword";

Settings.PrinterName = "OKI C5900(PS)";

 

PrintProcessor Processor = new PrintProcessor("c:\\MyPADFile.pad", Settings); 

Processor.Print();

All properties are documented, and will be shown using Microsoft Visual Studio Intellisense.

 

Start up parameters for Penforms PPOD Printing Interface

You can choose how Penforms PPOD Printing Interface operates by specifying parameters at the time of start-up.

Parameters can be specified when starting the utility by one of the following methods:

  • Starting by specifying file name
  • Starting from application by programming
  • Starting using a command prompt a batch file

Parameter details:

PrintingInterface.exe [“PADFilePath”] [/Silent] [/OutputPageAddresses] [/PrinterName “PrinterName”] [/OutputFile “OutputFile”] [/PatternType <PatternTypes>] [/DotSize <DotSize>] [/ColorSeperation <ColorSeperations>] [/BarcodeSetting <BarcodeSettings>] [/PaperTray <PaperTrays>] [/Copies <Copies>] [/FromPage <FromPage>] [/ToPage <ToPage>] [DuplexMethod <DuplexMethods>] [/Cropmarks] [/PaperSize <PaperSizes>] [/PrefilledData “PrefilledData”] [/ServerProtocol “ServerProtocol”] [/ServerName “ServerName”] [/Email “Email”] [/Password “Password”] [/PrinterCertification “PrinterCertification”] [/Batch <Batch>]

Note:

PrintingInterface.exe is the executable file path and not a parameter.

If /Silent is not specified, the GUI will be displayed, with the parameters as the default settings.

Parameters enclosed within [ ] may be omitted.

String parameters with spaces must be put between “ and “.

A parameter can be started with either / or -.

Except where otherwise specified, the order of the parameters is arbitrary.

Parameter names and values are case sensitive.

Parameter

Description

“PADFilePath”

Path of the source PAD file.

When no parameter is specified, the dialog to ask for a PAD file appears.

This parameter must be the first parameter.

/Silent

Silent mode. No GUI is displayed.

/OutputPageAddresses

If this flag is set, the used Page Addresses will be written to the console (only applicable if Silent is set).

/PrinterName “PrinterName”

Set the name of the printer.

The utility will define the method of printing according to the name of the printer. If the name of the printer contains “(ps)” the Oki PS Print utility will be used for printing.
For all other printers, GhostView will be used for printing.

If parameter is omitted, “/OutputFile” should be set.

/OutputFile “OutputFile”

Set the location of the output file.
If parameter is omitted, “/PrinterName” should be set.

/PatternType <PatternTypes>

Specify the type of pattern to be printed on the form.

The following values can be used for <PatternTypes>.

NoPattern

UniquePattern

CopiedPattern

Default value is UniquePattern.

/DotSize <DotSize>

Specify the size of the dots in the pattern.

Default value is 0.03

/ColorSeperation <ColorSeperations>

Specify the type of color separation to be used for pattern on the form.

The following values can be used for <ColorSeperations>.

Limited

Laser

Offset

Default value is Laser.

/BarcodeSetting <BarcodeSettings>

Specify the type of barcode to be used on the form.

The following values can be used for <BarcodeSettings>.

NoBarcodes

CopiedBarcodes

UniqueBarcodes

Default is NoBarcodes.

/PaperTray <PaperTrays>

Specify the paper tray the page should be sent to. This parameter only has effect if sending through the Oki PS Print utility. See parameter “/PrinterName” for further information.

The following values can be used for <PaperTrays>.

AutoTray

Tray1

Tray2

Tray3

Tray4

Tray5

MultiPurposeTray

ManualFeed

Default is AutoTray.

/Copies <Copies>

Specify the number of copies.

Default is 1.

/FromPage <FromPage>

Specify the first page to print.

Default is 1.

/ToPage <ToPage>

Specify the last page to print.

Default is 2147483647.

/DuplexMethod <DuplexMethods>

Specify the Duplex, 2-side print.

The following values can be used for <DuplexMethods>.

None

LongEdge

ShortEdge

Manual

Default is None.

/Cropmarks

Specify that Cropmarks should be added to the page.

/PaperSize <PaperSizes>

Specify the paper size when sent to the printer. This parameter only has effect if sending through the Oki PS Print utility. See parameter “/PrinterName” for further information.

The following values can be used for <PaperSizes>.

Auto

A3

A4

A5

A6

B4

B5

Letter

Legal14in

Legal135in

Legal13in

Executive

Tabloid

TabloidExtra

A3NOBI

A3WIDE

JapanesePostCard

JapaneseDoublePostCard

IndexCard

JapaneseEnvchokei3

JapaneseEnvchokei4

JapaneseEnvyokei4

JapaneseEnvA4

JapaneseEnvKakugata2gou

JapaneseEnvKakugata3gou

JapaneseEnvKakugata8gou

JapaneseEnvChoukei3youkey0gou

DL

C4

C5

COM10

COM9

Monarch

Default is Auto.

/PrefilledData “PrefilledData”

Path of an XML file containing prefilled data for the form.

/ServerProtocol “ServerProtocol”

Specify the protocol for communication with PPOD Server. This parameter applies for web published forms only.

Default is “http://”.

/ServerName “ServerName”

Specify the name of the PPOD Server. This parameter applies for web published forms only.

Default is “ppod.penforms-it.com”

/Email “Email”

Specify the email address used for logging on to the PPOD Server. This parameter applies for web published forms only.

/Password “Password”

Specify the password used for logging on to the PPOD Server. This parameter applies for web published forms only.

/PrinterCertification “PrinterCertification”

Specify the print certification number to display in the traceability code.

/Batch <Batch>

Specify the Batch to display in the traceability code.

<Batch> must be numeric.

Example:

PrintingInterface.exe "E:\A6 Accident Report.pad" /PrinterName "OKI 5900(ps)" /Copies 1 /Silent /PaperSize A6

 
You are here: