3

Texmaker use and want to compile latex + dvips + ps2pdf + view pdf but I get the error shown in the image. Can you give me step by step solution to compile as I want.

enter image description here

Error: /invalidfileaccess in --run-- Operand stack: --nostringval--(biconepartcircle1-sommets.dat)(r) Execution stack: %interp_exit.runexec2 --nostringval-- --nostringval-- --nostringval-- 2 % stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 % stopped_push 1916 1 3 % oparray_pop 1915 1 3 % oparray_pop 1899 1 3 % oparray_pop 1787 1 3 % oparray_pop --nostringval-- %errorexec_pop .runexec2--nostringval-- --nostringval-- --nostringval-- 2 % stopped_push--nostringval-- --nostringval-- --nostringval-- 1916 2 9 %oparray_pop --nostringval-- Dictionary stack: --dict:1175/1684(ro)(G)-- --dict:0/20(G)-- --dict:118/200(L) -- -- dict:747/1012(L)-- --dict:187/300(L)-- --dict:38/200(L)-- --dict:206/300(L)-- --dict:747/1012(L)-- --dict:747/1012(L)-- --dict:1/1(L)-- Current allocation mode is local Last OS error: No such file or directory Current file position is 396840 GPL Ghostscript 9.10: Unrecoverable error , exit code 1

casio
  • 359

1 Answers1

1

Run Ghostscript in unsafe mode

ps2pdf -dNOSAFER ...

Otherwise reading and writing file access is suppressed.

AlexG
  • 54,894
  • Alex, where I write ps2pdf -dNOSAFER in Texmaker ? Or where? – casio Jan 05 '16 at 18:01
  • I wanted to use the solution GPL Ghostscript X.XX : Unrecoverable error exit code 1

    ** WARNING ** Filtering file via command - > ps2pdf -dCompatibilityLevel = 1.5 -sPAPERSIZE = A0 = false -dGrayImageFilter -dAutoFilterGrayImages = / FlateEncode - dAutoFilterColorImages = false -dColorImageFilter = / FlateEncode

    edit the file ... / texlive / 20XX / texmf / dvipdfmx / dvipdfmx.cfg the option to insert into the line -dNOSAFER With ps2pdf

    D " ps2pdf -dCompatibilityLevel =% v -dNOSAFER -sPAPERSIZE = a0 ... but there is no line in the file dvipdfmx.cfg

    – casio Jan 05 '16 at 20:28
  • i tried to $> gs -dNOSAFER monfichier.ps quit.ps in console of ubuntu, but not funtion, the console produce error,any idea? – casio Jan 05 '16 at 20:30
  • The console produce: Error: /undefinedfilename in (monfichier.ps) Operand stack:Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push Dictionary stack:--dict:1172/1684(ro)(G)-- --dict:0/20(G)----dict:77/200(L)--Current allocation mode is local Last OS error: No such file or directoryGPL Ghostscript 9.10: Unrecoverable error, exit code 1 – casio Jan 05 '16 at 20:31
  • I made the error, add ps2pdf-dNOSAFER %.ps no space between ps2pdf and -dNOSAFER ... to add ps2pdf -dNOSAFER %.ps function ... thank you very much for you answer – casio Jan 05 '16 at 22:25