0

我创建了一个包 idml 并将其无错误地导入 InDesign。

它包含背景故事和相关图像。它们之前都没有被放入文档/布局中。

导入完成后什么都没有出现。

这是预期的行为吗?

应该出现背景故事吗?如果不出现,我该如何放置它们?

我试图获得一个验证工具并在 Adob​​e 论坛上询问。我已经请求 Adob​​e 提供有偿支持,但最终还是要等上几周才能找到可以帮助我的人。

感谢您的回复!

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-

mimetype 文件内容 application/vnd.adobe.indesign-idml-package

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-

-

-

-

- 标题:Bannana,排名:5.5,字数:12,照片:4 标题名称这里内容1 标题名称这里内容2

<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-

-

-

-

标题:标题HL 2,排名:5.4,字数:12,照片:0 内容在这里

4

3 回答 3

1

在 Adob​​e 技术合作伙伴的帮助下,我找到了问题的答案。

我有一种工作方式来动态生成带有图片的 IDML。

IDML 是一个包含其他文件的 zip 文件。这是一个工作 IDML 文件(结构)的简单示例。

.idml(压缩)文件中的第一个文件名为:mimetype

它必须包含:application/vnd.adobe.indesign-idml-package

.idml(压缩)文件中的下一个文件名为:designmap.xml

下面是一个有效的 designmap.xml 文件示例:

<?xml version="1.0" encoding="utf-8"?><?aid style="50" type="document" readerVersion="6.0" featureSet="257"?>
<Document xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0" Self="d">
<idPkg:Spread src="Spreads/Spread_2176.xml"/>
<idPkg:Story src="Stories/Story_2214.xml"/>
<idPkg:Story src="Stories/Story_2176.xml"/>
<idPkg:Story src="Stories/Story_asset_230.xml"/>
<idPkg:Story src="Stories/Story_asset_231.xml"/>
</Document>

接下来在本例中,.idml(压缩)是两个文件夹:Spreads Stories

在此示例中,Spreads 文件夹包含一个 Spread_2227.xml 文档。以下是 Spread_2227.xml 的内容:

<?xml version="1.0" encoding="utf-8"?>
<idPkg:Spread xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0">
    <Spread Self="spread_2214" PageCount="1" BindingLocation="0" >
        <Page Self="Page_1" GeometricBounds="0 0 792 559" Name="headline for this story" >
            <TextFrame Self="textframe_2214" ParentStory="story_2214" ContentType="TextType" >
                <Properties>
                    <PathGeometry>
                        <GeometryPathType PathOpen="false">
                            <PathPointArray>
                                <PathPoint Anchor="41 41" LeftDirection="41 41" RightDirection="41 41"/>
                                <PathPoint Anchor="41 191" LeftDirection="41 191" RightDirection="41 191"/>
                                <PathPoint Anchor="559 191" LeftDirection="559 191" RightDirection="559 191"/>
                                <PathPoint Anchor="559  41" LeftDirection="559  41" RightDirection="559  41"/>
                            </PathPointArray>
                        </GeometryPathType>
                    </PathGeometry>
                </Properties>
            </TextFrame>
        </Page>
    </Spread>
    <Spread Self="spread_2176" PageCount="1" BindingLocation="0" >
        <Page Self="Page_2" GeometricBounds="0 0 792 559" Name="headline of story 2176" >
            <TextFrame Self="textframe_2176" ParentStory="story_2176" ContentType="TextType" >
                <Properties>
                    <PathGeometry>
                        <GeometryPathType PathOpen="false">
                            <PathPointArray>
                                <PathPoint Anchor="41 41" LeftDirection="41 41" RightDirection="41 41"/>
                                <PathPoint Anchor="41 191" LeftDirection="41 191" RightDirection="41 191"/>
                                <PathPoint Anchor="559 191" LeftDirection="559 191" RightDirection="559 191"/>
                                <PathPoint Anchor="559  41" LeftDirection="559  41" RightDirection="559  41"/>
                            </PathPointArray>
                        </GeometryPathType>
                    </PathGeometry>
                </Properties>
            </TextFrame>
        </Page>
    </Spread>
</idPkg:Spread>

在此示例中,Stories 文件夹包含 xml 文档。Story_2176.xml, Story_2214.xml,Story_asset_231.xml, Story_asset_230.xml 这里是 Stories 文件夹的内容: Headline: 故事 2176 的标题, rank: null, word count: 5, photos: 0

body content of this story.</Content>
   </Story>
</idPkg:Story>



    <?xml version="1.0" encoding="utf-8"?>
<idPkg:Story xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0">
   <Story Self="story_2176">
      <Content>Headline: headline of story 2176, rank: null, word count: 5, photos: 0

body content of this story.</Content>
   </Story>
</idPkg:Story>


    <?xml version="1.0" encoding="utf-8"?>
<idPkg:Story xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0">
   <Story Self="cutline_231">
      <Content>002</Content>
   </Story>
</idPkg:Story>


    <?xml version="1.0" encoding="utf-8"?>
<idPkg:Story xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0">
   <Story Self="cutline_230">
      <Content>013</Content>
   </Story>
</idPkg:Story>
于 2015-10-05T21:28:28.180 回答
0

我想发布这个问题的答案,因为我是提出这个问题的人。支持故事是错误的方式。我将为她提供一个有效的 IDML 文件,它只不过是一个重命名为 IDML 的 zip 文件。

IDML 文件中的第一个文件必须命名为:MIMETYPE,并且必须包含:“application/vnd.adobe.indesign-idml-package”

我的应用程序中的第二个文件是 designmap.xml,它包含对我的单个传播和该传播中的每个故事的引用。这是一个例子:

<?xml version="1.0" encoding="utf-8"?><?aid style="50" type="document" readerVersion="6.0" featureSet="257"?>
<Document xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0" Self="d">
<idPkg:Spread src="Spreads/Spread_2868.xml"/>
<idPkg:Story src="Stories/Story_2596.xml"/>
<idPkg:Story src="Stories/Story_2597.xml"/>
<idPkg:Story src="Stories/Story_2599.xml"/>
<idPkg:Story src="Stories/Story_2601.xml"/>
<idPkg:Story src="Stories/Story_2642.xml"/>
<idPkg:Story src="Stories/Story_asset_1019.xml"/>
<idPkg:Story src="Stories/Story_asset_985.xml"/>
</Document>

IDML 中的下一项是名为Spreads 的文件夹,在我的应用程序中它包含一个Spread_nnnn.xml 文件,因为我的应用程序只使用一个spreads。我缩短的 Spread_nnnn.xml 文件如下所示:

<?xml version="1.0" encoding="utf-8"?>
<idPkg:Spread xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0">
<Spread Self="spread_2596" PageCount="1" BindingLocation="0" >
<Page Self="Page_1" GeometricBounds="0 0 792 559" Name="2016 focus on public safety" >
<TextFrame Self="textframe_2596" ParentStory="story_2596" ContentType="TextType" >
<Properties>
<PathGeometry>
<GeometryPathType PathOpen="false">
<PathPointArray>
<PathPoint Anchor="41 41" LeftDirection="41 41" RightDirection="41 41"/>
<PathPoint Anchor="41 191" LeftDirection="41 191" RightDirection="41 191"/>
<PathPoint Anchor="559 191" LeftDirection="559 191" RightDirection="559 191"/>
<PathPoint Anchor="559  41" LeftDirection="559  41" RightDirection="559  41"/>
</PathPointArray>
</GeometryPathType>
</PathGeometry>
</Properties>
</TextFrame>
</Page>
</Spread>
<Spread Self="spread_2597" PageCount="1" BindingLocation="0" >
<Page Self="Page_2" GeometricBounds="0 0 792 559" Name="Cummings makes move south" >
<TextFrame Self="textframe_2597" ParentStory="story_2597" ContentType="TextType" >
<Properties>
<PathGeometry>
<GeometryPathType PathOpen="false">
<PathPointArray>
<PathPoint Anchor="41 41" LeftDirection="41 41" RightDirection="41 41"/>
<PathPoint Anchor="41 191" LeftDirection="41 191" RightDirection="41 191"/>
<PathPoint Anchor="559 191" LeftDirection="559 191" RightDirection="559 191"/>
<PathPoint Anchor="559  41" LeftDirection="559  41" RightDirection="559  41"/>
</PathPointArray>
</GeometryPathType>
</PathGeometry>
</Properties>
</TextFrame>
<TextFrame Self="thisCutline_1019" ParentStory="cutline_1019" ContentType="TextType" ItemTransform="1 0 0 1 41 -196">
<Properties>
<PathGeometry>
<GeometryPathType PathOpen="false">
<PathPointArray>
<PathPoint Anchor="0 0" LeftDirection="0 0" RightDirection="0 0"/>
<PathPoint Anchor="0 15" LeftDirection="0 15" RightDirection="0 15"/>
<PathPoint Anchor="107.78947368421052 15" LeftDirection="107.78947368421052 15" RightDirection="107.78947368421052 15"/>
<PathPoint Anchor="107.78947368421052  0" LeftDirection="107.78947368421052  0" RightDirection="107.78947368421052  0"/>
</PathPointArray>
</GeometryPathType>
</PathGeometry>
</Properties>
</TextFrame>
<Rectangle Self="rectangle_1019" StrokeWeight="0" ContentType="GraphicType" Visible="true" ItemTransform="1 0 0 1 41 -180">
<Properties>
<PathGeometry>
<GeometryPath PathOpen="false">
<PathPointArray>
<PathPoint Anchor="0 0" LeftDirection="0 0" RightDirection="0 0"/>
<PathPoint Anchor="0 71.84210526315789" LeftDirection="0 71.84210526315789" RightDirection="0 71.84210526315789"/>
<PathPoint Anchor="107.78947368421052 71.84210526315789" LeftDirection="107.78947368421052 71.84210526315789" RightDirection="107.78947368421052 71.84210526315789"/>
<PathPoint Anchor="107.78947368421052 0" LeftDirection="107.78947368421052 0" RightDirection="107.78947368421052 0"/>
</PathPointArray>
</GeometryPath>
</PathGeometry>
</Properties>
<Image Self="image_1019" ImageTypeName="$ID/JPEG" Visible="true" Name="$ID/c_Chief_Engineering_John_Cummings_family_1019.jpg">
<Link Self="ucc" LinkResourceURI="file://~/Downloads/Images_for_AMExpress_75_Jan_15_DwW2/c_Chief_Engineering_John_Cummings_family_1019.jpg"/>
</Image>
</Rectangle>
</Page>
</Spread>
<Spread Self="spread_2599" PageCount="1" BindingLocation="0" >
<Page Self="Page_3" GeometricBounds="0 0 792 559" Name="Engineering projects abound in 2015, 2016" >
<TextFrame Self="textframe_2599" ParentStory="story_2599" ContentType="TextType" >
<Properties>
<PathGeometry>
<GeometryPathType PathOpen="false">
<PathPointArray>
<PathPoint Anchor="41 41" LeftDirection="41 41" RightDirection="41 41"/>
<PathPoint Anchor="41 191" LeftDirection="41 191" RightDirection="41 191"/>
<PathPoint Anchor="559 191" LeftDirection="559 191" RightDirection="559 191"/>
<PathPoint Anchor="559  41" LeftDirection="559  41" RightDirection="559  41"/>
</PathPointArray>
</GeometryPathType>
</PathGeometry>
</Properties>
</TextFrame>
</Page>
</Spread>
<Spread Self="spread_2601" PageCount="1" BindingLocation="0" >
<Page Self="Page_4" GeometricBounds="0 0 792 559" Name="Updating the fleet" >
<TextFrame Self="textframe_2601" ParentStory="story_2601" ContentType="TextType" >
<Properties>
<PathGeometry>
<GeometryPathType PathOpen="false">
<PathPointArray>
<PathPoint Anchor="41 41" LeftDirection="41 41" RightDirection="41 41"/>
<PathPoint Anchor="41 191" LeftDirection="41 191" RightDirection="41 191"/>
<PathPoint Anchor="559 191" LeftDirection="559 191" RightDirection="559 191"/>
<PathPoint Anchor="559  41" LeftDirection="559  41" RightDirection="559  41"/>
</PathPointArray>
</GeometryPathType>
</PathGeometry>
</Properties>
</TextFrame>
<TextFrame Self="thisCutline_985" ParentStory="cutline_985" ContentType="TextType" ItemTransform="1 0 0 1 41 -196">
<Properties>
<PathGeometry>
<GeometryPathType PathOpen="false">
<PathPointArray>
<PathPoint Anchor="0 0" LeftDirection="0 0" RightDirection="0 0"/>
<PathPoint Anchor="0 15" LeftDirection="0 15" RightDirection="0 15"/>
<PathPoint Anchor="42.54545454545455 15" LeftDirection="42.54545454545455 15" RightDirection="42.54545454545455 15"/>
<PathPoint Anchor="42.54545454545455  0" LeftDirection="42.54545454545455  0" RightDirection="42.54545454545455  0"/>
</PathPointArray>
</GeometryPathType>
</PathGeometry>
</Properties>
</TextFrame>
<Rectangle Self="rectangle_985" StrokeWeight="0" ContentType="GraphicType" Visible="true" ItemTransform="1 0 0 1 41 -180">
<Properties>
<PathGeometry>
<GeometryPath PathOpen="false">
<PathPointArray>
<PathPoint Anchor="0 0" LeftDirection="0 0" RightDirection="0 0"/>
<PathPoint Anchor="0 22.454545454545453" LeftDirection="0 22.454545454545453" RightDirection="0 22.454545454545453"/>
<PathPoint Anchor="42.54545454545455 22.454545454545453" LeftDirection="42.54545454545455 22.454545454545453" RightDirection="42.54545454545455 22.454545454545453"/>
<PathPoint Anchor="42.54545454545455 0" LeftDirection="42.54545454545455 0" RightDirection="42.54545454545455 0"/>
</PathPointArray>
</GeometryPath>
</PathGeometry>
</Properties>
<Image Self="image_985" ImageTypeName="$ID/JPEG" Visible="true" Name="$ID/c_Tracie_Loredo_new_cars_985.jpg">
<Link Self="ucc" LinkResourceURI="file://~/Downloads/Images_for_AMExpress_75_Jan_15_DwW2/c_Tracie_Loredo_new_cars_985.jpg"/>
</Image>
</Rectangle>
</Page>
</Spread>
</idPkg:Spread>

IDML 文件中的下一项是名为 Stories 的文件夹,其中包含每个故事内容的 Story_nnnn.xml 文件。这是 Story_nnnn.xml 的示例:

<?xml version="1.0" encoding="utf-8"?>
<idPkg:Story xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0">
<Story Self="story_2596">
<Content>Headline: 2016 focus on public safety, rank: , word count: 145, photos: 0
As the news year begins, Employees are committed to keeping safety a priority. He said. &quot;We&#39;re committed to safety.&quot;
</Content>
</Story>
</idPkg:Story>

我这应该是一个完整、有效的 IDML 文件。

我希望在我开始我的项目时能得到这些信息!

于 2016-01-22T03:29:17.740 回答
0

支持故事隐藏在结构窗格中。要放置它们,请显示结构窗格并将其中一个 XML 节点拖到框架中。

如果您的目标是在布局上显示文本和图像,请创建一个布局,该布局的外观与您在 InDesign 中打开 IDML 文件时的外观相同。然后将该布局导出为 IDML 并检查内容。

在这里,您会看到页面上的文本是 Story 文件夹中的 Story_XXX.xml 文件。这是由 Spreads 文件夹中的 Spread_XXX.xml 文件引用的。Spread_XXX.xml 文件还将定义图像和其他对象出现的位置。

于 2015-08-11T20:55:59.030 回答