I tried a test print from the GTK Edit window on Win7. I used both PDFCreator
and XPS Print to file.
It looks like there may need to be some adjustment in the printing parameters:
Source file:
NB. parse
wd=: 4 : 0
cmd=. 0{::tk=. ;:y
select. cmd
case. 'cc' do.
select. child=. 2{::tk
case. 'edit' do. wdccedit 1{::tk
case. 'button' do. wdccbutton 1{::tk
case. do. ('not implemented child ',child) 13!:8[3
end.
case. 'cn' do. wdcn '"'-.~ 3}.dlb y
case. 'pc' do. wdpc x,1{tk
case. 'pclose' do. wdpclose''
case. 'pn' do. wdpn '"'-.~ 3}.dlb y
case. 'pshow' do. wdpshow''
case. 'xywh' do. wdxywh ". 1{::tk
case. do. ('not implemented ',cmd) 13!:8[3
end.
EMPTY
)
Screen Shots of PDF and XPS:
http://www.jsoftware.com/jwiki/DavidMitchell?action=AttachFile&do=get&target=GTK+Print+to+PDF.png
http://www.jsoftware.com/jwiki/DavidMitchell?action=AttachFile&do=get&target=GTK+Print+to+XPS.png
On 2/15/2011 5:39, bill lam wrote:
> printing added to gtkide. pdf file is automatically created for print
> preview. Pdf file is automatically created for print preview in Linux.
>
> @Brian Schott: this gtk print will not work for you. sorry.
>
>> On Mac the standard print dialogue has a 'Print to PDF' button.
>>
>> Cheers, bob
>>
>> On 2011-02-14, at 6:31 AM, bill lam wrote:
>>
>>> Sorry I misread your original message. The gtkide missed a print function
>>> as that in J602. That will be added by gtk printing. And you can print
>>> to a pdf printer. cups in linux provides a pdf printer and there are some
>>> freeware pdfcreator available for windows, no idea for Mac.
>>>
>>> Пнд, 14 Фев 2011, Björn Helgason писал(а):
>>>> The reasons I have for making a script into a pdf are a few.
>>>>
>>>> I want to write out a pdf to:
>>>> - get a "printed" status of a script
>>>> - be able to send a script to others who will not change what I sent
>>>> - be able to send a script of to be printed
>>>>
>>>> I also use the scripts to write a lots of other stuff than J because I find
>>>> the editor very handy for all kinds of notes.
>>>>
>>>> It sorts of grows on you as time goes by.
>>>>
>>>>
>>>> 2011/2/14 Björn Helgason<[email protected]>
>>>>
>>>>> I am thinking about a menu option for scripts
>>>>>
>>>>> Þann 14. febrúar 2011 09:39, skrifaði bill lam<[email protected]>:
>>>>>
>>>>> output option for plot should still available, only it is now default to
>>>>>> gtk.
>>>>>> If output option for pdf does not work, please let us know.
>>>>>>
>>>>>>
>>>>>> Пнд, 14 Фев 2011, Björn Helgason писал(а):
>>>>>>> I am thinking if it should be an option to print or create a pdf from
>>>>>> the
>>>>>>> gui?
>>>>>>>
>>>>>>> --
>>>>>>> Björn Helgason, Verkfræðingur
>>>>>>> Fornustekkum II
>>>>>>> 781 Hornafirði,
>>>>>>> t-póst: [email protected]
>>>>>>> gsm: +3546985532
>>>>>>> sími: +3544781286
>>>>>>> http://groups.google.com/group/J-Programming
>>>>>>>
>>>>>>>
>>>>>>> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
>>>>>> einfaldleikans
>>>>>>>
>>>>>>> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>>>>>>> /|_ .-----------------------------------.
>>>>>>> ,' .\ / | Með léttri lund verður |
>>>>>>> ,--' _,' | Dagurinn í dag |
>>>>>>> / / | Enn betri en gærdagurinn |
>>>>>>> ( -. | `-----------------------------------'
>>>>>>> | ) | (\_ _/)
>>>>>>> (`-. '--.) (='.'=) ♖♘♗♕♔♙
>>>>>>> `. )----' (")_(") ☃☠
>>>>>>> ----------------------------------------------------------------------
>>>>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>>>>
>>>>>> --
>>>>>> regards,
>>>>>> ====================================================
>>>>>> GPG key 1024D/4434BAB3 2008-08-24
>>>>>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>>>>>> ----------------------------------------------------------------------
>>>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Björn Helgason, Verkfræðingur
>>>>> Fornustekkum II
>>>>> 781 Hornafirði,
>>>>> t-póst: [email protected]
>>>>> gsm: +3546985532
>>>>> sími: +3544781286
>>>>> http://groups.google.com/group/J-Programming
>>>>>
>>>>>
>>>>> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>>>>>
>>>>> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>>>>> /|_ .-----------------------------------.
>>>>> ,' .\ / | Með léttri lund verður |
>>>>> ,--' _,' | Dagurinn í dag |
>>>>> / / | Enn betri en gærdagurinn |
>>>>> ( -. | `-----------------------------------'
>>>>> | ) | (\_ _/)
>>>>> (`-. '--.) (='.'=) ♖♘♗♕♔♙
>>>>> `. )----' (")_(") ☃☠
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Björn Helgason, Verkfræðingur
>>>> Fornustekkum II
>>>> 781 Hornafirði,
>>>> t-póst: [email protected]
>>>> gsm: +3546985532
>>>> sími: +3544781286
>>>> http://groups.google.com/group/J-Programming
>>>>
>>>>
>>>> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>>>>
>>>> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>>>> /|_ .-----------------------------------.
>>>> ,' .\ / | Með léttri lund verður |
>>>> ,--' _,' | Dagurinn í dag |
>>>> / / | Enn betri en gærdagurinn |
>>>> ( -. | `-----------------------------------'
>>>> | ) | (\_ _/)
>>>> (`-. '--.) (='.'=) ♖♘♗♕♔♙
>>>> `. )----' (")_(") ☃☠
>>>> ----------------------------------------------------------------------
>>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>>> --
>>> regards,
>>> ====================================================
>>> GPG key 1024D/4434BAB3 2008-08-24
>>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm