On 10/27/2011 02:48 PM, Gilles Gosuin wrote:
> Unfortunately, this method does not work when you have multiple flows.

I think I understand: you need the *absolute* total page count of your 
document.


>
> I read the customisation FAQ many times, but found no way of linking
> Java code (the whole Docbook to XSL-FO to PDF 2-pass transformation as
> shown in the link I included in my previous email) to a conversion
> menu item. I guess regular commands are not intended for such
> purposes, are they ?

I don't know if this can help but the <invoke> child element of a 
<process> command can be used to invoke an arbitrary static method 
written in Java.

See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/invoke.html

Moreover macro-variables may be used to pass useful information to this 
static method.

See 
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process_variables.html

The code of this static method must be found in a .jar files, itself 
found anywhere inside the 2 addons/ directories scanned by XMLmind XML 
Editor during its startup.

See 
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/lookup_phase.html

Please do not forget to disable the quick start cache while you are 
developing this kind of customization.

See 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/advancedOptions.html#cacheOptions



>
> On Thu, Oct 27, 2011 at 9:53 AM, Hussein Shafie<[email protected]>  wrote:
>>> I'm trying to use XXE to generate PDFs from DocBook documents and
>>> include the total page count in the output document, but cannot find
>>> an easy way to do so, even through customisation. Manually, it is
>>> possible using the 2-pass technique described here :
>>> http://xmlgraphics.apache.org/fop/fo.html#fo-total-pages
>>
>> How implement this whatever the XSL-FO processor being used is described
>> here:
>>
>> http://www.sagehill.net/docbookxsl/PrintHeaders.html#PageNumbering
>>
>> Look for "Page x of y numbering".
>>
>>
>>
>>>
>>> Is there a way to integrate this workaround in XXE conversion workflow ?
>>
>> Please refer to this FAQ:
>>
>> ---
>> How do I customize the HTML, PDF, RTF, etc, generated using the "Convert
>> Document" menu?
>> ---
>>
>> http://www.xmlmind.com/xmleditor/faq.html#custom_deliverables
>>
>>
>>
>>>
>>> Any pointer would be highly appreciated.
>>
>>
>>
>> ---
>> PS: The<fo:block id="END-OF-DOCUMENT"/>  method works fine with FOP. We use
>> it to implement the page-count feature in XMLmind DITA Converter --
>> http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html.
>>
>
> --
> XMLmind XML Editor Support List
> [email protected]
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
>
>

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to