Html -> PDF Conversion

  • Hey there,

    We're currently using the PDF Control to convert from RTF to PDF which works fine.

    I'm trying to add in the ability to convert from HTML/MHT to PDF (will both these use the same conversion?)

    I've looked all through the help files and the forums and so forth but cannot find a way to actually do this with any form of output. Can anyone help?

    Thanks

    • Offizieller Beitrag

    Hi,

    I assume You use a current version of RTF2PDF / TextDynamic Server.

    It has implemengted support for HTML and MHT. MHT is a mime encoded webpage which does not only contain the HTML but also the images. That is supported, too.

    Usually you pass it as if it was RTF. The format should be autodetected.

    For HTML there is a special HTML mode available.

    Using the "Commands" You can use
    ExecCommandEx(1312, 1, '', 0);

    to activate it.

    Otherwise use the interfaces, such as Memo, PDFCreator etc.
    See: https://www.wpcubed.com/manuals/textdynamic/rtf2pdf.htm

  • Hi there,

    The wRTF2PDF02.dll referenced below is V3.2.0.11

    I've tried using the 1312 command in here and passing an MHT file but what ends up happening is the PDF file is created but the content is the raw text behind the MHT instead of the Visual output it represents.

    I'm currently using the below code, can you tell me what if anything I am doing wrong here:

    Thanks in Advance

    Aaron