Я пытаюсь прочитать файл jpeg с помощью java и записать его в свой файл пост-скрипта. Когда я открываю файл пост-скрипта с помощью дистиллятора Acrobat, я получаю сообщение об ошибке:
%%[ Error: typecheck; OffendingCommand: imageDistiller ]%%
Stack:
{( Leaving filterIntercept
) --print-- --flush--}
false
/DCTDecode
-dict-
-file-
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
Ниже показано, как выглядит мой файл postscript без данных в формате jpeg.
%!PS-Adobe-3.0
/jpegimage
{173 36 1 [173 0 0 -36 0 36]
{currentfile /ASCII85Decode filter /DCTDecode filter}
image
} bind def
%%Page: 1 1
%%PageBoundingBox: 0 0 612.0 792.0
100 200 translate
jpegimage
...(jpeg data inline here)...
showpage
%%PageTrailer
%%Trailer
%%EOF