PdfTextPageConvertPixelsToPdfUnits Method (PointF, Dpi) |
Converts a point given in pixels to the corresponding location in PDF User space units at the given
resolution.
Namespace:
Atalasoft.Pdf.TextExtract
Assembly:
Atalasoft.dotImage.PdfReader (in Atalasoft.dotImage.PdfReader.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public PointF ConvertPixelsToPdfUnits(
PointF pt,
Dpi resolution
)
Public Function ConvertPixelsToPdfUnits (
pt As PointF,
resolution As Dpi
) As PointF
Parameters
- pt
- Type: System.DrawingPointF
- resolution
- Type: Atalasoft.ImagingDpi
Return Value
Type:
PointFRemarks In a PDF, the origin is at the bottom-left of a page, and a Y length is positive when starting at
the bottom and going towards the top of the page. In pixels, the origin is at the top-left of the image and a Y
length is positive when starting at the top of the image and going towards the bottom of the image.
See Also