首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >读取IDML坐标地狱

读取IDML坐标地狱
EN

Stack Overflow用户
提问于 2015-07-08 22:40:54
回答 1查看 413关注 0票数 2

我正在尝试解析一个包含几个矩形的IDML传播,总共8个。矩形从一个原始矩形复制粘贴,旋转并定位在跨页上。

在IDML文件中,所有矩形看起来都有相同的原点,只是每个元素的变换不同。我正在试图弄清楚如何将整个嵌套的噩梦转换为一组整齐的中心点定向坐标和维度。

下面是扩展XML:

代码语言:javascript
复制
<?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个相同的中心点坐标?

EN

回答 1

Stack Overflow用户

发布于 2015-07-09 15:37:08

我猜测PathPointArray中的PathPointTypes表示对象在其内部坐标空间中的坐标(独立于变换)。然后,属性ItemTransform="-0.7071067811865476 -0.7071067811865476 0.7071067811865476 -0.7071067811865476 -1422.0440983174867 1054.726131672103“将用于影响上层上的对象几何体。因此,这里的坏消息是,假设跨页也没有旋转/倾斜,那么您必须掌握转换矩阵的计算,以获得跨页坐标中的页面项目的最终坐标。否则,您将需要完成第二组计算。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31295986

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档