PlotPDFTIF

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > Plot >

PlotPDFTIF

Description

Plots PDF or TIFF files; the command should be used typically from the OnPlotG.LST script

Syntax

call DBWShell("PlotPDFTIF FullPathName PaperSize SheetNumber")

Parameters

FullPathName

the full path name of the PDF/TIF file to be plotted

PaperSize

the paper size; examples are "A4", "A3", etc
the string "vert" if present, changes the orientation in Portrait

SheetNumber

Optional. A specific page number to be printed.
Remarks: when assigned, it's possible to ignore the PaperSize parameter by assigning to it the value of "NOTUSED" (see example below).

Remarks

For the PDF case only, the command applies the setting of the option Plot setup→checkONPlot multiple sheets

This command supports any LST\SHEET_FORMAT(printer_name).LST file for plotting TIF/PDF documents with paper sizes larger than A3.

See also

PDF output support

Plot

Example

OnPlotG.LST sample file:

.VBSCRIPT

sub main()
 DBWInit(TRUE)
 pathName = DBWInput("@DOCUMENT_PATHNAME")
 uid = DBWInput("@DOCUMENT_UNIQUE_ID")
 if ucase(fext)=".PDF" or ucase(fext)=".TIF" then
  paper = DBWQueryByUid( uid, DBWLookUp("NAME_FIELD_PAPER_SIZE") )
  DBWShell("PlotPDFTIF " & replace(pathName," ","|") & " " & paper )
 end if
end sub

Passing the sheet number:

sub main()

 DBWInit(TRUE)
 ...
 paper = DBWQueryByUid(uid, DBWLookUp("NAME_FIELD_PAPER_SIZE"))
 sheetNo = "3"
 DBWShell("PlotPDFTIF " & replace(pathName," ","|") & " " & paper & " " & sheetNo)
 ...
end sub

Passing the sheet number but avoiding the papersize:

sub main()

 DBWInit(TRUE)
 ...
 sheetNo = "3"
 DBWShell("PlotPDFTIF " & replace(pathName," ","|") & " NOTUSED " & sheetNo)
 ...
end sub