rf中的pdftools包 - 错误:字体重量无效

时间:2016-09-22 04:21:53

标签: r pdftotext

我收到以下错误,是否有人对R中的无效字体错误有任何解决方案:

@Override
protected boolean isAccessAllowed(ServletRequest request,
                                  ServletResponse response, Object mappedValue) throws Exception {


    HttpServletRequest httpServletRequest = (HttpServletRequest) request;
    String url = httpServletRequest.getRequestURI();

    if (null != token || isLoginRequest(request, response)) {
        return false;
    }
    return true;
}


@Override
protected boolean onAccessDenied(ServletRequest request,
                                 ServletResponse response) throws Exception {


    saveRequestAndRedirectToLogin(request, response);
    return false ;
}

你能帮我吗?

1 个答案:

答案 0 :(得分:2)

这意味着PDF有一些损坏的属性,但您可以安全地忽略这些警告。功能仍然有效:

txt <- pdftools::pdf_text("http://wolterskluwer.com/binaries/content/assets/wk/pdf/investors/annual-reports/wolters-kluwer_2015_sustainability_report.pdf")
cat(txt)