<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166356</link>
    <title>MATLAB Central Newsreader - output a pdf</title>
    <description>Feed for thread: output a pdf</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 25 Mar 2008 17:52:03 -0400</pubDate>
      <title>output a pdf</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166356#422771</link>
      <author>David Doria</author>
      <description>When I produce a figure and then do &quot;File -&amp;gt; SaveAs&quot; and&lt;br&gt;
choose pdf, the pdf that matlab makes is too big - some of&lt;br&gt;
the right side of the plot is chopped off in the pdf file. &lt;br&gt;
Is there a way to overcome this?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
David</description>
    </item>
    <item>
      <pubDate>Tue, 25 Mar 2008 18:05:04 -0400</pubDate>
      <title>Re: output a pdf</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166356#422775</link>
      <author>David Doria</author>
      <description>I found &quot;File - Export Setup&quot; - it let me change the width&lt;br&gt;
to 5 inches , which fixed the inital problem.  However, I am&lt;br&gt;
trying to put this figure into a latex document, and it&lt;br&gt;
seems matlab has added white space to fill up an 8.5x11&lt;br&gt;
piece of paper instead of just using the 5&quot; that I&lt;br&gt;
specified.  Is there a way to prevent this?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
David</description>
    </item>
    <item>
      <pubDate>Tue, 25 Mar 2008 18:45:35 -0400</pubDate>
      <title>Re: output a pdf</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166356#422783</link>
      <author>Richard Quist</author>
      <description>David Doria wrote:&lt;br&gt;
&amp;gt; I found &quot;File - Export Setup&quot; - it let me change the width&lt;br&gt;
&amp;gt; to 5 inches , which fixed the inital problem.  However, I am&lt;br&gt;
&amp;gt; trying to put this figure into a latex document, and it&lt;br&gt;
&amp;gt; seems matlab has added white space to fill up an 8.5x11&lt;br&gt;
&amp;gt; piece of paper instead of just using the 5&quot; that I&lt;br&gt;
&amp;gt; specified.  Is there a way to prevent this?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; David&lt;br&gt;
&lt;br&gt;
Something along this line may do the trick - assuming you want to the &lt;br&gt;
output to be 5x5, set both the papersize AND the paperposition &lt;br&gt;
properties on the figure:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;set(gcf, 'papersize', [5 5]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;set(gcf, 'paperposition', [0 0 5 5]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;print -dpdf test5x5.pdf&lt;br&gt;
&lt;br&gt;
There's also my fillPage File Exchange submission &lt;br&gt;
(&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16566&amp;objectType=FILE)&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=16566&amp;objectType=FILE)&lt;/a&gt; &lt;br&gt;
that helps with this kind of operation:&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;oldSettings = fillpage(gcf, 'margins', [0 0 0 0], 'papersize', [5 5]);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;print -dpdf test5x5.pdf&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;set(gcf, oldSettings); % restore previous settings&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
&lt;br&gt;
Richard Quist&lt;br&gt;
Software Developer&lt;br&gt;
The MathWorks, Inc.</description>
    </item>
    <item>
      <pubDate>Tue, 25 Mar 2008 20:38:01 -0400</pubDate>
      <title>Re: output a pdf</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/166356#422803</link>
      <author>David Doria</author>
      <description>beautiful! that'll do it!</description>
    </item>
  </channel>
</rss>

