How to export epub using Page Break as split method in a macro

I’m trying to automate converting a .odt document into epub, using “Page Break” as Split method.

I can do this manually from the dialog EPUB Export, etc.

However, while trying to do it from a macro (self recorded), it uses “Heading” as Split method, no matter which method I choose. The values in the macro are different and look correct and logical to me:

For “Heading” as Split method:
Array("EPUBSplitMethod",0,0,com.sun.star.beans.PropertyState.DIRECT_VALUE))

For “Page Break” as Split method:
Array("EPUBSplitMethod",0,1,com.sun.star.beans.PropertyState.DIRECT_VALUE))

When I try to convert into epub from the command line, using “–convert-to epub”, it does the conversion with “Heading” as Split method as well.

Is there a way to use “Page Break” as Split method for automated EPUB conversion? Or is there a bug somewhere?