[changeset] improved support for pdf output

Michael D. Godfrey godfrey at isl.stanford.edu
Wed Apr 8 13:17:03 CDT 2009


Ben,

Here is what I learned about matlab behavior:
matlab version 7.5.0 (R2007B)
I did:
print -depsc  't2eps.eps'     -> %!PS-Adobe-2.0 EPSF-1.2

print -dpdf  't2pdf.pdf'        -> %PDF-1.4
and
print('teps.eps')                -> %!PS-Adobe-3.0

No PS -d option is provided.  Matlab seems not use the suffix to
decide anything.  Therefore, print('tps.ps')  and print('teps.eps')
produce identical outputs except for the %%Title: and %%CreationDate.
However, print -deps 't2eps.eps' and print('t2eps.eps') do not produce
the same outputs.  The only way to get PS seems to be print('teps.eps').

For PS and EPS the bounding box is "tight" and the same for the
both print -depsc and print('teps.eps').

I will have to check the BoundingBox for the PDF.  It appears to be 8.5x11"
but this may be the size, not the cropbox... I did not yet succeed in
generating a PDF file (from pdftex) that displays an included PDF...

So, I would vote for same bounding box of eps and ps, and, I guess, pdf.

Michael




More information about the Bug-octave mailing list