Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interpreter, PostScript File to Print, Calling from C

Status
Not open for further replies.

dbez

Programmer
Feb 13, 2001
1
US
Hello, I am trying to create a postscript file that includes an company logo that would be called from a C file that also writes "text" to the same file. My questions are this.
1.) If I create a PS file that looks like this:
%!PS
/inch { 72 mul } def
/img <
424D 363C 0C00 0000 0000 3600 0000 2800 0000
B802 0080 0100 0001 0018 0000 0000 0000 3C0C
00C4 0E00 00C4 0E00 0000 0000 0000 0000 00FF
FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
> def
1.25 inch 2.5 inch translate
6 inch 6 inch scale
16 13 1
[16 0 0 13 0 0 ]
{ img }
image
showpage
My problem is that I can't get this to print as an image to the printer it will only print in the form you see it above. What am I doing wrong?
2.)Does the interpreter reside on the printer and if so how do I determine if there is one loaded?

3.) How do I call &quot;img&quot; from a &quot;C&quot; file to print the image inbetween when I print the text from the C file and how will this affect the PCL that is already formatting the text?

THANKS FOR ANY HELP YOU CAN GIVE. I AM TRYING TO PIECE TOGETHER ALL OF THE PIECES THAT I HAVE LEARNED WITHOUT SUCCESS!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top