Data extraction from /Filter /FlateDecode PDF stream in PHP

后端 未结 4 1157
离开以前
离开以前 2020-12-22 20:17

I can not decrypt the data from the stream like:

    56 0 obj 
    << /Length 1242 /Filter /FlateDecode >>
    stream
    x]êΩnƒ Ñ{ûbÀKq¬æ\\âê¢..         


        
4条回答
  •  醉梦人生
    2020-12-22 20:45

    i just used

    import de.intarsys.pdf.filter.FlateFilter;
    

    from jpod / source forge and it works well

    FlateFilter filter = new FlateFilter(null);
    byte[] decoded = filter.decode(bytes, start, end - start);
    

    the bytes are straight from the pdf file

提交回复
热议问题