Knowledgebase

Back to Articles List

When I use the ‘y’ parameter to place images horizontally with the PXC_PlaceImage function, the parameter value is applied from the bottom of the page.

Problem:

When I use the ‘y’ parameter to place images horizontally with the PXC_PlaceImage function, the parameter value is applied from the bottom of the page. For example:

  • If the value is 0 -> then the image is not visible - its top is at the bottom of the page.
  • If the value is 150 -> then the top part of the image is visible at the bottom of the page,
  • If the value is equal to the page height then the image is shown at the top of the page.

Answer:

 This is the manner in which the software is meant to operate. Please note:

  • The 'y' coordinates in PDF operate from bottom to top, which means that in rect the top is always greater than the bottom.
  • The top-left corner of images that is specified when images are placed.
  • Image dimensions are given in coordinates, as opposed to pixels.
  • Images take full rect, regardless of their size.

Please see the 2.3.1 Coordinate system in the PDF-Tools 4 SDK help file (page 61) for further information.

Was this article helpful?
Yes No Somewhat