Skip to content

How to return an Array of 2 Arrays of 2 doubles? #13

Description

@gipnozik

Code
app.activeDocument.pages(2).Reframe(In=2021225328, OpposingCorners= [[10, 11], [12, 13]])

returns an error (for the Russian version)
pywintypes.com_error: (-2147352567, 'Ошибка.', (30477, 'C:\\Program Files\\Adobe\\Adobe InDesign CC 2018\\InDesign.exe', 'Некорректное значение параметра "OpposingCorners" метода "Reframe". Ожидалось Array of 2 Arrays of 2 Doubles, получено (10).', None, 0, 0), None)

machine translation:
pywintypes.com_error: (-2147352567, 'Error.', (30477, 'C:\\Program Files\\Adobe\\Adobe InDesign CC 2018\\InDesign.exe ', 'Invalid value of the "OpposingCorners" parameter of the "Reframe" method. Expected Array of 2 Arrays of 2 Doubles, received (10).', None, 0, 0), None)

how to return an Array of 2 Arrays of 2 doubles?

Comment for the function:

def Reframe(self, In=defaultNamedNotOptArg, OpposingCorners=defaultNamedNotOptArg):
'Move the bounding box of the page item.
In: The bounding box to resize. Type: idCoordinateSpaces enumerator or Ordered array containing CoordinateSpace:idCoordinateSpaces enumerator, BoundsKind:idBoundingBoxLimits enumerator.
OpposingCorners: Opposing corners of new bounding box in the given coordinate space. Type: Array of 2 Arrays of 2 Doubles'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions