• Hello,

    We are looking for a PDF lib for our printing software. We need
    the ability to create PDFs with rotated EMF (rtf text) in it. The
    EMF ist created from a TRichEdit via EM_FORMATRANGE. We did some
    test with your trial version and a simple DrawMetaFile brings out
    perfect results. But is it possible to rotate the Metafile when doing
    a DrawMetaFile?

    Best regards

    • Offizieller Beitrag

    Hi,

    You can use SetWorldTransform - that rotates an EMF to any degree and does NOT create a bitmap.

    This code will do it: It draws an EMF to the wPDF. I also tested it with Text - that rotates and stays searchable text in the PDF, too.

    The formula
    matrix.eDx:=x -cos(q)*(w/2)+sin(q)*(h/2);
    matrix.eDy:=y -cos(q)*(h/2)-sin(q)*(w/2);
    makes sure the center point for the rotation is the middle of the image.

    Julian

    Einmal editiert, zuletzt von support (22. März 2007 um 08:01)