Tk Source Code

View Ticket
Login
Ticket UUID: 220304
Title: canvas command "postscript" generates almost-empty files
Type: Bug Version: obsolete: 8.3
Submitter: welch Created on: 2000-10-31 23:08:29
Subsystem: 06. Canvas Postscript Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-03-24 03:14:34
Resolution: Invalid Closed By: dgp
    Closed on: 2001-03-23 20:14:34
Description:
OriginalBugID: 5523 Bug
Version: 8.3
SubmitDate: '2000-05-16'
LastModified: '2000-05-17'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
OS: HP-UX
OSVersion: HP-UX hpp020 B.10.20 A 9000/712
ClosedDate: '2000-05-17'


Name:
Paul Sievers

Extensions:
tix.4.1.0

CustomShell:
None

ReproducibleScript:
set w .w5
wm withdraw .
    toplevel $w
    wm title $w "data5"

    wm geometry   $w =600x600

canvas .w5.msc    -width 288 -height 51        -background white 

.w5.msc create rectangle 0 3 436 17 -fill lightyellow -outline lightyellow
.w5.msc create text 2  4 -anchor nw -text "CB121VF\CP_P_EXEC_SFF_TRANSITION         CSF513D" -font -misc-fixed-bold-r-normal--15-120-100-100-c-90-iso8859-1 -fill black
.w5.msc create rectangle 138 18 142 32 -fill white -outline white
.w5.msc create text 140  19 -anchor nw -text "" -font -misc-fixed-bold-r-normal--15-120-100-100-c-90-iso8859-1 -fill black
.w5.msc create line 189 38 90 38  -width 3  -arrow last -arrowshape {9 9 4} -fill black
pack $w.msc  -side top    -fill both
    $w.msc postscript    -file "/tmp/bad12" -pagex 0.i -pagey 10.i -pageanchor nw
The command line was: wish tiny.tcl

ObservedBehavior:
The generated postscript file  "/tmp/bad12"  is "almost-empty"
The text "CB121VF\CP_P_EXEC_SFF_ ..." does not appear in the file.
The bounding box has only 2x3 pixels, as can be seen from the line:
%%BoundingBox: 0 719 1 721
in file  "/tmp/bad12".

DesiredBehavior:
When printing the postscript file, I'd like to see graphics that look like the canvas on the screen.




After customer submitted this bug he sent another reply:

Ok. It's not really a bug. Using options -width and -heigth
solves the problem.

Bye
Paul Sievers
 
-- 05/16/2000 angie

A note for using the above is also recommended in the docs
of the canvas postscript command, so that's probably what
the user needs to use more liberally. 
-- 05/17/2000 hobbs