Convert text into PDF

前端 未结 4 1469
轮回少年
轮回少年 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

    How did you come across this string? If it is a raw ASCII string, you will be missing a large amount of binary data that is embedded within the PDF.

    If you have a unicode string, you may be able to write it to a file directly using an OutputStream (not a Writer as you don't actually want to write character data).

提交回复
热议问题