[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64164] Wrong eps boundingbox
From: |
Leonardo |
Subject: |
[Octave-bug-tracker] [bug #64164] Wrong eps boundingbox |
Date: |
Tue, 9 May 2023 06:16:38 -0400 (EDT) |
Follow-up Comment #3, bug #64164 (project octave):
Changed "ps2write" to "eps2write". Same result.
>> print -depsc2 -debug test.eps
svgconvert command:
'/usr/local/libexec/octave/8.2.0/exec/x86_64-pc-linux-gnu/octave-svgconvert -
%s 96.13 "/usr/local/share/octave/8.2.0/fonts/FreeSans.otf" 1 "%s"'
Ghostscript command: '/usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER
-dAutoRotatePages=/None -sDEVICE=eps2write -dLanguageLevel=2 -dEPSCrop
-sOutputFile="test.eps" /tmp/oct-NLtNPl'
opengl-pipeline:
'/usr/local/libexec/octave/8.2.0/exec/x86_64-pc-linux-gnu/octave-svgconvert -
pdf 96.13 "/usr/local/share/octave/8.2.0/fonts/FreeSans.otf" 1
"/tmp/oct-NLtNPl" ; /usr/bin/gs -dQUIET -dNOPAUSE-dBATCH -dSAFER
-dAutoRotatePages=/None -sDEVICE=eps2write -dLanguageLevel=2 -dEPSCrop
-sOutputFile="test.eps" /tmp/oct-NLtNPl'
The header of test.eps:
%!PS-Adobe-3.0 EPSF-3.0
%%Invocation: path/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER
-dAutoRotatePages=/None -sDEVICE=eps2write -dLanguageLevel=2 -dEPSCrop
-sOutputFile=? ?
%%BoundingBox: 0 0 419 314
%%HiResBoundingBox: 0.00 0.00 419.00 314.00
%%Creator: GPL Ghostscript 9550 (eps2write)
%%LanguageLevel: 2
%%CreationDate: D:20230509070441-03'00'
%%Pages: 1
%%EndComments
%%BeginProlog
Odd thing is, if I print to PDF and then convert to eps, things are nice:
>> print -dpdf -debug test.pdf
svgconvert command:
'/usr/local/libexec/octave/8.2.0/exec/x86_64-pc-linux-gnu/octave-svgconvert -
%s 96.13 "/usr/local/share/octave/8.2.0/fonts/FreeSans.otf" 1 "%s"'
---- begin /tmp/oct-HF0kyJ.ps ----
%!PS-Adobe-3.0
<< /Margins [0 0] /.HWMargins [0 0 0 0] /PageOffset [96 238] >> setpagedevice
%%EOF
----- end /tmp/oct-HF0kyJ.ps -----
Ghostscript command: '/usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER
-dAutoRotatePages=/None -sDEVICE=pdfwrite -dLanguageLevel=2
-dEmbedAllFonts=true -dOptimize=true -dEPSCrop -sPAPERSIZE=letter -dFIXEDMEDIA
-sOutputFile="test.pdf" "/tmp/oct-HF0kyJ.ps" /tmp/oct-hepepU'
opengl-pipeline:
'/usr/local/libexec/octave/8.2.0/exec/x86_64-pc-linux-gnu/octave-svgconvert -
pdf 96.13 "/usr/local/share/octave/8.2.0/fonts/FreeSans.otf" 1
"/tmp/oct-hepepU" ; /usr/bin/gs -dQUIET -dNOPAUSE-dBATCH -dSAFER
-dAutoRotatePages=/None -sDEVICE=pdfwrite -dLanguageLevel=2
-dEmbedAllFonts=true -dOptimize=true -dEPSCrop -sPAPERSIZE=letter -dFIXEDMEDIA
-sOutputFile="test.pdf" "/tmp/oct-HF0kyJ.ps" /tmp/oct-hepepU ; rm
"/tmp/oct-HF0kyJ.ps"'
Now, convert it to eps using
gs -q -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -sDEVICE=eps2write
-sOutputFile=output.eps test.pdf
The header of output.eps is
%!PS-Adobe-3.0 EPSF-3.0
%%Invocation: gs -q -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -sDEVICE=eps2write
-sOutputFile=? ?
%%BoundingBox: 96 237 516 552
%%HiResBoundingBox: 96.00 237.70 515.20 552.00
%%Creator: GPL Ghostscript 9550 (eps2write)
%%LanguageLevel: 2
%%CreationDate: D:20230509071226-03'00'
%%Pages: 1
%%EndComments
%%BeginProlog
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64164>
_______________________________________________
Mensagem enviada pelo Savannah
https://savannah.gnu.org/