Convert text into PDF

前端 未结 4 1529
轮回少年
轮回少年 2021-01-26 05:08

I have a huge string of text that is apparently raw data for a PDF file, and I need to make it back into a PDF.

Currently I\'m reading the string into a StringBuffer but

4条回答
  •  情书的邮戳
    2021-01-26 05:35

    A PDF is a binary object. You need to write the bytes directly to a file.

    Turning into text will probably break it. Does it start with %%PDF- and end with %%EOF?

提交回复
热议问题