-
1. Re: Print specific page of the form (XDP) and hide rest of pages
Steve L Walker May 15, 2009 9:25 AM (in response to jsriram)With data binding the presence of data can determine the presence of subforms so there is no need to hide pages. The mistake I make about 99% of the time is to forget to save the form as a dynamic PDF before testing in Preview. The attached is a simple example of how binding drives the presence of subforms in the rendering. Note that the XML used in the Preview has "page2" commented out so the page 2 does not render in the PDF.
<?xml version="1.0" encoding="UTF-8"?>
<form1>
<page1>
<subform1>
<name1>Larry</name1>
</subform1>
</page1>
<!--
<page2>
<subform1>
<name2>Curly</name2>
</subform1>
</page2>
-->
<page3>
<subform1>
<name3>Moe</name3>
</subform1>
</page3>
</form1>Steve
-
TypicalDataBinding_data.xml 291 bytes
-
TypicalDataBinding.pdf 78.0 K
-
-
2. Re: Print specific page of the form (XDP) and hide rest of pages
jsriram May 16, 2009 3:28 AM (in response to Steve L Walker)Hi Steve,
Thanks for your response.
I used to send the XML data for any one page of the form. Your suggestion can applicable if i know the total pages of the form prior to the XML data creation. Since i do not know how many pages there in the form, how to restrict to print the 'no' data form.
Like,
Form XDP having 'Page_1' to 'Page_9'
Since i don't know the total pages of the form, i used to send XML data like,
<?xml version="1.0" encoding="UTF-8"?>
<form1>
<page_2>
<subform1>
<name1>Larry</name1>
</subform1>
</page_2>
</form1>In this case, the page_2 of the form should be printed and rest should not.
Help me.
Regards,
Sasi


