def METHOD_NAME(pdf_path, password):
    pdf_path = RESOURCE_ROOT / pdf_path
    reader = PdfReader(pdf_path)
    writer = PdfWriter()
    if password:
        reader.decrypt(password)
    page = reader.pages[0]
    writer.add_page(page)
    op = Transformation().rotate(90).scale(1.2)
    page.add_transformation(op)
    page.merge_page(page)
    op = Transformation().scale(1).translate(tx=1, ty=1)
    page.add_transformation(op)
    page.merge_page(page)
    op = Transformation().rotate(90).scale(1).translate(tx=1, ty=1)
    page.add_transformation(op)
    page.merge_page(page)
    page.add_transformation((1, 0, 0, 0, 0, 0))
    page.scale(2, 2)
    page.scale_by(0.5)
    page.scale_to(100, 100)
    page = writer.pages[0]
    page.compress_content_streams()
    page.extract_text()