pyumldiagrams.pdf.PdfCommon
Classes
Functions
|
|
|
Module Contents
- pyumldiagrams.pdf.PdfCommon.createCoordinatesFactory() Coordinates
- pyumldiagrams.pdf.PdfCommon.createDimensionsFactory() Dimensions
- class pyumldiagrams.pdf.PdfCommon.PdfShapeDefinition
- coordinates: Coordinates
- dimensions: Dimensions
- class pyumldiagrams.pdf.PdfCommon.PdfCommon(diagramPadding: pyumldiagrams.Definitions.DiagramPadding, dpi: int)
Bases:
pyumldiagrams.Common.Common
- classmethod toPdfPoints(pixelNumber: float, dpi: int) int
points = pixels * 72 / DPI
- Parameters:
pixelNumber – From the display
dpi – dots per inch of source display
Returns: A pdf point value to use to position on a generated document
- classmethod convertPosition(pos: pyumldiagrams.Definitions.Position, dpi: int, verticalGap: int, horizontalGap: int) Coordinates
- toInternal(position: pyumldiagrams.Definitions.Position) pyumldiagrams.Internal.InternalPosition