Чтение IDML-координат ада

Я пытаюсь проанализировать распространение IDML, содержащее несколько прямоугольников, всего 8. Прямоугольники скопированы из одного исходного прямоугольника, повернуты и расположены на развороте.

В файле IDML все прямоугольники имеют одни и те же исходные точки, только с разным преобразованием для каждого элемента. Я пытаюсь понять, как преобразовать весь этот вложенный кошмар в аккуратный набор координат и размеров, ориентированных на центральную точку.

Ниже приведен XML-файл спреда:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<idPkg:Spread xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="11.0">
<Spread Self="ud7" FlattenerOverride="Default" AllowPageShuffle="true" ItemTransform="1 0 0 1 0 2060.784" ShowMasterItems="true" PageCount="2" BindingLocation="1" PageTransitionType="None" PageTransitionDirection="NotApplicable" PageTransitionDuration="Medium">
    <FlattenerPreference LineArtAndTextResolution="300" GradientAndMeshResolution="150" ClipComplexRegions="false" ConvertAllStrokesToOutlines="false" ConvertAllTextToOutlines="false">
        <Properties>
            <RasterVectorBalance type="double">50</RasterVectorBalance>
        </Properties>
    </FlattenerPreference>
    <Page Self="u10f" AppliedAlternateLayout="ucd" LayoutRule="UseMaster" SnapshotBlendingMode="IgnoreLayoutSnapshots" OptionalPage="false" GeometricBounds="0 0 850.392 850.392" ItemTransform="1 0 0 1 -850.392 -425.196" Name="4" AppliedTrapPreset="TrapPreset/$ID/kDefaultTrapStyleName" OverrideList="" AppliedMaster="uce" MasterPageTransform="1 0 0 1 238.39200000000002 29.196000000000023" TabOrder="" GridStartingPoint="TopOutside" UseMasterGrid="false">
        <Properties>
            <Descriptor type="list">
                <ListItem type="string"></ListItem>
                <ListItem type="enumeration">Arabic</ListItem>
                <ListItem type="boolean">true</ListItem>
                <ListItem type="boolean">false</ListItem>
                <ListItem type="long">4</ListItem>
                <ListItem type="string"></ListItem>
            </Descriptor>
            <PageColor type="enumeration">UseMasterColor</PageColor>
        </Properties>
        <MarginPreference ColumnCount="1" ColumnGutter="12" Top="8.5032" Bottom="8.5032" Left="8.5032" Right="8.5032" ColumnDirection="Horizontal" ColumnsPositions="0 833.3856000000001" />
        <GridDataInformation FontStyle="Regular" PointSize="12" CharacterAki="0" LineAki="9" HorizontalScale="100" VerticalScale="100" LineAlignment="LeftOrTopLineJustify" GridAlignment="AlignEmCenter" CharacterAlignment="AlignEmCenter">
            <Properties>
                <AppliedFont type="string">Minion Pro</AppliedFont>
            </Properties>
        </GridDataInformation>
    </Page>
    <Page Self="u110" AppliedAlternateLayout="ucd" LayoutRule="UseMaster" SnapshotBlendingMode="IgnoreLayoutSnapshots" OptionalPage="false" GeometricBounds="0 0 850.392 850.392" ItemTransform="1 0 0 1 0 -425.196" Name="5" AppliedTrapPreset="TrapPreset/$ID/kDefaultTrapStyleName" OverrideList="" AppliedMaster="uce" MasterPageTransform="1 0 0 1 0 29.196000000000023" TabOrder="" GridStartingPoint="TopOutside" UseMasterGrid="false">
        <Properties>
            <Descriptor type="list">
                <ListItem type="string"></ListItem>
                <ListItem type="enumeration">Arabic</ListItem>
                <ListItem type="boolean">true</ListItem>
                <ListItem type="boolean">false</ListItem>
                <ListItem type="long">5</ListItem>
                <ListItem type="string"></ListItem>
            </Descriptor>
            <PageColor type="enumeration">UseMasterColor</PageColor>
        </Properties>
        <MarginPreference ColumnCount="1" ColumnGutter="12" Top="8.5032" Bottom="8.5032" Left="8.5032" Right="8.5032" ColumnDirection="Horizontal" ColumnsPositions="0 833.3856000000001" />
        <GridDataInformation FontStyle="Regular" PointSize="12" CharacterAki="0" LineAki="9" HorizontalScale="100" VerticalScale="100" LineAlignment="LeftOrTopLineJustify" GridAlignment="AlignEmCenter" CharacterAlignment="AlignEmCenter">
            <Properties>
                <AppliedFont type="string">Minion Pro</AppliedFont>
            </Properties>
        </GridDataInformation>
    </Page>
    <Rectangle Self="u209" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="1 0 0 1 135.1960000000007 -2051.9999999999995">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
    <Rectangle Self="u20a" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="0.7071067811865476 -0.7071067811865476 0.7071067811865476 0.7071067811865476 -1479.9221316721032 -1847.240098317487">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
    <Rectangle Self="u20b" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="0 -1 1 0 -2477.196 -560.392">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
    <Rectangle Self="u20c" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="-0.7071067811865476 -0.7071067811865476 0.7071067811865476 -0.7071067811865476 -2272.4360983174865 1054.7261316721044">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
    <Rectangle Self="u20d" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="1 0 0 1 985.5880000000008 -2051.9999999999995">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
    <Rectangle Self="u20e" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="0.7071067811865476 -0.7071067811865476 0.7071067811865476 0.7071067811865476 -629.5301316721034 -1847.2400983174869">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
    <Rectangle Self="u20f" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="0 -1 1 0 -1626.804 -560.392">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
    <Rectangle Self="u210" ContentType="Unassigned" StoryTitle="$ID/" ParentInterfaceChangeCount="" TargetInterfaceChangeCount="" LastUpdatedInterfaceChangeCount="" OverriddenPageItemProps="" HorizontalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" VerticalLayoutConstraints="FlexibleDimension FixedDimension FlexibleDimension" GradientFillStart="0 0" GradientFillLength="0" GradientFillAngle="0" GradientStrokeStart="0 0" GradientStrokeLength="0" GradientStrokeAngle="0" ItemLayer="u135" Locked="false" LocalDisplaySetting="Default" GradientFillHiliteLength="0" GradientFillHiliteAngle="0" GradientStrokeHiliteLength="0" GradientStrokeHiliteAngle="0" AppliedObjectStyle="ObjectStyle/$ID/[Normal Graphics Frame]" Visible="true" Name="$ID/" ItemTransform="-0.7071067811865476 -0.7071067811865476 0.7071067811865476 -0.7071067811865476 -1422.0440983174867 1054.726131672103">
        <Properties>
            <PathGeometry>
                <GeometryPathType PathOpen="false">
                    <PathPointArray>
                        <PathPointType Anchor="-609.892 1702.5" LeftDirection="-609.892 1702.5" RightDirection="-609.892 1702.5" />
                        <PathPointType Anchor="-609.892 2401.5" LeftDirection="-609.892 2401.5" RightDirection="-609.892 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 2401.5" LeftDirection="-510.89200000000005 2401.5" RightDirection="-510.89200000000005 2401.5" />
                        <PathPointType Anchor="-510.89200000000005 1702.5" LeftDirection="-510.89200000000005 1702.5" RightDirection="-510.89200000000005 1702.5" />
                    </PathPointArray>
                </GeometryPathType>
            </PathGeometry>
        </Properties>
        <TextWrapPreference Inverse="false" ApplyToMasterPageOnly="false" TextWrapSide="BothSides" TextWrapMode="None">
            <Properties>
                <TextWrapOffset Top="0" Left="0" Bottom="0" Right="0" />
            </Properties>
        </TextWrapPreference>
        <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false" />
        <FrameFittingOption AutoFit="false" LeftCrop="0" TopCrop="0" RightCrop="0" BottomCrop="0" FittingOnEmptyFrame="None" FittingAlignment="CenterAnchor" />
        <ObjectExportOption EpubType="$ID/" SizeType="DefaultSize" CustomSize="$ID/" PreserveAppearanceFromLayout="PreserveAppearanceDefault" AltTextSourceType="SourceXMLStructure" ActualTextSourceType="SourceXMLStructure" CustomAltText="$ID/" CustomActualText="$ID/" ApplyTagType="TagFromStructure" ImageConversionType="JPEG" ImageExportResolution="Ppi300" GIFOptionsPalette="AdaptivePalette" GIFOptionsInterlaced="true" JPEGOptionsQuality="High" JPEGOptionsFormat="BaselineEncoding" ImageAlignment="AlignLeft" ImageSpaceBefore="0" ImageSpaceAfter="0" UseImagePageBreak="false" ImagePageBreak="PageBreakBefore" CustomImageAlignment="false" SpaceUnit="CssPixel" CustomLayout="false" CustomLayoutType="AlignmentAndSpacing">
            <Properties>
                <AltMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
                <ActualMetadataProperty NamespacePrefix="$ID/" PropertyPath="$ID/" />
            </Properties>
        </ObjectExportOption>
    </Rectangle>
</Spread>
</idPkg:Spread>

В InDesign это выглядит так: введите здесь описание изображенияКто-нибудь может объяснить, как получить два набора из 4 одинаковых координаты центральной точки из всего этого бардака?


person Igor K.    schedule 08.07.2015    source источник


Ответы (1)


Я предполагаю, что PathPointTypes в PathPointArray выражают координаты объекта в его внутреннем координатном пространстве (независимо от преобразований). Затем для воздействия на объект будет использоваться атрибут ItemTransform="-0.7071067811865476 -0.7071067811865476 0.7071067811865476 -0.7071067811865476 -1422.0440983174867 1054.726131672103" на верхнем слое. Итак, плохая новость здесь заключается в том, что вам придется освоить вычисление матриц преобразования, чтобы получить окончательные координаты элемента страницы в координатах разворота, учитывая, что разворот не был повернут/перекошен. В противном случае вам придется выполнить второй набор вычислений.

person Loic    schedule 09.07.2015
comment
Развороты не модифицируются (компенсацию смещения разворота я уже делаю, так как документ многоразовый). Проблема, с которой я здесь сталкиваюсь, ЯВЛЯЕТСЯ фактическим вычислением - я пытался применить матрицу преобразования к объектам, но все повернутые объекты, кажется, дико скачут по странице. У меня нет проблем с несколькими наборами вычислений, при условии, что они выполняют свою работу. Я просто не могу понять, КАК правильно выполнять вычисления. - person Igor K.; 09.07.2015