Primera PTBurn 3 SDK User manual

PTBurn 3 SDK
Network‐capable,Text‐based,SharedFolderBurning&Printing
Compatiblewith:
PrimeraTechnologyInc.
September20,2011/Revision3.24
JobFileCommandStructure
ProgrammingExamples
RobotStatusInformation
ClientCommands
Introduction

PTBurnSDK Page2of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
1Introduction ............................................................................................................................ 5
2JRQFileCommandStructure .................................................................................................. 6
2.1CommandKeys/Values .................................................................................................... 6
2.1.1JobID.......................................................................................................................... 6
2.1.2ClientID...................................................................................................................... 6
2.1.3Importance................................................................................................................ 6
2.1.4Data........................................................................................................................... 6
2.1.5AudioFile ................................................................................................................... 7
2.1.6ImageFile................................................................................................................... 8
2.1.7DeleteFiles................................................................................................................. 9
2.1.8ImageType................................................................................................................. 9
2.1.9DataImageType ....................................................................................................... 10
2.1.10CloseDisc ................................................................................................................. 10
2.1.11Copies...................................................................................................................... 11
2.1.12PrintLabel ................................................................................................................ 11
2.1.13VolumeName .......................................................................................................... 11
2.1.14BurnSpeed............................................................................................................... 11
2.1.15VerifyDisc ................................................................................................................ 11
2.1.16RejectIfNotBlank ..................................................................................................... 11
2.1.17NotifyClient ............................................................................................................. 11
2.1.18PreserveISOVariations ............................................................................................ 12
2.1.19ReadDataTo............................................................................................................. 12
2.1.20ReadDataFormat..................................................................................................... 12
2.1.21CreateSubFolders.................................................................................................... 12
2.1.22CheckFileOnDisc...................................................................................................... 13
2.1.23CheckSystemIDOnDisc ............................................................................................ 13
2.1.24CheckVolumeIDOnDisc ........................................................................................... 13
2.1.25CheckPubIDOnDisc.................................................................................................. 13
2.1.26CheckPreparerIDOnDisc.......................................................................................... 13
2.1.27CheckAppIDOnDisc ................................................................................................. 13
2.1.28PVDSystemID........................................................................................................... 14
2.1.29PVDPublisherID ....................................................................................................... 14
2.1.30PVDPreparerID ........................................................................................................ 14
2.1.31PVDApplicationID.................................................................................................... 14
2.1.32LoadUnloadOverride............................................................................................... 14
2.1.33PreMasterData........................................................................................................ 14
2.1.34DriveID .................................................................................................................... 14
2.1.35BinID........................................................................................................................ 15
2.1.36TestRecord .............................................................................................................. 15
2.1.37PrintQuality ............................................................................................................. 15
2.1.38PrintInnerDiam........................................................................................................ 16
2.1.39PrintOuterMargin.................................................................................................... 16
2.1.40MergeField .............................................................................................................. 16
2.1.41RobotName ............................................................................................................. 17
2.1.42PrintReject............................................................................................................... 17

PTBurnSDK Page3of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
2.1.43CDTextDiscTitle ....................................................................................................... 17
2.1.44CDTextDiscPerformer.............................................................................................. 17
2.1.45CDTextDiscComposer.............................................................................................. 18
2.1.46CDTextTrackTitle ..................................................................................................... 18
2.1.47CDTextTrackPerformer ........................................................................................... 18
2.1.48CDTextTrackComposer............................................................................................ 18
2.2ProgrammingExamples.................................................................................................. 18
2.2.1SimpleDataJob....................................................................................................... 18
2.2.2SimpleAudioJob..................................................................................................... 19
2.2.3BurnandPrintjobof5discswithmanyoptionsspecified .................................... 19
2.2.4PrintOnlyJobof25Discs........................................................................................ 20
2.2.5ReadDataJobof3Discs ......................................................................................... 20
2.2.6ReadGlobalImageJobof3Discs ........................................................................... 20
3StatusInformation ................................................................................................................ 21
3.1SystemStatus.txtFile ...................................................................................................... 21
3.1.1ExampleofSystemStatus.txt .................................................................................. 21
3.1.2RobotList ................................................................................................................ 22
3.1.3RobotSection.......................................................................................................... 22
3.1.4SystemSection........................................................................................................ 24
3.2RobotName.txtStatusFiles............................................................................................ 26
3.2.1ExampleofRobotName.txt(e.g.DiscPublisherXRP.txt) ....................................... 26
3.2.2JobListSection......................................................................................................... 28
3.2.3CompletedJobsSection........................................................................................... 28
3.2.4JobDetailsSection .................................................................................................. 29
3.2.5SystemSection........................................................................................................ 32
3.2.6DriveStatisticsSection............................................................................................ 36
4ClientCommands.................................................................................................................. 38
4.1AbortCommand............................................................................................................. 38
4.2ShutdownAfterJobCommand ...................................................................................... 38
4.3ShutdownImmediateCommand ................................................................................... 38
4.4AlignPrinterCommand.................................................................................................. 39
4.5IgnoreInkLowCommand .............................................................................................. 39
4.6ProcessDiscCommand .................................................................................................. 39
4.7RejectDiscCommand..................................................................................................... 40
4.8UnloadCommand .......................................................................................................... 40
4.9CheckBinsCommand..................................................................................................... 40
4.10CreateReportCommand............................................................................................ 40
4.11GeneratePreview ....................................................................................................... 41
4.12RunUtilityCommand ................................................................................................. 41
4.13USBConnect ............................................................................................................... 41
4.14USBDisconnect........................................................................................................... 41
4.15Set/ClearKioskMode ................................................................................................. 41
4.16CleanCartridges.......................................................................................................... 42
5CodingBestPractices............................................................................................................ 42
5.1Programming Tips.......................................................................................................... 42
5.1.1ReadingtheStatusFile............................................................................................ 42

PTBurnSDK Page4of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
5.1.2DeterminingiftheserviceisRunning..................................................................... 42
5.1.3Startingtheservice ................................................................................................. 42
5.2Merge Printing................................................................................................................ 43
6AppendixA:PTSetup.ini....................................................................................................... 45
7AppendixB:DeploymentDetails ......................................................................................... 50
8AppendixC:Job,SystemandBurnEngineErrorCodes....................................................... 51
9AppendixD:Loading/UnloadingOverride........................................................................... 65
10RevisionHistory .................................................................................................................... 67

PTBurnSDK Page5of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
1Introduction
Primera’sPTBurnSDKserviceallowsanyclientapplicationtoeasilycreatediscswith
customizedburndataandprintedlabelinformation.Itisidealforusewithcustomer‐supplied
“front‐end”applicationsinnetworkedorcustomenvironmentsinmarketssuchasmedical
imaging,digitalphotoprocessing,music/video/softwareon‐demandandmuchmore.The
supporteddevicesforthisapplicationarePrimera’sDiscPublisherSE,DiscPublisherII,Disc
PublisherPRO,DiscPublisherXR,DiscPublisherXRP,DiscPublisherProXi‐Series,andDisc
Publisher4100Series(includingXRP).
TheclientapplicationcreatesanASCIItextfile(JobRequestFile)intheJobRequestFolder
(shared“hot‐folder”).TheJobRequestFilespecifiestheimagedatatoburn,thelabeltoprint,
andthenumberofcopiestocreate.ThePTBurnservicescansthisJobRequestFolderfornew
jobssubmittedbyanyclientapplicationandcreatesthediscsautomaticallyontheDisc
Publisher.ThereisabothaUnicodeversionandaMultibyte(MBCS/ANSI)versionofPTBurn
SDK;usetheUnicodeversionforburningandprinting2‐bytecharacters.
ThePTBurnWindowsServiceworksonWindowsXP,WindowsVistaorWindows7.Client
machinescanrunanyoperatingsystemthatisabletoreadandwriteintoaWindowsshared
folder.Itcanburneitherdataoraudiodiscs,aswellascreatediscsfromadiscimage.
ChangescanbemadetothePTSETUP.INIfiletocustomizecertainsettings.SeeAppendixAfor
moredetailsonthePTSETUP.INIfile

PTBurnSDK Page6of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
2JRQFileCommandStructure
Tocreatediscs,theclientapplicationmustcreateaJobRequestFile.Thistextfilecanbe
namedanythingtheclientchoosesbutitMUSTresidewithintheJobRequestFolderANDmust
haveanextensionof.JRQ(thiscanbechangedinPTSETUP.INI).This.JRQfilecreatedbythe
clientcontainsinformationthatspecifiesthedatatoburn,numberofcopies,etc.
TheJobRequestFilemustbeatextdocumentwithcertainKeyvaluesdefined(manyofwhich
areoptional).Theformatis:
2.1 CommandKeys/Values
2.1.1 JobID
AnyASCIIstringmessageupto32charactersdescribingthejob.Whenthejobisbeing
executedthisJobIDstringwillbeshowninthePTBurnwindow.Ifthiskeyisnotprovidedthen
thejobrequestfilenamewillbeused.
2.1.2 ClientID
ThisASCIIstringmessageupto32charactersisadescriptionfortheClientwhoissubmitting
thejob.Theclientcandecidewhatstringhewantstouse.Ifthiskeyisnotprovidedthenthe
ClientIDwilldefaultto“Unknown.”
2.1.3 Importance
ThistellsPTBurnhowimportantthejobis.Possiblevaluesare0to400where0ismost
importantand400isleastimportant.Ifthiskeyisnotprovidedthenadefaultvalueof4willbe
used.Jobswithlowervalueswillbeprocessedfirstunlessthejobhasbeenwaitingtoolong
(thisvaluecanbechangedinPTSETUP.INI).NOTE:Whensubmittingjobsofdifferentpriorities
itisimportanttosubmitjobswithhigherprioritybeforejobswithlowerpriority;jobsthatare
discoveredbyPTBurnwillnotbeinterruptedoncetheyactuallybegin,evenifajobwitha
higherpriorityisdiscoveredlater.
2.1.4 Data
Thisisastringthatspecifiestheeitherthefilenametoburnorthefolderthatcontainsallthe
datatobeburned.Allfilesandsubfolderswithinaspecifiedfolderwillbeburned(theroot
folderitselfwillnotbecopied–onlyitscontents).Alternatively,individualfilescanbe
specifiedhere(thefullpathforthesourcefilemustbegiven,butthefilewillbecopiedtothe
rootlocationonthedisc).Theformatisasfollows:
Data=Filename,SessionX
WhereSessionXisoptionalandisusedonlyifrequestingamulti‐sessiondisc(amaximumof2
sessionsisallowedatthistime).ThevalueXisanintegervalue(1or2)thattellsPTBurnfor
whichsessiontoburnthisdata.
IfSessionXisnotgiventhenitwillbeburnedintothefirst(andonly)session.

PTBurnSDK Page7of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
e.g.
Data=C:\MyFolder1,Session2
(ThistellsPTBurntoburnthecontentsofC:\MyFolder1tosession2onthedisc.Inthis
example,theremustalsobeanAudioFile=orImageFile=entryforSession1).
SeetheDataImageTypekeybelowtospecifyburningoptionsincludingfilesystem.
TheonlywaytheDatakeycanbeusedwiththeAudioFilekeysortheImageFilekeyis
iftheSessionXvalueisused.TheDatakeymustnotbeusedwithAudioFileor
ImageFilewiththesamesessionvalue.
Foraddedflexibilityyoucanalsoburndatafromasourcelocationandchangethedestination
nameand/orlocationofthedatatobeburnedontothedisc.Forexample,youcancopyfiles
fromthesourceharddriveandrenamethem.Youcanalsoplacethemintoanewfolderonthe
disc.Also,youcancopyanentiresourcefolderandplacethemintoanyspecifieddestination
folderonthedisc.
Theformatforthisisasfollows:
Data=SourceFilename>\DestinationFilename
Or
Data=SourceFolder>\DestinationFolder
Notethedestinationfilenameandfoldershouldbeproceededbya“\”todenotetherootof
thedisc.
Examples:
Data=C:\MyFolder1\MyFile.txt>\YourFile.txt
ThiswillburnC:\MyFolder1\MyFile.txttotherootofthediscandchangethenameto
YourFile.txt
Data=C:\MyFolder1\MyFile.txt>\YourFolder1\YourFile.txt
ThiswillburnC:\MyFolder1\MyFile.txtasYourFile.txtintoafolderonthedisccalled
YourFolder1(noteYourFolder1willautomaticallybecreatedonthedisc).
Data=C:\MyFolder1>\YourFolder1\YourFolder2
ThiswillburntheentirecontentsofC:\MyFolder1intoanewfolderonthedisccalled
YourFolder2(whichiscreatedasasubfolderwithinYourFolder1)
2.1.5 AudioFile
Thisisastringthatspecifiesthenameofanaudiofiletoburn.
YoucanoptionallyspecifyaPregapvalue(insectors)ofthetrack,theSession,ortheISRCcode
forthedisc.So,theformatisasfollows:

PTBurnSDK Page8of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
AudioFile=Filename,PregapX,SessionX,ISRCxxxxxxxxxxxx
Upto99AudioFile=statementsareallowed(99totalifDataandImageFilestatementsused
also).
Acceptableaudiofilenametypesinclude.WAV,.MP3,and.WMA.
PregapX(audiosilence)valuesareinsectorsso75sectors=1second,150sectors=2seconds,
andsoon.Thefirstaudiotrack
willalwayshaveaPregapof150evenifanothervalueisspecified.IfPregapisnotspecified
thenavalueof150willbeusedasthedefault.
SessionXisoptionalandisusedonlyifrequestingamulti‐sessiondisc(amaximumof2sessions
areallowedatthistime).ThevalueXisanintegervalue(1or2)andtellsPTBurnforwhich
sessiontoburnthisaudiofile.IfSessionXisnotgiventhenitwillbeburnedintothefirst(and
only)session
e.g.
AudioFile=MySong.mp3,Session1
(ThistellsPTBurntoburntheaudiofileMySong.mp3tosession1onthediscascdaudio.In
thisexampletheremaybeaData=orImageFile=entryforSession2).
TheonlywaythiskeycanbeusedwiththeDatakeysortheImageFilekeyisiftheSessionX
valueisused.AudioFilemustnotbeusedwithDataorImageFilewiththesamesession
value.
ISRCisanotheroptionforeachaudiotrack.TheISRCvaluexxxxxxxxxxxxisa12character
sequencethatdescribeseachaudiotrack.Seehttp://en.wikipedia.org/wiki/Isrcfordetailsof
validvaluesforthe12characters.
e.g.
AudioFile=MySong1.wav,ISRCUSPR37300012
AudioFile=MySong2.wav,ISRCUSPR37300013
2.1.6 ImageFile
Thisspecifiesthename(includingpath)ofanalready‐mastereddiscimagetobeburned.The
acceptablediscimagetypesinclude.GIor.ISO.
Theformatisasfollows:
ImageFile=Filename,SessionX

PTBurnSDK Page9of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
WhereSessionXisoptionalandisusedonlyifrequestingamulti‐sessiondisc(amaximumof2
sessionsareallowedatthistime).ThevalueXisanintegervalue(1or2)thattellsPTBurnfor
whichsessiontoburnthisimage.
IfSessionXisnotgiventhenitwillbeburnedintothefirst(andonly)session.
e.g.
ImageFile=c:\MyImage.ISO,Session1
(ThistellsPTBurntoburnthediscimageMyImage.ISOtosession1onthedisc.Inthisexample,
theremaybeData=orAudioFile=entriesforSession2).
TheonlywaythiskeycanbeusedwiththeDatakeysortheAudioFilekeysisifthemulti‐
sessionSessionXvalueisused.ImageFilemustnotbeusedwithDataorAudioFilekeyswiththe
samesessionvalue.
2.1.7 DeleteFiles
Thisspecifiesifthefiles/folders/imageforthisparticularjob,shouldbedeletedafterthejobis
completed.Possiblevalues:
YES
NO
ThedefaultvalueifthiskeyisnotgivenisNO.Inorderforthefiles/folderstobedeletedthey
mustresidewithinasubfolderoftheSharedJobFolder.Everythingwithinthefirstsubfolder
undertheSharedJobFolder(includingthesubfolder)willbedeleted.
IfDeleteFilesissettoYES,thejobdataandprintfileswillbedeleteduponthejobcompleting
(Pass,Fail,orAbort).Thejobrequestfile(nowwitha.donor.errextension)willnotbedeleted
immediately.ThedeletionofthisfilewilloccurwhenthetimesetinPTSETUP.ini(Status_Time)
hasexpiredafterjobcompletion.
2.1.8 ImageType
Thisspecifiesthemode(blocklength)tousewhenburningtheImageFilediscimage.The
possiblevaluesareasfollows:
MODE_1_2048
MODE_2_2336
MODE_2_2352
Thiskeyonlyappliesto.ISOdiscimages.
Notethatusingthewrongvalueherecancausetheimagetonotfitandleadtoanunusable
disc.

PTBurnSDK Page10of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
2.1.9 DataImageType
Thisspecifieswhatkindofimageshouldbecreatedforadataburn(whenDataFileskeyis
given).Multipleitemsarepossiblesotheformatis:
DataImageType=FileSystem,Option1,Option2,…
PossiblevaluesofFileSystemarethefollowing:
ISOLEVEL1–foranISO9660Level1compliantCDwithfolderandfilenamesinthe8+3format
usingonlytheA‐:‐Z,0‐:‐9and“_”characterset.
ISOLEVEL2–forandISO9660Level2compliantCD(DOSOEMcharacters).Filenamesare8+3
format(useISOLEVEL3forlongfilenamesupport).
ISOLEVEL3–foranISO9660Level3compliantCD(DOSOEMcharacters,longfilenames)
JOLIET–foraMicrosoftJolietcompliantCDwithfilenamesupto106characters.
ISOLEVEL1+JOLIET–foranISO9660Level1withJolietCD.
ISOLEVEL2+JOLIET–foranISO9660Level2withJolietCD.
ISOLEVEL3+JOLIET–foranISO9660Level3withJolietCD.
UDF–foraUDF1.02bridgefilesystem
UDF201–foraUDF2.01bridgefilesystem
UDF250–foraUDF2.50bridgefilesystem
UDF260–foraUDF2.60bridgefilesystem
PossiblevaluesofOption1,Option2,…arethefollowing:SETNOW–thiswillcauseallfilesto
besettothetime/dateatwhichthedisciscreated.Ifthisoptionisnotgiventhenthefile’s
time/datewillkeeptheiroriginalvalues.
MODE2–thiswillmakeaCD‐ROMMode2XAdisc.Ifthisoptionisnotgiventhenthedisc
createdwillbeMode1.
ThisoptionisvalidonlyforaCD‐R,andisignoredforaDVD‐R.
SAO‐‐ifthediscmustbewrittenSessionAtOnce.WhenSAOisnotspecifiedtherecordingis
doneTrackAtOnce(TAO).TAOisrequiredforDVDmulti‐border(DVD‐R,DVD‐RW)butis
optionalforCD‐R,CD‐RW.
(Ifthiskeyisnotprovided,thedefaultwillbeaJoliet,Mode1,TrackatOnceDisc).
Note:IfchoosingISOLevel1thefilenamesmustadheretotheISOLevel1namingconvention
(8+3usingA‐Z,0‐9,and_only).Ifanyfiles/foldersinthejobdonotadheretothisconvention
thejobwillfail.
Note:IfburningDVDVideo(VIDEO_TS),werecommendthatyouselectUDFtoallowfor
betterplaybackcompatibilitywithdvdplayers.
2.1.10 CloseDisc
Thisspecifiesifthediscmustbeclosedsothatnoothersessioncanbeadded.Possiblevalues:
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.

PTBurnSDK Page11of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
2.1.11 Copies
Thisspecifieshowmanycopiesyouwantcreated.Therangeofvaluesisfrom1to10,000.The
defaultis1ifthiskeyisnotgiven.
2.1.12 PrintLabel
Thisspecifiespathandfilenameofthelabeltoprintondisc.
Thepossiblefiletypesare.STD(SureThing™),.jpg(JPEG),.bmp(WindowsBitmap),or.PRN
(printedtofilethroughanyapplication).Ifthiskeyisnotgiventhennoprintingwillbe
performed.Forprintingmergetextandpictures(uniquetextand/orpicturesoneachdisc)see
thesupportingSureThingdocumentationfromMicrovision(sometipsarealsogivenbelow).
2.1.13 VolumeName
Thisstringspecifiesthevolumelabelname.Thestringcanbeupto32characters,butusually
onlythefirst11charactersarevisibleonasystem.Ifthiskeyisnotgiventhenthedefaultwill
betheJobIDstring(iftheJobIDstringisnotgiventhenthedefaultwillbe“NewDisc”)
2.1.14 BurnSpeed
Thisintegervaluespecifiesarequestedrecorderburnspeed.Therangeisfrom1to100.This
correspondsto1xto100x(eventhough100xrecordersarecurrentlynotavailable).Ifthiskey
isnotgiventhentherecorderwillburnatMAXspeed(oryoucansetBurnSpeed=0forMAX
speed).Iftherecorderisnotcapableoftherequestedburnspeed,thenthenearestavailable
speedwillbeused.
2.1.15 VerifyDisc
Thisspecifiesifthediscmustbeverifiedornot.Possiblevalues:
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.
2.1.16 RejectIfNotBlank
Thisspecifiesifadiscshouldberejectedifisnotblank.Possiblevalues:
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.WhenavalueifYESisgiventhenthediscwillbe
rejectedunlessblankmediaisinserted.NOmeansthatitwillattempttoaddasessionifone
alreadyexists.
2.1.17 NotifyClient
Thiskeyspecifiesiftheclientwantstobenotifiedwhentheirjobiscomplete(pass,fail,or
abort).

PTBurnSDK Page12of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
Possiblevalues:
Message
Disabled
ThedefaultvalueisDisabledifthiskeyisnotgiven.WhenavalueofMessageisgiventhenthe
clientwillbenotifiedviaanetmessage.Ifthisfeatureisused,theClientIDkeymustbesetto
theclient’scomputername.ThisfunctionworksforWindowsXPbutnotWindowsVistaor
Windows7.
2.1.18 PreserveISOVariations
Thiskeyforcestherecordingenginetopreservethefilenameasisevenifitisoutof
specification.Possiblevalues:
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.
2.1.19 ReadDataTo
Thiskeyspecifiesthelocationtowhichdatafromthedisc(s)shouldbestored(thisisusefulfor
savingthecontentsofadiscforlateruse).IftheReadDataFormatkeyissettoReadData,then
thiskeycontainsthepathofwherethedatafromthediscshouldbewrittentotheharddisk
drive(ex.C:\MyDisc1).IfReadDataFormatisReadGI,thenReadDataTospecifiesthepathand
GIfilenamethatshouldbecreated(ex.\\Computer\PTBurnJobs\ReadFilewouldcreatethe
globalimagefile\\Computer\PTBurnJobs\ReadFile.gi).WhenusingReadGIastheformatyou
shouldNOTspecifythe.giextensionintheReadDataTokeybecausePTBurnwillappendthe.gi
extensiontothename.
2.1.20 ReadDataFormat
Thiskeyspecifiestheformatinwhichthedisc(s)willbestoredontotheharddiskdrive(intothe
locationspecifiedbyReadDataTo).Thepossiblevaluesareasfollows:
ReadGI
ReadData
ThedefaultvalueisReadData,whichwillreadthedatafromthediscandstorethesamedata
ontotheharddiskdrive.ReadGIwillcreateaGlobalImagefileoftheDisc.Iftheformatis
ReadGIandthenumberofcopiesisgreaterthan1,thena_0,_1…willbeappendedtotheGI
filename.
NOTE:anyfiles,including.GIfileswillbeoverwritteniftheyalreadyexist.
2.1.21 CreateSubFolders
ThiskeywillcausePTBurntocreateasubfolderbelowtheReadDataTopathforeachdiscread.
ThesubfolderswillbenamedDisc_0,Disc_1…Thepossiblevaluesare:
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.ThiskeyisonlyvalidifReadDataToisspecified,
ReadDataFormat=ReadData,andthenumberofcopiesisgreaterthan1.
NOTE:Beforestartingthejob,thesubfoldersDisc_0,Disc_1,…,shouldbedeleted,renamed,or
movediftheyalreadyexistinthelocationspecifiedbyReadDataTo.

PTBurnSDK Page13of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
2.1.22 CheckFileOnDisc
ThiskeywillcausePTBurntocheckthediscpriortorecordingtoseeifthespecifiedfileexists.
Thevalueofthiskeyshouldbethecompletepath(onthedisc)ofthefile.Forexample:
CheckFileOnDisc=Server\myFile.txt
willcausePTBurntochecktoseeifthefile“myFile.txt”isonthediscinthe“Server”folder.If
thefileisnotfoundthenanInvalidMediaError(Job/DiscError10)willbeset.
2.1.23 CheckSystemIDOnDisc
ThiskeywillcausePTBurntocheckthediscpriortorecordingtoseeiftheSystemIDvaluein
thePVDmatchesthevalueofthiskey.
CheckSystemIDOnDisc=PTBurn
willcausePTBurntochecktoseeifthesystemIDinthePVDonthediscissetto“PTBurn”.If
thevalueisnotfoundthenanInvalidMediaError(Job/DiscError10)willbeset.
2.1.24 CheckVolumeIDOnDisc
ThiskeywillcausePTBurntocheckthediscpriortorecordingtoseeiftheVolumeIDvaluein
thePVDmatchesthevalueofthiskey.
IfthevalueisnotfoundthenanInvalidMediaError(Job/DiscError10)willbeset
2.1.25 CheckPubIDOnDisc
ThiskeywillcausePTBurntocheckthediscpriortorecordingtoseeifthePublisherIDvaluein
thePVDmatchesthevalueofthiskey.
IfthevalueisnotfoundthenanInvalidMediaError(Job/DiscError10)willbeset.
2.1.26 CheckPreparerIDOnDisc
ThiskeywillcausePTBurntocheckthediscpriortorecordingtoseeiftheDataPreparerID
valueinthePVDmatchesthevalueofthiskey.
IfthevalueisnotfoundthenanInvalidMediaError(Job/DiscError10)willbeset.
2.1.27 CheckAppIDOnDisc
ThiskeywillcausePTBurntocheckthediscpriortorecordingtoseeiftheApplicationIDvalue
inthePVDmatchesthevalueofthiskey.
IfthevalueisnotfoundthenanInvalidMediaError(Job/DiscError10)willbeset.

PTBurnSDK Page14of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
2.1.28 PVDSystemID
ThiskeywillsettheSystemIDvalueofthePVD.Thismaxnumberofcharactersforthiskeyis
32.
2.1.29 PVDPublisherID
ThiskeywillsetthePublisherIDvalueofthePVD.Thismaxnumberofcharactersforthiskeyis
128.
2.1.30 PVDPreparerID
ThiskeywillsetthePreparerIDvalueofthePVD.Thismaxnumberofcharactersforthiskeyis
128.
2.1.31 PVDApplicationID
ThiskeywillsettheApplicationIDvalueofthePVD.Thismaxnumberofcharactersforthiskey
is128.
2.1.32 LoadUnloadOverride
Thiskeywillenablethemanualloadandunloadfunctionality.
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.ThiskeyallowsyoutoPauseafterthedriveis
loaded(beforeburning)andalsoallowsyoutoPauseafterburning(beforethedriveis
unloaded).ItalsoallowsyoutoLoad/Unloadthedrivewithoutburning(e.g.readdisccontents
only).
PleaseseeAppendixDfordetailsregardingmanualloadandunload.
2.1.33 PreMasterData
Thiskeywillenablepre‐masteringofdatajobs.Thismeansthatwhenthejobisstarteda
temporaryimagewillbecreatedandtheneachdiscinthejobwillbeburnedfromthatimage.
Otherwiseeachdiscwillbeburnedasaseparatedatadisc.WerecommendsettingthistoYES
ifyouareburningalargenumberoffiles,orthereisthepossibilitythatafilecouldchange
duringtheburnprocess.
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.
IMPORTANTNOTE:IfyouareburningtoDVD,thenyoumustspecifythiswithanotherkey:
DiscType=DVDR
Ifnotspecified,thenitwillbeassumedthatyouwanttopre‐masteraCD.
2.1.34 DriveID
ThisKeyisusedtospecifyadrivetobeusedinajob.TherecanbemorethanoneDriveIDkey
inajrqfile.TheDriveIDshouldbesettothedriveindex,whichcanbefoundintheStatusfile
(SeeDriveDescXinSection3.4.22).IfnoDriveIDisspecifiedthenalldrivesintherobotwillbe
used.ForExample:

PTBurnSDK Page15of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
IftheJRQSpecifies
DriveID=0
AndtheStatusfilehasthefollowingentry
DriveDesc0=HL‐DT‐STCD‐RWGCE‐8526B1.02
DriveLocation0=RoboticRecorder
Then,inthisexample,onlythetopdrivewillbeusedinthejob.
2.1.35 BinID
Thiskeyisusedtospecifyfromwhichbintopickadiscandwheretooutputthedisc.The
behaviorofBinIDdependsonwhetherKioskmodeissetornot.(SeeSection3.1.2.11to
determineifKioskModeisenabledornot.SeeSection4.15toenable/disableKioskMode).
ValidvaluesforBinIDare0,1,or2
KioskModeEnabled:
BinIDDiscPickedfromDiscOutputto
0BothBinsFrontKioskarea
1LeftBinFrontKioskarea
2RightBinFrontKioskarea
KioskModeDisabled:
BinIDDiscPickedfromDiscOutputto
0RightBinLeftBin
1LeftBinFrontKioskarea
2RightBinFrontKioskarea
2.1.36 TestRecord
Thiskeyisusedtospecifyifyouwantthedisctobetestedinsteadorrecorded.Thisisuseful
whenrunningtestswhereyoudonotwanttowastemediabyburningit.Thepossiblevalues
are
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.
2.1.37 PrintQuality
Thiskeyspecifiestheprintquality.Ifthiskeyisnotspecifiedthenthedefaultdrivervaluewill
beused.Thepossiblevaluesarelistedbelow.
Low=0
Medium=1
Better=2
High=3
Best=4

PTBurnSDK Page16of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
ThedefaultdrivervaluecanbechangeinthePrinterPreferencesdialogwhenviewingthe
printersonWindows.
2.1.38 PrintInnerDiam
Thiskeyspecifiestheinnerdiameteroftheprint.Theunitsforthiskeyare.1mm.Therangeof
valuesisfrom150–500(.1mm).Ifthiskeyisnotspecifiedthenthedefaultdrivervaluewillbe
used.
ThedefaultdrivervaluecanbechangeinthePrinterPreferencesdialogwhenviewingthe
printersonWindows.
2.1.39 PrintOuterMargin
Thiskeyspecifiestheouterdiameteroftheprint.Theunitsforthiskeyare.1mm.Therangeof
valuesisfrom0–20(.1mm).Ifthiskeyisnotspecifiedthenthedefaultdrivervaluewillbe
used.
ThedefaultdrivervaluecanbechangeinthePrinterPreferencesdialogwhenviewingthe
printersonWindows.
2.1.40 MergeField
Thiskeyspecifiesa“Merge”fieldforSureThingprinting(eithermergetextormergepicture).
NotethattheprintfilespecifiedwithintheJRQmustbeaSureThingfile,anditmusthavebeen
designedwithaMergeFilespecified.
Thiskeyisnotneededifthemergefileexists.Thereasonforthiskeyisconvenience;byusing
thiskeythemergefiledoesnotneedtosaved.Insteadyoucanspecifythemergefieldswithin
theJRQusingthiskey.
Example:
MergeField=Kevin’sMergeJobDisc
MergeField=C:\images\logo.bmp
MergeField=C:\DocumentsandSettings\kevin\MyDocuments\MyPictures\sample.jpg
Thisexampleisforadiscthatwasdesignedwithonemergetextfieldandtwomergepictures.
NotethatthefieldsshouldbespecifiedinthecorrectordertomatchtheSureThingdesign.
TIP:WhendesigningtheoriginalSureThingimageyoumustbesuretofollowthesesteps:
1. OpenanewSureThingdesign.
2. InsertthenumberofdesiredmergefieldsintheSureThingdesign.Bothtextand
picturescanbemerged.Foreachtype,followthesestepsinSureThing‐‐
a. MergeText:Tools/InsertField,MergeFieldstab,FieldOne,Two…
b. MergePhoto:Tools/ObjectTools/PictureTool,enablethe‘Merge’checkbox,
FieldOne,Two….

PTBurnSDK Page17of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
3. Createa“dummy”mergetextfile.Intheexampleabovewewouldcreateafilecalled
MyMergeFile.txtwiththefollowingcontents:
“TextField1”,“MyImage1.jpg”,“MyImage2.jpg”
4. AssociatethemergetextfilewiththeSureThingdesign–todothis,clickTools/Set
MergeFileandbrowsetothenewlycreatedMyMergeFile.txt.
5. SavethenewSureThingdesignfile.
Now,thisnewlycreatedSureThingdesignfile(.STD)canbespecifiedinPTBurnandthevalues
specifiedwith“MergeField”willbeinsertedintotheimageatprinttime.
Additionalnotes:
Themergetextfileisonlyrequiredatdesigntime;duringrun‐timeitisnolongerrequired.If
theoriginalmergefileisnotfoundatprinttime,thenanewfilewillbecreatedinthesame
folderastheSureThingdesignfile.However,iftheoriginalmergetextfileisfound,thenthe
valuesinitarepopulatedwithvaluesfromtheJRQMergeFieldvalues(andanyunusedfieldsin
themergefilewillberemoved).
2.1.41 RobotName
Thiskeyspecifiesaparticularrobottouseforthejob.Thenamemustbeonelistedin
[RobotList]asdescribedinSection3.1.2.Thisisusefulinamultiplerobotscenariowhenyou
wanttospecifyaparticularrobotforthejob.
Example:
RobotName=DiscPublisherXRP(Copy1)
Note:
IfAutoSwitchRobot=TRUEinPTSETUP.INIandtherobotspecifiedusingRobotNamehasan
error,PTBurnwillautomaticallyswitchtoarobotwithoutanyerrors.
2.1.42 PrintReject
Thisspecifiesifthediscshouldbeprintedwith“Reject”iftheburnisrejected.
YES
NO
ThedefaultvalueisNOifthiskeyisnotgiven.
2.1.43 CDTextDiscTitle
ThiskeyspecifiestheCD‐Textfieldrepresentingthedisc’stitle.Thisentryisrequiredwhen
doinganaudiodiscwithCD‐Text(oneentryperdisc).Themaximumnumberofcharactersis
100.ThetotalnumberofcharactersforCDTextDiscTitleandallCDTextTrackTitleentriescannot
exceed2000characters
2.1.44 CDTextDiscPerformer
ThiskeyspecifiestheCD‐Textfieldrepresentingthedisc’sperformer.Thisentryisrequired
whendoinganaudiodiscwithCD‐Text(oneentryperdisc).Themaximumnumberof

PTBurnSDK Page18of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
charactersis100.ThetotalnumberofcharactersforCDTextDiscPerformerandall
CDTextTrackPerformerentriescannotexceed2000characters.
2.1.45 CDTextDiscComposer
ThiskeyspecifiestheCD‐Textfieldrepresentingthedisc’scomposer.Thisentryisrequired
whendoinganaudiodiscwithCD‐Text(oneentryperdisc).Themaximumnumberof
charactersis100.ThetotalnumberofcharactersforCDTextDiscComposerandall
CDTextTrackComposerentriescannotexceed2000characters.
2.1.46 CDTextTrackTitle
ThiskeyspecifiestheCD‐Textfieldrepresentingthetrack’stitle.Thisentryisrequiredforeach
trackwhendoinganaudiodiscwithCD‐‐Text.Themaximumnumberofcharactersforeach
entryis100.TheCD‐Textfieldswillbeassociatedwiththeirrespectivetrackbasedonthe
orderitappearsintheJobRequestFile.Forexample:
AudioFile=myfile1.mp3
AudioFile=myfile2.mp3
CDTextTrackTitle=Firsttrack
CDTextTrackTitle=Secondtrack
Track1willbemyfile1.mp3withtheCD‐TextTrackTitleforthetracksetto“Firsttrack”.Track
2willbemyfile2.mp3withtheCD‐TextTrackTitleforthetracksetto“Secondtrack”.
2.1.47 CDTextTrackPerformer
ThiskeyspecifiestheCD‐Textfieldrepresentingthetrack’sperformer.Thisentryisrequired
foreachtrackwhendoinganaudiodiscwithCD‐Text.Themaximumnumberofcharactersfor
eachentryis100.
2.1.48 CDTextTrackComposer
ThiskeyspecifiestheCD‐Textfieldrepresentingthetrack’scomposer.Thisentryisrequiredfor
eachtrackwhendoinganaudiodiscwithCD‐Text.Themaximumnumberofcharactersfor
eachentryis100.
2.2 ProgrammingExamples
2.2.1 SimpleDataJob
Test1.JRQintheJobRequestFolderhasthecontents:
Data=c:\MyBackup

PTBurnSDK Page19of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
ThiswillburnoneCD‐Rdiscwithallthefilesandsubfolderswithinthec:\MyBackupfolder.It
willbeaJolietfilesystem,Mode1,Track‐at‐once,not‐closeddisc(seeotherdefaultsabove).
2.2.2 SimpleAudioJob
Test2.JRQintheJobRequestFolderhasthecontents:
AudioFile=c:\MyMusic\MyTrack1.wav
AudioFile=c:\MyMusic\MyTrack2.mp3,Pregap75
AudioFile=c:\MyMusic\MyTrack3.wma,Pregap150
BurnSpeed=8
CloseDisc=YES
Copies=2
Thiswillburn2CD‐Raudiodiscswiththreetracks.The.wav,.mp3,and.wmawillbeconverted
andburnedasCD‐Audioautomatically.MyTrack2willhavea1secondpausebeforeitand
MyTrack3willhavea2secondpausebeforeit.Thediscswillbeburnedat8x(orascloseas
possible)andthediscwillbeclosed.
2.2.3 BurnandPrintjobof5discswithmanyoptionsspecified
Test3.JRQintheshared‐folderlocationhavethecontents:
JobID=Kevin’sPhotos
ClientID=COMPANYX‐KEVIN1
Data=\\SERVER\PTBurnJobs\KevinsJob\Photos\Data
Data=c:\MyBackup\File1.jpg
DeleteFiles=YES
DataImageType=ISOLEVEL1,SAO,SETNOW
CloseDisc=YES
Copies=5
PrintLabel=\\SERVER\PTBurnJobs\KevinsJob\Print\Photos.std
VolumeName=MyPhotos
VerifyDisc=YES
NotifyClient=Message
Thiswillburn5CD‐Rdiscswithallthefilesandsubfolderswithinthesubfolder
\\SERVER\PTBurnJobs\KevinsJob\Photos\Dataanditwillalsoburnthefile
C:\MyBackup\File1.jpg.Thediscwillbeverifiedafterburning.TheSureThinglabelfile
\\SERVER\PTBurnJobs\KevinsJob\Print\Photos.stdwillbeprintedoneachdisc.Thediscswillbe
closed‐sessionDisc‐at‐oncewithISO9660Level1filesystem,andthetime/dateofthefileswill
besettothetimeatwhicheachdiscisburned.Aftercompletingthejob,PTBurnwilldeleteall
thefilesandsubfolderswithinandincludingthesubfolder\\SERVER\PTBurnJobs\KevinsJob.
NotethatthefileC:\MyBackup\File1.jpgwillnotbedeleted.
BecausetheNotifyClientkeyissettoMessage,whenthejobiscompletedanetmessagewill
besenttothecomputerCOMPANYX‐KEVIN1.

PTBurnSDK Page20of68
©2011PrimeraTechnology,Inc.PrimeraisaregisteredtrademarkandBravoisatrademarkofPrimeraTechnology,Inc.Allothertrademarks
arethepropertyoftheirrespectivecompanies.
2.2.4 PrintOnlyJobof25Discs
JobID=MyPrintJob
ClientID=MyWorkstation
PrintLabel=\\SERVER\PTBurnJobs\MyJob\MyImage.STD
Copies=25
2.2.5 ReadDataJobof3Discs
ClientID=MyComputer
JobID=Job0
Importance=2
Copies=3
NotifyClient=Message
ReadDataTo=\\MyComputer\PTBurnJobs\ReadData
ReadDataFormat=ReadData
CreateSubFolders=YES
2.2.6 ReadGlobalImageJobof3Discs
ClientID=MyComputer
JobID=Job0
Importance=2
Copies=3
NotifyClient=Message
ReadDataTo=\\MyComputer\PTBurnJobs\ReadData
ReadDataFormat=ReadGI
ThiswillcreateaGIglobalimagefileforeachofthe3discsatthefollowinglocations:
\\MyComputer\PTBurnJobs\ReadData_1.gi
\\MyComputer\PTBurnJobs\ReadData_2.gi
\\MyComputer\PTBurnJobs\ReadData_3.gi
Table of contents
Other Primera Software manuals

Primera
Primera PrimaBar User manual

Primera
Primera PrimoDVD User manual

Primera
Primera PoINT Publisher User manual

Primera
Primera PTBurn SDK User manual

Primera
Primera SureThing User manual

Primera
Primera PTRobot API User manual

Primera
Primera 510869 User manual

Primera
Primera PTPublisher NE User manual

Primera
Primera Discribe5 User manual