Archive

Archive for the ‘PostScript’ Category

How to remove cap in the barcode generated in unix from postscript

printf(“0 setlinecap\n”);

Print the above line to the output postscript file before generating the barcode….

 

 

Advertisements

Convert a pdf file to text file

November 9, 2011 Comments off

Command:

pdftotext file.pdf txtfile.txt

Note(This is a GhostScript Command)

Categories: PostScript, Technical

Convert a postscript file to text file

November 9, 2011 Comments off

Command:

ps2Ascii ps_file.ps txt_file.txt

Note:(This is a GhostScript Command)

Categories: PostScript, Technical

Draw text in postscript

1000 1000 moveto (Your text here) show

Categories: PostScript, Technical

Drawing a line in postscript

 

100 100 moveto

1000 1000 lineto

stroke

Categories: PostScript, Technical

Draw Circle in postscript

1451 2340 8 0 360 arc closepath
0 0 0 setrgbcolor fill % filling black color

Categories: PostScript, Technical

right aligned text in postscript

/rshow {
dup stringwidth pop
0 exch sub
0 rmoveto
show} def

1000 1000 moveto (I am right aligned) show

Categories: PostScript, Technical