Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gipnozik opened this issue Feb 18, 2022 · 0 comments
Open

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

gipnozik opened this issue Feb 18, 2022 · 0 comments

Comments

@gipnozik
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant