读IDML协调地狱

时间:2015-07-08 14:40:54

标签: xml adobe coordinates coordinate-transformation 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中,它看起来像这样: enter image description here 有谁可以请解释如何从这一切混乱中获得两组4个相同的中心点坐标?

1 个答案:

答案 0 :(得分:0)

我猜PathPointArray中的PathPointTypes表示对象在其内部坐标空间中的坐标(转换是独立的)。然后,属性ItemTransform =“ - 0.7071067811865476 -0.7071067811865476 0.7071067811865865476 -0.7071067811865476 -1422.0440983174867 1054.726131672103”将用于影响上层的对象几何。 因此,这里的坏消息是,您必须掌握转换矩阵计算,以便在展开坐标中获得页面项的最终坐标,因为展开幅度尚未旋转/倾斜。 否则你将有第二组计算来实现。