- P -

p2d
pagepalette
pasteobject
pickupattributes
placegraphic
pastetext
printdocument

 

P2D AmigaOnly

Strips the measurement system abbreviation from a coordinate and optionally converts it to another measurement system.

p2d (coord[,system])

coord/s The coordinate to strip and convert.

system/k The measurement abbreviation of the system to which to convert.

Options: INCHES i
CENTIMETERS cm
MILLIMETERS mm
PICAS p
POINTS pt
PRINTERPICAS pp
PRINTERPOINTS ppt
CICEROS c
DIDOTPOINTS d
FEET f
METERS m

Default=current.

This is a function, not a command. It is only available when the Soft-Logik ARexx support library is added to your ARexx script. i.e., addlib("softlogik:libs/slarexxsupport.library", ¨ 0, -30)

Returns:

@remark newpanel

Examples:

getbox position coord
/* adds 2 to the width in inches */
coord.right=p2d(coord.right,'i')+2
/* appends the inch abbreviation */
/* because the msys could be anything */
coord.right=coord.right||'i'
/* resets the coordinates with the new width value */
editbox position coord.left coord.top coord.right ¨   coord.bottom

 

PAGEPALETTE System Commands

Displays the page palette.

pagepalette [status] [AT pointx pointy] [SIZE width height] [COLLAPSED state] [SAVE]

status/k The palette's display status.

Options: SHOW | HIDE | TOGGLE.

AT/i The palette position in pixels.

SIZE/i The palette size in pixels.

COLLAPSED/k The collapsed state of the palette.

Options: ON | OFF.

SAVE Saves the palette settings to the PageStream3 Preferences file.

Notes:

TOGGLE may not be used in conjunction with SAVE.

Examples:

pagepalette toggle

pagepalette show at 100 200 size 400 200 save

pagepalette hide

 

PASTEOBJECT Object Commands

Pastes the objects from the clipboard onto the current page. If there is text in the clipboard, the command will fail.

pasteobject [progress] [AT x y] [DOCUMENT name | WINDOW name]

progress/k Toggle to display a progress meter.

Options: STATUS | NOSTATUS (default).

AT/d The position at which to center the pasted object. Defualt=original position.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

Examples:

pasteobject at 3.25i 4.125i

pasteobject status document 'project/doc'

 

PASTETEXT Text Commands

Pastes the text from the clipboard at the insertion point. If there are objects in the clipboard, the command will fail.

pastetext [progress] [DOCUMENT name | WINDOW name]

progress/k Toggle to display a progress meter.

Options: STATUS | NOSTATUS (default).

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

Examples:

pastetext

pastetext status document 'project/doc'

 

PICKUPATTRIBUTES Text Commands

Picks up text or object attributes.

pickupattributes <AT pointx pointy [stack] | RANGE left top right bottom [stack] | OBJECTID number> [PAGE number | MPG name | DOCUMENT name | WINDOW name]

AT/d Applies to the paragraph at this position.

RANGE/d Applies to all paragraphs in this range.

stack/k Specifies which text to apply to.

Options: FRONTMOST Selects in the frontmost article at the point. Default.

BACKMOST Selects in the backmost article at the point.

OBJECTID/i The number of the object to use.

PAGE/s The page number. Default=current.

MPG/s The master page name and side.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

Examples:

pickupattributes at 1.25 3.3 backmost

pickupattributes range 1.25 3.3 1.75 5.25

 

PLACEGRAPHIC File Commands

Places a graphic file into a document.

placegraphic [FILE filepath] [FILTER name] [progress] [AT x y] [DOCUMENT name | WINDOW name]

FILE/s The filename and path of the file.

FILTER/k The filter to use.

Options: PICT|TIFF | IFFILBM | GIF|BMP | IFFDR2D | IFFILUS | JPEG | MACPAINT | PRODRAW | PCX | ILLUSTRATOREPS | FREEHANDEPS | ARTEXPRESSIONEPS | EPS.

progress/k Toggle to display a progress meter.

Options: STATUS | NOSTATUS (default).

AT/d The position at which to center the placed graphic. Default=center of window.

DOCUMENT/s The document name. Default=current.

WINDOW/s The window name. Default=current.

If the FILE parameter is not specified, a file selector will open.

If the FILTER paragraph is not specified, the Place Graphic dialog box will open.

Examples:

placegraphic 'PageStream3:Graphics/Logo.EPS' ¨   at 3.25i 4.125i status

 

PRINTDOCUMENT File Commands

Prints the current document.

printdocument [SIDES which] [SCALE <preset | custom>] [COPIES number] [PICTURES toggle] [DRAWINGS toggle] [COLLATE toggle] [REVERSEORDER toggle] [PRINTBLANK toggle] [MIRROR toggle] [PRINTERMARKS toggle] [NEGATIVE toggle] [THUMBNAILS status] [TILING <ON [TILINGOVERLAP amount] | OFF] [OUTPUT type] [DISKFILE filename] [PAGE number | MPG name | PAGERANGE range | DOCUMENT name | CHAPTER name]

SIDES/k The sides to print. Options: BOTH (default)|EVEN | ODD.

preset/k The print scale. Options: ACTUAL (default)|FULLPAGE.

custom/k The custom print scale.

COPIES/i The number of copies. Default=1.

toggle/k Toggles a feature.

Options: ON | OFF.

PICTURES Toggles the printing of pictures. Default=on.

DRAWINGS Toggles the printing of drawings. Default=on.

COLLATE Sets whether copies will be sorted. Default=on.

REVERSEORDER Sets the print order. Default=off.

PRINTBLANK Sets whether blank pages will be printed. Default=on.

MIRROR Sets emulsion down. Default=off.

PRINTERMARKS Sets the printing of printers' marks. Default=off.

NEGATIVE Sets negative printing. Default=Off.

THUMBNAILS Prints multiple pages per sheet. Page size multipled by scale must be less than 50% for thumbnails. Default=off.

TILING/k Prints the page on as many sheets as required. Default=off.

TILINGOVERLAP/d Sets by how much the tiles will overlap. Default=maximum for minimum number of sheets.

OUTPUT/k Sets the output type.

Options: GRAYSCALE (default) | COLOR | SEPARATIONS | PROCESS | SPOT.

DISKFILE/s Specifies the file and path to which to print.

PAGE/s The number of the page to print.

MPG/s The master page and side to print.

PAGERANGE/s The pages to print.

DOCUMENT/s The name of the document to print.

CHAPTER/s The name of the chapter to print.

Examples:

print copies 2 collate off pagerange 1-5,7,9-14

print sides even chapter Astronomy.doc:Planets

print page ""