<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Re[2]: [xep-support] Pagination problem.</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Thanks Michael. Approach based on post-processing of XEP intermediate format worked.</FONT>
</P>
<BR>

<P><FONT SIZE=2>Thanks,</FONT>
<BR><FONT SIZE=2>Anshul</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Michael Sulyaev [<A HREF="mailto:msulyaev@renderx.com">mailto:msulyaev@renderx.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Wednesday, February 16, 2005 2:38 AM</FONT>
<BR><FONT SIZE=2>To: Katoch, Anshul</FONT>
<BR><FONT SIZE=2>Subject: Re[2]: [xep-support] Pagination problem.</FONT>
</P>

<P><FONT SIZE=2>Hello, Anshul.</FONT>
</P>

<P><FONT SIZE=2>&gt; I didn't get any response for the problem stated below. If there</FONT>
<BR><FONT SIZE=2>&gt; is no possible method in the renderx which supports this problem,</FONT>
<BR><FONT SIZE=2>&gt; can you suggest some PDF text editing tool? We need to add some</FONT>
<BR><FONT SIZE=2>&gt; blank pages and insert some pages in the generated PDF.</FONT>
</P>

<P><FONT SIZE=2>XSL-FO does not provide any means to implement pagination logic you</FONT>
<BR><FONT SIZE=2>described.</FONT>
</P>

<P><FONT SIZE=2>If you need to publish just one document, it would probably be easier</FONT>
<BR><FONT SIZE=2>to do with Adobe Acrobat, which allows to insert pages in PDF document</FONT>
<BR><FONT SIZE=2>and split documents.</FONT>
</P>

<P><FONT SIZE=2>Otherwise, if you are trying to build a system which would publish</FONT>
<BR><FONT SIZE=2>different documents, there is an approach based on post-processing</FONT>
<BR><FONT SIZE=2>of XEP intermediate format (XEPOUT). Write XSLT to split document into</FONT>
<BR><FONT SIZE=2>parts according to the rules you specified, change page numbers,</FONT>
<BR><FONT SIZE=2>insert pages, and bind parts together. This approach has a drawback:</FONT>
<BR><FONT SIZE=2>if you have any fo:page-number-citations, these references will be</FONT>
<BR><FONT SIZE=2>broken after inserting blank pages. This can hardly be fixed</FONT>
<BR><FONT SIZE=2>automatically.</FONT>
</P>

<P><FONT SIZE=2>&gt; We have the following requirements. We are using renderx for transformation.</FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; ********************************************************************</FONT>
<BR><FONT SIZE=2>&gt; Publication will be broken into volumes if the publication exceeds 320 pages.</FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; The publication is printed as a series of &quot;signatures&quot; on a web</FONT>
<BR><FONT SIZE=2>&gt; press. A signature (sig) is 32 pages. The signatures are collected</FONT>
<BR><FONT SIZE=2>&gt; and bound together to create a volume.</FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; The following rules apply when dividing a publication into volumes:</FONT>
<BR><FONT SIZE=2>&gt; 1.      The maximum number of signatures that can be bound</FONT>
<BR><FONT SIZE=2>&gt; together by the equipment at OSP is 10.  Therefore, the maximum</FONT>
<BR><FONT SIZE=2>&gt; number of pages in one volume of the publication is 320 (10 sigs *</FONT>
<BR><FONT SIZE=2>&gt; 32 pages per sig).</FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; 2.      The number of signatures per volume must be &quot;balanced&quot;. </FONT>
<BR><FONT SIZE=2>&gt; That is, if a publication requires 26 sigs, the sigs should be split</FONT>
<BR><FONT SIZE=2>&gt; as equally as possible among the volumes with the first, second, and</FONT>
<BR><FONT SIZE=2>&gt; third volumes containing 9, 9, and 8 sigs, respectively.</FONT>
</P>

<P><FONT SIZE=2>&gt; 3. The very last signature of a publication may contain 16 pages.</FONT>
</P>

<P><FONT SIZE=2>&gt; 4. A blank page is added to the end of each volume except the</FONT>
<BR><FONT SIZE=2>&gt; last volume.  The blank pages are included in the publication's</FONT>
<BR><FONT SIZE=2>&gt; total page count.  A static calendar should be displayed on the end</FONT>
<BR><FONT SIZE=2>&gt; page.   If total pages are 16 then blank pages should be inserted</FONT>
<BR><FONT SIZE=2>&gt; till 31 and 32nd page should be a calendar.</FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; ********************************************************************</FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; Any idea how to handle this pagination logic.</FONT>
</P>

<P><FONT SIZE=2>&gt; Thanks,</FONT>
<BR><FONT SIZE=2>&gt; Anshul Katoch</FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;  </FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&nbsp; </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; </FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Best regards,</FONT>
<BR><FONT SIZE=2>&nbsp;Michael Sulyaev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="mailto:msulyaev@renderx.com">mailto:msulyaev@renderx.com</A></FONT>
<BR><FONT SIZE=2>RenderX</FONT>
</P>
<BR>

<P><FONT SIZE=2>-------------------</FONT>
<BR><FONT SIZE=2>(*) To unsubscribe, send a message with words 'unsubscribe xep-support'</FONT>
<BR><FONT SIZE=2>in the body of the message to majordomo@renderx.com from the address</FONT>
<BR><FONT SIZE=2>you are subscribed from.</FONT>
<BR><FONT SIZE=2>(*) By using the Service, you expressly agree to these Terms of Service <A HREF="http://www.renderx.com/tos.html" TARGET="_blank">http://www.renderx.com/tos.html</A></FONT>
</P>

</BODY>
</HTML>