<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">I have dealt
with that problem before.&nbsp; Usually an iterative approach works.&nbsp; Render
once without links to get pagination, insert links, render again and
see if pagination changed, repeat until pagination does not change.<br>
<br>
I'm not sure XEP completely solves this problem, even with a non-split
document.&nbsp; I noticed that one of my page-citations was placed very far
into the right margin, as if&nbsp; XEP was trying to avoid changing
pagination when the citations are expanded.<br>
<br>
BJB<br>
</font></font><br>
Jost Klopfstein wrote:
<blockquote cite="mid022301c5686a$4617bcb0$0602a8c0@Toshiba" type="cite">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <meta content="MSHTML 6.00.2800.1479" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">Brian,</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">You can extract almost everything
from the XEP intermediate format (SVG drawings seem to be encoded ???).</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">&nbsp;It is a flat&nbsp;XML format, organized
in pages, with x and y coordinate for every element.</font></div>
  <div><font face="Arial" size="2">Details see here <a
 href="http://www.renderx.com/reference.html#appendix_C">http://www.renderx.com/reference.html#appendix_C</a></font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">This approach works fine if you have
a linear workflow:</font></div>
  <div><font face="Arial" size="2">1) process section 1</font></div>
  <div><font face="Arial" size="2">2) process section 2 with starting
page information from previous step</font></div>
  <div><font face="Arial" size="2">3)&nbsp;process next sections</font></div>
  <div><font face="Arial" size="2">...</font></div>
  <div><font face="Arial" size="2">n) extract necessary information for
indexes and TOC from the XEP intermediate format files (based on
rx:pinpoint data)</font></div>
  <div><font face="Arial" size="2">n+1) build TOC</font></div>
  <div><font face="Arial" size="2">n+2) build indexes</font></div>
  <div><font face="Arial" size="2">n+3) assemble book</font></div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">This concept fails with pointers
(references/links) between sections, as you may have to change&nbsp;the
pagination of a previous section while rendering a new section.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">Cheers, Jost</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial">Jost Klopfstein<br>
*Axos Technologies Inc.*<br>
OnDemand &amp; Transactional Document Solutions, powered by XML<br>
IT Consulting<br>
  <br>
*604 628-2248&nbsp; Phone*<br>
604-324-2380&nbsp; Fax<br>
jost (at) axostech.com<br>
  <a class="moz-txt-link-freetext" href="http://www.axostech.com">http://www.axostech.com</a><br>
  </font></div>
  <div>&nbsp;</div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"
 dir="ltr">
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a title="bjbutler@bjbsoftware.com"
 href="mailto:bjbutler@bjbsoftware.com">Brian J. Butler</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a title="xep-support@renderx.com"
 href="mailto:xep-support@renderx.com">xep-support@renderx.com</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Friday, June 03, 2005 10:53 AM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [xep-support] Splitting of large document</div>
    <div><br>
    </div>
    <font size="-1"><font face="Helvetica, Arial, sans-serif">The
biggest memory consumer seems to be the process that compresses the PDF
document.&nbsp; I find that our document requires more than 3GB to process
with this option enabled and less than 1.5GB without it.<br>
    <br>
Try the turning this option off in your xep.xml file as shown below:<br>
    <br>
&nbsp;&nbsp;&nbsp; &lt;!-- Backend options --&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;generator-options format="PDF"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- &lt;option name="COMPRESS" value="false"/&gt; --&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- &lt;option name="PDF_VERSION" value="1.3"/&gt; --&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/generator-options&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
By the way, I have a problem similar to yours. Our 2200 page book is
only one part of a larger catalog.&nbsp; Unfortunately, the other sections
contain references to products in the main section.&nbsp; I had posted some
messages here earlier to see if there is a way to write page numbers
and other data into the XEP log. I thought I would extract the data
with an editor and put it in a database, using it later to look up page
references for the other sections. I don't think this is possible, but
someone suggested looking at the XEP intermediate format.&nbsp; I have not
done this yet.&nbsp; If you look at it and can distill the information I
would like to know how to do it.&nbsp; If I try it first, I will post here.<br>
    <br>
BJB<br>
    </font></font><br>
Jost Klopfstein wrote:
    <blockquote cite="mid013701c4c297$a8f36470$0602a8c0@Toshiba"
 type="cite">
      <pre wrap="">Mike, Brian,

Thanks for your hints.

The document is in the 1000+ pages class with plenty of large SVG drawings
(&gt;500 Kbytes).

I will check with my customer if I can drop the references between chapters.
If so, then I can use the split technology and build the TOC and Indexes
from the separate sections in XEP intermediate format.
Otherwise they have to buy a bigger server...

Does anyone know if there is an option to prevent XEP's in memory
processing?

Cheers, Jost

----- Original Message ----- 
From: "Mike Trotman" <a class="moz-txt-link-rfc2396E"
 href="mailto:mike.trotman@datalucid.com">&lt;mike.trotman@datalucid.com&gt;</a>
To: <a class="moz-txt-link-rfc2396E"
 href="mailto:xep-support@renderx.com">&lt;xep-support@renderx.com&gt;</a>
Sent: Friday, June 03, 2005 3:05 AM
Subject: Re: [xep-support] Splitting of large document


  </pre>
      <blockquote type="cite">
        <pre wrap="">I have successfully processed 100mB+ documents of 1000+ pages - mainly
consisting of heavily formatted tables with 15 x 20 cells per page,
multiple pages per table, lots of data per cell, footnotes etc.
This included bookmarks and a simple Table Of Contents with internal
links to individual tables.

By placing each table / document chunk within a separate
&lt;fo:page-sequence&gt; I was able to keep the memory requirements very low
(not much more than the default).
I'm now also using XSLT pre-processing where I produce each
&lt;fo:page-sequence&gt; in a separate XSL-FO file and generate  a master
processing document which sets up regions and page masters
and contains a list of the separate &lt;fo:page-sequence&gt; files to include.
I then process this master list with a simple XSLT to produce the final
FO for output to PDF.

I haven't used indexes (the TOC references etc. are constructed by the
XSLT) - so don't know what sort of overhead this produces.


Mike

Brian J. Butler wrote:

    </pre>
        <blockquote type="cite">
          <pre wrap="">I have also been working on a very large document (88MB FO file, 2200
pages of technical text and drawings). I can offer the following three
suggestions:

1. Make sure your Java -Xmx size is as large as possible.  With
Windows this will be approximately -Xmx1600Mb.
2. Use the XEP flag to turn off PDF compression (in xep.xml or command
line).  This will result in a very large PDF, but you can compress it
after rendering by opening it in Adobe Acrobat and then saving.
3. Switch to a 64-bit Solaris platform (Opteron processors).  We
benchmarked one of these machines and found that we can -Xmx almost
unlimited memory.  The speed is also very fast.

BJB

Jost Klopfstein wrote:

      </pre>
          <blockquote type="cite">
            <pre wrap="">Hi,

I ran into memory problems while rendering a large book with TOC,
indexes and references between sections.
I first thought I could just render section by section into XEP
intermediate format and then assemble the pieces with some custom
code into a large PDF using the PDF output generator.
However I will loose the TOC, indexes and the references between
sections.

Any ideas?

Thanks,
Jost

        </pre>
          </blockquote>
        </blockquote>
        <blockquote type="cite">
          <pre wrap="">------------------------------------------------------------------------
      </pre>
          <blockquote type="cite">
            <pre wrap="">Jost Klopfstein
*Axos Technologies Inc.*
OnDemand &amp; Transactional Document Solutions, powered by XML
IT Consulting

*604 628-2248  Phone*
604-324-2380  Fax
jost (at) axostech.com
<a class="moz-txt-link-freetext" href="http://www.axostech.com">http://www.axostech.com</a>
        </pre>
          </blockquote>
          <pre wrap="">-- 
Brian J. Butler
BJB Software, Inc.
76 Bayberry Lane
Holliston, MA 01746

E-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:bjbutler@bjbsoftware.com">bjbutler@bjbsoftware.com</a>
Web:    <a class="moz-txt-link-freetext"
 href="http://www.bjbsoftware.com">http://www.bjbsoftware.com</a>
Phone:  508-429-1441
Fax:    419-710-1867



      </pre>
        </blockquote>
        <pre wrap="">
-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.5.2 - Release Date: 03/06/2005


Message Scanned by ClamAV on datalucid.com
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to <a class="moz-txt-link-abbreviated"
 href="mailto:majordomo@renderx.com">majordomo@renderx.com</a> from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
    </pre>
      </blockquote>
      <pre wrap=""><!----><a class="moz-txt-link-freetext"
 href="http://www.renderx.com/terms-of-service.html">http://www.renderx.com/terms-of-service.html</a>
  </pre>
      <blockquote type="cite">
        <pre wrap="">    </pre>
      </blockquote>
      <pre wrap=""><!---->
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to <a class="moz-txt-link-abbreviated"
 href="mailto:majordomo@renderx.com">majordomo@renderx.com</a> from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service <a
 class="moz-txt-link-freetext"
 href="http://www.renderx.com/terms-of-service.html">http://www.renderx.com/terms-of-service.html</a>



  </pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Brian J. Butler
BJB Software, Inc.
76 Bayberry Lane
Holliston, MA 01746

E-mail: <a class="moz-txt-link-abbreviated"
 href="mailto:bjbutler@bjbsoftware.com">bjbutler@bjbsoftware.com</a>
Web:    <a class="moz-txt-link-freetext"
 href="http://www.bjbsoftware.com">http://www.bjbsoftware.com</a>
Phone:  508-429-1441
Fax:    419-710-1867

    </pre>
  </blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Brian J. Butler
BJB Software, Inc.
76 Bayberry Lane
Holliston, MA 01746

E-mail: <a class="moz-txt-link-abbreviated" href="mailto:bjbutler@bjbsoftware.com">bjbutler@bjbsoftware.com</a>
Web:    <a class="moz-txt-link-freetext" href="http://www.bjbsoftware.com">http://www.bjbsoftware.com</a>
Phone:  508-429-1441
Fax:    419-710-1867

</pre>
</body>
</html>