dongshanxun6479 2017-01-16 22:44
浏览 879

GuzzleHttp Stream对象为utf-8编码的HTML?

We have a client for a file system with method open() which returns \GuzzleHttp\Stream\Stream object. I have a pdf file to be read from the file system and therefore I am using open() method to get the output as Guzzle stream object.

I got to merge this pdf file with other pdfs which are being created using mpdf. I could not do that as the merge function(which is using FPDI) could not read xref-Data.

Is there any way that I can convert/manipulate GuzzleHttp stream object to a proper format to make the pdf parser be able to read it?

  • 写回答

1条回答 默认 最新

  • dtsps2098 2017-01-17 05:45
    关注

    Well you can use the getContents method of the Guzzle Stream object: http://docs.guzzlephp.org/en/latest/psr7.html?highlight=stream#streams. It returns a string representation of the data.

    评论

报告相同问题?

悬赏问题

  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试