File Exchange Pick of the Week

January 23rd, 2009

Print PDF

Bob's pick this week is print_pdf by Oliver Woodford.

If you export MATLAB graphics to PDF files then fuss with settings to make it look "just so" then print_pdf may be for you.

This is hardly the only such submission on the File Exchange. There are dozens of files with the "pdf" tag for example. What made this submission stand out from the pack was the activity log. First, notice the Comments and Ratings. Then scroll down to the Updates section. Oliver harnessed the power of his fan club. He was extremely responsive to make improvements based on feedback from others. We like to see this kind of social computing in the File Exchange, and encourage more posters to use the forum to improve their code.

Comments?


Get the MATLAB code

Published with MATLAB® 7.8

7 Responses to “Print PDF”

  1. farasha replied on :

    very good, exporting any thing in Matlab form to pdf is so much needed in programs developments.
    Thanks for the effort and carry on

  2. Oliver Woodford replied on :

    Thanks for the honour, Bob.

  3. Balaji Ganeshan replied on :

    On the whole this is an excellent post.

    But I am having a problem using this file for guide generated figures. I have a push button within my gui to generate a pdf – however I receive an error as follows:

    ??? Error using ==> print at 310
    What follows -f is not a Figure handle.

    Error in ==> print_pdf at 48
    print(‘-depsc2′, ‘-noui’, ‘-painters’, ['-f' num2str(fig)], ‘-r864′, tmp_nam);

    Any help will be much appreciated.

  4. Jon replied on :

    This is great.
    Is there a way to append images into multi-layered pdf file?

    Thanks

  5. Bob replied on :

    Jon, I don’t know enough about PDF to address your question. You could add your question as a comment to Oliver’s submission. You could also check the newsgroup.
    http://www.mathworks.com/matlabcentral/newsreader/

  6. GHOST_01 replied on :

    Good Article

  7. CukDiye Film izle replied on :

    Oww Good Article

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.