Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Why does <keep intact="contentArea"/> behave as <keep intact="none"/>?

Avatar

Level 1

Hi,

I'm trying to understand the logics of subforms splitting implemented in Acrobat Reader. Some of my experiments go in contadiction with XFA spec v3.1. For instance, I wonder why keep intact="contentArea" behaves as keep intact="none".

Here's an axample of code (both template and dataset description):

<template xmlns="http://www.xfa.org/schema/xfa-template/2.6/">

<subform layout="tb" locale="en_US" name="inventories">

  <pageSet>

   <pageArea id="Page1" name="Page1">

    <contentArea h="576pt" w="756pt"></contentArea>

    <medium long="792pt" orientation="landscape" short="612pt"></medium>

   </pageArea>

  </pageSet>

  <subform layout="tb" w="756pt" name="a">

   <subform layout="tb" name="inventory" w="263.35mm">

    <subform w="260.7mm">

     <occur max="-1"></occur>

     <field access="protected" h="123.85mm" w="260.446mm">

      <font size="9pt" typeface="Courier New"></font>

      <bind match="dataRef" ref="$.pages.page[*]"></bind>

     </field>

    </subform>

   </subform>

   <keep intact="contentArea"></keep>

  </subform>

</subform>

</template>

<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">

<xfa:data>

  <inventories>

   <inventory>

    <pages>

     <page>PAGE 1</page>

     <page>PAGE 2</page>

     <page>PAGE 3</page>

    </pages>

   </inventory>

  </inventories>

</xfa:data>

<dd:dataDescription dd:name="inventories" xmlns:dd="http://ns.adobe.com/data-description/">

  <inventories>

   <inventory dd:maxOccur="-1">

    <pages>

     <page dd:maxOccur="-1"></page>

    </pages>

   </inventory>

  </inventories>

</dd:dataDescription>

</xfa:datasets>

From the code above it is clear that subform "a" should not be splitted into different content areas. However, Acrobat Reader creates 1 page per each "page" in dataset.

Source PDF file is here: http://dl.dropbox.com/u/80851334/keep-intact.pdf

Kind Regards,

Alexander

0 Replies