I want to produce a PDF file comprised of an RTF file followed by a JPEG image on a separate page. This is my code:
Code
PDF.ExecIntCommand(1000, 0); // WPCOM_RTFINIT
PDF.ExecStrCommand(1002, FileName); // WPCOM_RTFLOAD
// draw image full page
PDF.StartPage();
PDF.DrawBitmapFile(18, 18, 8 * 72, 10 * 72 + 36, @"c:\temp\test.jpg");
PDF.EndPage();
PDF.ExecIntCommand(1100, 0); // WPCOM_RTFPRINT
PDF.EndDoc();
Alles anzeigen
Unfortunately, the JPEG appears first in the PDF file. Any suggestions?