def METHOD_NAME(request):
    user_ids = parse_comma_separated_ints(request.GET.get("user_ids", ""))
    users = [
        user
        for user in JustfixUser.objects.filter(pk__in=user_ids)
        if (
            user.full_legal_name
            and hasattr(user, "onboarding_info")
            and hasattr(user, "landlord_details")
            and user.landlord_details.name
            and user.landlord_details.address_lines_for_mailing
        )
    ]
    return render_document(request, "loc/envelopes.html", {"users": users}, "pdf")