bug-gv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gv] error opening files on other directories


From: jemarch
Subject: Re: [Bug-gv] error opening files on other directories
Date: Mon, 15 Nov 2004 14:22:52 +0100

    
    %!PS-Adobe-3.0
    %%CreationDate: (D:20041115132700)
    %%DocumentMedia: y841.89x595.276 595.276 841.89 70 white ()
    %%Pages: 1
    %%EndComments
    %%BeginProlog
    /Page null def
    /Page# 0 def
    /PDFSave null def
    /DSCPageCount 0 def
    /DoPDFPage {dup /Page# exch store pdfgetpage pdfshowpage } def
    GS_PDF_ProcSet begin
    pdfdict begin
    %%EndProlog
    %%BeginSetup
    (small2e.pdf) (r) file { DELAYSAFER { .setsafe } if } stopped pop
     pdfopen begin
    %%EndSetup
    %%Page: 1 1
    %%PageMedia: y841.89x595.276
    1 DoPDFPage
    %%Trailer
    currentdict pdfclose
    end
    end
    end
    %%EOF
    
    
    So it is actually a pdf2dsc.ps bug... since its outpus is no more
    executable in safe mode by GPL gs 8.15

Anyway, note that pdf2dsc sets .setsafe if the interpreter was started
using -DDELAYSAFER instead of -DSAFE

So this is the solution: start the whole interpreter with -DDELAYSAFER
rather than with -DSAFE

DELAYSAFER is new with GPL gs 8 versions.

I find this solution ideal.

Do you agree with this solution?


    




reply via email to

[Prev in Thread] Current Thread [Next in Thread]