Page Numbers not correct

  • I have a stream containing a RTF document.

    Using the following code I get an issue:

    Code
    using (RTF2PDF rtf2pdf = new RTF2PDF())
    {
    rtf2pdf.LoadRTF("document.rtf");
    rtf2pdf.SaveRTF("documentOutput.rtf");
    }

    The input RTF document has three page with the footer showing pagenumbers in a custom way; "page x of y".
    In the output RTF document the footer contains the pagenumber, but the format is correct only for the odd pages (1 and 3 in my document), while the second page has the page number wrong: "only the page number with left align, totally different from the custom footer provided in the odd pages".

    This is probably a bug. Can anyone confirm it?

    • Offizieller Beitrag

    Hi,

    Page numbers are usually calculated at print time. It uses variables (fields) for the numbers, PAGE for the page number, NUMPAGES for the page count.

    You cannot expect to always have unchanged page numbers in RTF documents since this format does not work with virtual pages, such as PDF.

    Julian