I have the following image format translation problem. I wonder if someone can advice me about a possible solution. A Tcl/Tk code builds an image on the canvas (Tcl/Tk jagon) and is saved to an eps file by the Tcl "canvas --> postscript" command. While the eps (this format is Tcl-imposed) file looks fine, the pdf version, obtained through the Linux "ps2pdf13" platform-independent conversion, has all the histogram_bar marks and labels messed up. I build the histogram_bar marks and labels by using a font family "adobe-courier' declared in the Tcl program in order to be able at run-time to dynamically change its size according to the user's selections. The histogram_bar marks, that get screwed up by ps2pdf conversion, consist of powers of 10 whose exponent can be either positive or negative ( for instance 10 to the power12 or 10 to the power -11). The base (10) is displayed through a bigger font with respect to the exponent. The font size pair (respectively for the base and the exponent) is selected depending on the GUI window size (Extra-Large, Large, Medium, Small). Since the canvas picture can have two radiobutton-selectable aspect-ratios, namely 1:1 and 16:9, all fonts are "rescaled " (size changed accordingly) back and forth when the aspect ratio is changed. Is the abobe Thank you in advance for your help, Maura
Hello, * MAURA MONVILLE <mauede@sbcglobal.net> [2006-08-29 21:57]:
I have the following image format translation problem. I wonder if someone can advice me about a possible solution. A Tcl/Tk code builds an image on the canvas (Tcl/Tk jagon) and is saved to an eps file by the Tcl "canvas --> postscript" command.
While the eps (this format is Tcl-imposed) file looks fine, the pdf version, obtained through the Linux "ps2pdf13" platform-independent conversion, has all the histogram_bar marks and labels messed up. I build the histogram_bar marks and labels by using a font family "adobe-courier' declared in the Tcl program in order to be able at run-time to dynamically change its size according to the user's selections. The histogram_bar marks, that get screwed up by ps2pdf conversion, consist of powers of 10 whose exponent can be either positive or negative ( for instance 10 to the power12 or 10 to the power -11). The base (10) is displayed through a bigger font with respect to the exponent. The font size pair (respectively for the base and the exponent) is selected depending on the GUI window size (Extra-Large, Large, Medium, Small). Since the canvas picture can have two radiobutton-selectable aspect-ratios, namely 1:1 and 16:9, all fonts are "rescaled " (size changed accordingly) back and forth when the aspect ratio is changed.
can you provide us with two example files: PDF and EPS? But please not as mail attachment but put it somewhere on the web and provide the link. Thanks! Regards, Bernhard
I have just downloaded the electronic form that I have to fill out to request a web area for exchange of files (in this case images) with the external world. The servers where my work is placed here at FermiLab have firewalls and are not accessible by people outside. I will get that web area but it'll take a while. Since I would need some suggestion possibly in the short run I can give you access to my laptop (which is on a public SBC/AT&T network when I keep it at home). I run SuSE (of course). Maybe i have to install ftp (server or client ?) through Yast on mt laptop and let you download the images from there .... How does it sound ? Thak you very much, Maura Bernhard Walle <bernhard.walle@gmx.de> wrote: Hello, * MAURA MONVILLE [2006-08-29 21:57]:
I have the following image format translation problem. I wonder if someone can advice me about a possible solution. A Tcl/Tk code builds an image on the canvas (Tcl/Tk jagon) and is saved to an eps file by the Tcl "canvas --> postscript" command.
While the eps (this format is Tcl-imposed) file looks fine, the pdf version, obtained through the Linux "ps2pdf13" platform-independent conversion, has all the histogram_bar marks and labels messed up. I build the histogram_bar marks and labels by using a font family "adobe-courier' declared in the Tcl program in order to be able at run-time to dynamically change its size according to the user's selections. The histogram_bar marks, that get screwed up by ps2pdf conversion, consist of powers of 10 whose exponent can be either positive or negative ( for instance 10 to the power12 or 10 to the power -11). The base (10) is displayed through a bigger font with respect to the exponent. The font size pair (respectively for the base and the exponent) is selected depending on the GUI window size (Extra-Large, Large, Medium, Small). Since the canvas picture can have two radiobutton-selectable aspect-ratios, namely 1:1 and 16:9, all fonts are "rescaled " (size changed accordingly) back and forth when the aspect ratio is changed.
can you provide us with two example files: PDF and EPS? But please not as mail attachment but put it somewhere on the web and provide the link. Thanks! Regards, Bernhard
participants (2)
-
Bernhard Walle
-
MAURA MONVILLE