Sefyir |
08-16-2016 10:50 PM |
Change size of post-script file
I'm trying to double the size of the output of sudoku (program)
You can get one yourself to try (also put in code at bottom)
Code:
sudo apt-get install sudoku
sudoku -fpostscript -c"hard" > board_1
The problem is the output board is very small!
I'm trying to double the size but my results are blurry when converted to pdf.
My goal is to print them out in a easier-to-read size.
Code:
convert board_1 -scale 200% board_1.pdf
I think I'm going around this the wrong way since it's just a postscript file - I should be able to change the size any amount without any blurriness.
Code:
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 211 301 401 491
%%Creator: Sudoku by Michael Kennett
%%CreationDate: Tue Aug 16 20:32:31 2016
%%Title: randomly generated - hard
%%EndComments
(9 25 7 39 1 1 4 36 589 247 41 7 8 3 52 4 69 2)
211 301 translate
0 setgray
1 setlinewidth 1 8 {dup 20 mul 5 add dup dup dup
5 moveto 185 lineto 5 exch moveto 185 exch lineto 1 add} repeat pop stroke
3 setlinewidth 1 2 {dup 60 mul 5 add dup dup dup
5 moveto 185 lineto 5 exch moveto 185 exch lineto 1 add} repeat pop stroke
1 setlinejoin 5 5 moveto 5 185 lineto 185 185 lineto 185 5 lineto closepath stroke
/Helvetica-Bold findfont 12 scalefont setfont
0 81 {2 copy 1 getinterval dup stringwidth pop
20 exch sub 2 div 2 index 9 mod 20 mul add 5 add
8 3 index 9 idiv sub 20 mul 10 add
moveto show 1 add} repeat pop pop
|