computerPaperForImageSize:withUnits:outCanvasPos: Instance Method

- (PxPaper) computerPaperForImageSize:(PxPointD) imageSize withUnits:(PxDimension_Units) units outCanvasPos:(PxRectF *) outCanvasPos;

References: PxPaper, PxPointD, PxDimension_Units, PxRectF

Computes the PxPaper for an image of the given size, also returning where the image sits on the page (PDF writers only).

Parameters

  • imageSize — The image size.
  • units — The units imageSize is expressed in.
  • outCanvasPos — On return, the image’s position on the page; may be nil.

Return Value

The corresponding PxPaper.

Top