Mixing RTF and images

  • 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:

    Unfortunately, the JPEG appears first in the PDF file. Any suggestions?