Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
print text to postscript/pdf

Subject: print text to postscript/pdf

From: Chris

Date: 1 Aug, 2008 04:44:02

Message: 1 of 4

Hello.
I am trying to either dump a string into a postscript file
that I ultimately want to convert to a pdf. It looks like
matlab supports printing figures to both pdf and postscript,
but I have been unsuccessfull in printing a string to
postscript/pdf or converting a file to postscript/pdf. I
could do it manually, but I wanted to do it from the command
line. Anyone have any suggestions? I thought about dumping
it into a textbox in a figure window but I have too much
text for that to be feasible.
Thanks
Chris

Subject: print text to postscript/pdf

From: Geoffrey

Date: 22 Apr, 2009 09:00:19

Message: 2 of 4

Chris,

Did you ever find a solution to this problem? I'm having the same problem now.

Geoff

Subject: print text to postscript/pdf

From: Oliver Woodford

Date: 22 Apr, 2009 11:21:01

Message: 3 of 4

"Geoffrey" <geoffrey.bourque@ch.abb.com> wrote in message <gsmmb3$dga$1@fred.mathworks.com>...
> Chris,
>
> Did you ever find a solution to this problem? I'm having the same problem now.
>
> Geoff

You could generate a figure with some text in and print this to eps. Then use the eps file to create a template that you can just write your text into in the future.

Subject: print text to postscript/pdf

From: Geoffrey

Date: 24 Apr, 2009 06:22:04

Message: 4 of 4

The only problem is, how do I handle actual page formatting and other things? For example text wrapping or multiple pages?

In principle it'd be simple to just define a listbox, and make my GUI a full sheet of paper and each line in the listbox is a line in the text. And I've done a quick test of that and it works just fine. But I need the flexibility of multiple pages without adding a lot of extra code (hence more debugging).


"Oliver Woodford" <o.j.woodford.98@cantab.net> wrote in message <gsmuit$6ef$1@fred.mathworks.com>...
> "Geoffrey" <geoffrey.bourque@ch.abb.com> wrote in message <gsmmb3$dga$1@fred.mathworks.com>...
> > Chris,
> >
> > Did you ever find a solution to this problem? I'm having the same problem now.
> >
> > Geoff
>
> You could generate a figure with some text in and print this to eps. Then use the eps file to create a template that you can just write your text into in the future.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us