Newsgroup: it.comp.software.tex
Titolo: Nessuno sa il ceco?

Salve a tutti!
Se provo a caricare un'immagine eps (logomio.eps) Yap mi dà fuori
un'errore, e se trasformo il file con dvips il Ghostview non riesce ad
aprirlo. Riporto il Logbook di Yap (0.98n) e Ghostview (4.0). Eppure
se provo ad aprire logomio.eps da Ghostview non ci sono problemi.
Cercando "cannot feed GhostScriptwrote 0 bytes" sugli NG ho trovato un
tipo col mio stesso errore su cz.comp.cstex, ma non ci capisco nulla!
Grazie per l'interessamento,
Ladiostro
Yap logbook:
**********************************************************************************
Loading page 1...
Sending C:\texmf\dvips\base\tex.pro...
C:\gs\gs7.00\bin\gswin32c.exe -I"C:\gs\gs7.00\lib;C:\gs\fonts"
-r60.000000x60.000000 -g495x700 -sDEVICE=bmp256 -q -DBATCH -dNOPAUSE
-dSAFER -sOutputFile=andle 
 -start: C:\gs\gs7.00\bin\gswin32c.exe
-I"C:\gs\gs7.00\lib;C:\gs\fonts" -r60.000000x60.000000 -g495x700
-sDEVICE=bmp256 -q -DBATCH -dNOPAUSE -dSAFER -sOutputFile=%handle%2c -
Sending C:\texmf\dvips\base\special.pro...
Searching PostScript file ./img/logomio.eps...
Found C:\transport\thdoc\./img/logomio.eps
Loading PostScript file C:\transport\thdoc\./img/logomio.eps...
creating bitmap file C:\WINDOWS\TEMP\mikB216.TMP
cannot feed GhostScriptwrote 0 bytes
Error: PostScript problem:
GhostScript error
**********************************************************************************
Ghostview logbook:
**********************************************************************************
Unknown in Comments section at line 8:
  %%DocumentFonts: CMR17 CMR12 CMBX12 CMR8
Unknown in Prolog section at line 199:
  %%CreationDate: 1991 Aug 20 16:34:54
Unknown in Prolog section at line 429:
  %%CreationDate: 1991 Aug 20 16:39:40
Unknown in Prolog section at line 502:
  %%CreationDate: 1991 Aug 20 16:38:05
Unknown in Prolog section at line 826:
  %%CreationDate: 1991 Aug 20 16:38:24
Unknown in Setup section at line 1088:
  %%BeginPaperSize: a4
Unknown in Setup section at line 1090:
  %%EndPaperSize
AFPL Ghostscript 7.0 (2001-04-08)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file C:/transport/thdoc/
thesis.ps
Displaying page 1
Unrecoverable error: ioerror in %image_file_continue
Operand stack:
    --nostringval--  --nostringval--  --nostringval--
--- Begin offending input ---
--- End offending input ---
file offset = 76211
gsapi_run_string_continue returns -12
**********************************************************************************

 aprirlo.
GSView riesce a vedere logomio.eps se provi a visualizzarlo 
indipendentemente? Attiva anche gli EPS Warning e vedi se ti dà 
messaggi.
-- 
Giuseppe "Oblomov" Bilotta
Axiom I of the Giuseppe Bilotta
theory of IT:
Anything is better than MS

messaggi.
Lo apre senza problemi. Noto che ha il numero di pagine settate a 0
(nella barra in basso GSView mi dice: Page: " " 1 of 0), e che
comunque un po' di warning me li dà fuori (quelli interessanti forse
sono gli ultimi):
Grazie per l'aiuto!
Ladiostro
GSView messages:
********************************************************************************
Unknown in Comments section at line 3:
  %%Version: 1 3
Unknown in Comments section at line 10:
  %%DocumentProcessColors: Cyan Magenta Yellow Black
Unknown in Comments section at line 11:
  %%DocumentSuppliedResources:
Unknown in Comments section at line 12:
  %%+ procset (Adobe Acrobat - PDF operators) 1.2 0
Unknown in Comments section at line 13:
  %%+ procset (Adobe Acrobat - general image support) 1.2 0
Unknown in Comments section at line 14:
  %%+ procset (Adobe Acrobat - monochrome image support) 1.2 0
Unknown in Comments section at line 15:
  %%+ procset (Adobe Acrobat - color image support) 1.2 0
Unknown in Comments section at line 16:
  %%+ procset (Adobe Acrobat - indexed color image support) 1.2 0
Unknown in Setup section at line 28:
  %%Copyright: Copyright 1993 Adobe Systems Incorporated. All Rights
Reserved.
Unknown in Setup section at line 56:
  %%Copyright: Copyright 1987-1999 Adobe Systems Incorporated. All
Rights Reserved.
Unknown in Setup section at line 57:
  %%Version: 4.0 1
Unknown in Setup section at line 58:
  %%Title: definition of dictionary of variables used by PDF & PDFText
procsets
Unknown in Setup section at line 131:
  %%Copyright: Copyright 1993-1999 Adobe Systems Incorporated. All
Rights Reserved.
Unknown in Setup section at line 132:
  %%Version: 4.0 1
Unknown in Setup section at line 133:
  %%Title: Basic utilities used by other PDF procsets
Unknown in Setup section at line 157:
  %%Version: 4.0 1
Unknown in Setup section at line 158:
  %%Copyright: Copyright 1998-1999 Adobe Systems Incorporated. All
Rights Reserved.
Unknown in Setup section at line 159:
  %%Title: General operators for PDF, common to all Language Levels.
Unknown in Setup section at line 377:
  %%Version: 4.0 1
Unknown in Setup section at line 378:
  %%Copyright: Copyright 1987-1999 Adobe Systems Incorporated. All
Rights Reserved.
Unknown in Setup section at line 379:
  %%LanguageLevel: 2
Unknown in Setup section at line 380:
  %%Title: PDF operators, with code specific for Level 2
Unknown in Setup section at line 536:
  %%Copyright: Copyright 1987-1993 Adobe Systems Incorporated. All
Rights Reserved.
Unknown in Setup section at line 550:
  %%Copyright: Copyright 1987-1993 Adobe Systems Incorporated. All
Rights Reserved.
AFPL Ghostscript 7.0 (2001-04-08)
Copyright (C) 2001 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file C:/transport/thdoc/img/logomio.eps without pages
Warning: EPS file should be careful using /sethalftone
Warning: EPS file should be careful using /setcolortransfer
Warning: EPS file should be careful using /settransfer
Warning: EPS file should be careful using /sethalftone
Warning: EPS file should be careful using /setcolortransfer
Warning: EPS file should be careful using /settransfer
********************************************************************************

 sono gli ultimi):
La maggior parte sono innocui. E soprattutto non hanno niente a che 
vedere con l'errore che dà poi il GSView.
Cosa succede se compili il file escludendo il codice dell'immagine?
L'immagine con cosa è stata creata?


 L'immagine con cosa è stata creata?
In logomio.eps (con wordpad) leggo:
%!PS-Adobe-3.0 EPSF-3.0
%%Title: (logomio.pdf)
%%Version: 1 3
%%Creator: (Acrobat 4.0 Import Plug-in for Windows)
%%CreationDate: (D:20011030112436+01'00')
%%DocumentData: Binary
%%LanguageLevel: 2
%%BoundingBox: 0 0 539 530
%%Pages: 0
%%DocumentProcessColors: Cyan Magenta Yellow Black
%%DocumentSuppliedResources:
%%+ procset (Adobe Acrobat - PDF operators) 1.2 0
%%+ procset (Adobe Acrobat - general image support) 1.2 0
%%+ procset (Adobe Acrobat - monochrome image support) 1.2 0
%%+ procset (Adobe Acrobat - color image support) 1.2 0
%%+ procset (Adobe Acrobat - indexed color image support) 1.2 0
%%EndComments


 %%DocumentData: Binary
Uhm. Il file EPS contiene una immagine bitmap. Prova a convertirla in 
qualche formato bitmap standard con GSView e poi a riportarla in EPS 
con bmeps (MiKTeX 2.1) oppure i netpbm tools. Dovrebbe fare pulizia di 
tutta la robaccia messa da Adobe.
