Convert byte array to PDF
Posted: Mon Dec 14, 2009 2:20 pm
I have a PDF byte array that I need to transform back into a PDF file. Has anyone ever done this, or transformed a byte array of anything back into a file using PHP?
My output looks like this right now - just kind of at a loss on how to turn the sucker back into a file.
My output looks like this right now - just kind of at a loss on how to turn the sucker back into a file.
Code: Select all
object(stdClass)[3]
public 'getObjResult' => string '%PDF-1.7
%âãÏÓ
38 0 obj
<</Linearized 1/L 118188/O 43/E 96704/N 2/T 117308/H [ 2176 488]>>
endobj
xref
38 94
0000000016 00000 n
0000002664 00000 n
0000002756 00000 n
0000003206 00000 n
........ so on and so forth