def METHOD_NAME(outdir):
    pdf = Pdf.new()
    font = pdf.make_indirect(
        Object.parse(
            b"""
            <<
                /Type /Font
                /Subtype /Type1
                /Name /F1
                /BaseFont /Helvetica
                /Encoding /WinAnsiEncoding
            >>"""
        )
    )
    width, height = 100, 100
    image_data = b"\xff\x7f\x00" * (width * height)
    image = Stream(pdf, image_data)
    image.stream_dict = Object.parse(
        b"""
            <<
                /Type /XObject
                /Subtype /Image
                /ColorSpace /DeviceRGB
                /BitsPerComponent 8
                /Width 100
                /Height 100
            >>"""
    )
    rfont = {'/F1': font}
    xobj = {'/Im1': image}
    resources = {'/Font': rfont, '/XObject': xobj}
    mediabox = [0, 0, 612, 792]
    stream = b"""
        BT /F1 24 Tf 72 720 Td (Hi there) Tj ET
        q 144 0 0 144 234 324 cm /Im1 Do Q
        """
    contents = Stream(pdf, stream)
    page_dict = {
        '/Type': Name('/Page'),
        '/MediaBox': mediabox,
        '/Contents': contents,
        '/Resources': resources,
    }
    qpdf_page_dict = page_dict
    page = pdf.make_indirect(qpdf_page_dict)
    pdf.pages.append(page)
    pdf.save(outdir / 'hi.pdf')