I was getting this error when trying to generate PDF from LaTeX source using dvipdf.
dvipdf> Note that an absolute path or a relative path with .. are denied in -R2 mode.
dvips: Could not find figure file pdf:dest; continuing.
Note that an absolute path or a relative path with .. are denied in -R2 mode.
Error: /syntaxerror in (binary token, type=137)
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1146/1684(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:206/300(L)-- --dict:43/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.62: Unrecoverable error, exit code 1
and finally this apparently meaningless error:
dvipdf> dvips: Problems with file writing; probably disk full.The solution in my case? Using dvipdfm instead of dvipdf. As far as I know dvipdfm is just a better implementation of dvipdf.
Some reasons for similar problems when rendering LaTeX into PDF:
- too many embedded images
- runaway commands (unclosed/unbalanced command braces)
- buggy libraries/dependencies