How to set paper size to DIN A4

  • I am evaluating RTF2PDF and have been unable to so far change the paper size from Letter "8.5 x 11 in" in output PDF. I can see there are other papersizes inside the wPDFControlDemo.DLL but can find no way to access them.

    The DLL does contain the DIN A4 paper size I want to produce.

    I am not concerned with page width or page height and have messed with them trying to change paper size.

    • Offizieller Beitrag

    RTF2PDF will always use the page size from the loaded document.

    But it is able to override that size after the load process.

    Use the commands

    WPCOM_RTF_PAGEWIDTH = 1010 and
    WPCOM_RTF_PAGEHEIGHT = 1011

    to set the width and height after the file was loaded (WPCOM_RTFLOAD = 1002).


    Julian