cherdn | 12 Aug 18:09
Favicon

[Serna] Re: Thank You for Evaluating Syntext Serna, Do You Need Any Guidance?

Hello Michel,

> I do have a question: I'm desperately looking for a way to change the 
> header and footertexts of the pdf file I generate through Serna. I'd 
> also like to be able to add our company logo to the header.

Your use-case is connected not with Serna but with DITA OT, which Serna 
uses for publishing to PDF or HTML.
You may find all the documentation about it here:
http://dita-ot.sourceforge.net/

If you want to change header and footer of the generated pdf file, you
have to change DITA OT's xsl files.

I've prepared a small sample for you - how to work with xsl files:

         <!-- header -->
         <fo:static-content flow-name="xsl-region-before" font-size="9pt" 
font-family="Helvetica">
           <fo:block linefeed-treatment="ignore" text-align-last="justify">
             <fo:inline text-align="start">

<!-- here's some text which appear in header-->

               <xsl:text>New header content</xsl:text>

             </fo:inline>
           </fo:block>
         </fo:static-content>

I've attached sample xsl file.
How to apply it:

1. download attached 'topic2foImpl.xsl'
2. replace existing file here:
"c:\Program Files\Syntext\Serna-3.8\plugins\dita\DITA-OT1.4\xsl\xslfo\"
3. run Serna
4. create DITA 1.1 Topic file
5. publish it to PDF -> see result

In the generated pdf file there must be text "New header content" in the 
header.

Hope it helps you to solve the issue.
But it's better to ask DITA OT developers about this use-case in DITA OT 
mailing list.

Thank you.
Regards,
Daria Chernova

>
> I'm testing Serna to see if I can use it to build our training manuals with DITA.
>
> Thanks
> Michel Broggi
> Sela Zentrum GmbH
>
> ----- original Nachricht --------
>
>
>
> Dear Michel Broggi,
>
> Thank you for evaluating the trial version of Serna WYSIWYG XML Editor. Our wish is that your exploration
of Serna will lead to your appreciation and enjoyment of the variety of its features.
>
> However, we are here to serve you, so if you experience any difficulties while authoring in Serna or need
any explanations of its features, feel free to ask us for help. We will apply the breadth of our knowledge
and expertise toward answering any queries you might have, so please do not hesitate to contact us if you
believe we may be of any assistance.
>
> Our goal is primarily to create the product that serves you best. Your feedback is an important tool, which
we use in the continued evolution of our product toward perfection. Therefore, suggestions and/or
criticisms are welcome and appreciated. Thank you in advance for your help in this regard, and we hope you
enjoy using our product.
>
> With kind regards,
>
> Syntext Customer Service
>
> --- original Nachricht Ende ----
>


Gmane