PPlaceSized

Places the contents of the loaded place gun at the specified location, resizing it to fit the specified coordinates.

The commands that load the place icon are PImport, PCreateIndex, PCreateTOC, and PPlaceNext.


Command constructor

PPlaceSized(long xLeftTop, long yLeftTop, long xRightBottom, long yRightBottom);
long xLeftTop;
x-coordinate of left edge of text block or image in twips
long yLeftTop;
y-coordinate of top edge of text block or image in twips
long xRightBottom;
x-coordinate of right edge of text block or image in twips
long yRightBottom;
y-coordinate of bottom edge of text block or image in twips
Off pasteboard. If the coordinates are off the pasteboard, PageMaker sizes the text block or image to the pasteboard edge.

Images: Text wrap turned off. The PPlaceSized command places images with text wrap turned off, regardless of the default text wrap settings.

Images: Sizing not proportional. The PPlaceSized command sizes images within the given coordinates, which may or may not be proportional.

Text: Column guides and Snap To options ignored. Unlike the PPlace command, PPlaceSized ignores column guides and sizes the text block to the specified coordinates. Also the command is not sensitive to the settings of the Snap to Guides and Snap to Rulers options. PageMaker sizes the text block to the location you specify, regardless of any guides or rulers.

Text: yRightBottom a placeholder. When placing text, PageMaker disregards the value of yRightBottom. Instead, PageMaker adjusts the bottom of the text block to accommodate the text. If necessary, PageMaker expands the text block until it reaches the bottom of the page, the bottom of the pasteboard (if the text block is contained entirely on the pasteboard), or a graphic with column-break text wrap applied.

Exceptions. PPlaceSized throws a CQ_INVALID_ARGS exception for any of the following conditions:

Example. The following example imports an image and places it within the columns, resizing it to fit.

PImport("artfolder:building.gif", 0, 0, 0, 0, 0);
PGetPageMargins margins;
PPlaceSized(margins.xInside, margins.yTop, margins.xOutside, margins.yBottom);


See also

The PImport, PMove, and PResize commands

Adobe PageMaker 6.5 Help > Commands > File > Place


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support