Page 1 of 1

Printing to PDF or physical printer from emulators?

Posted: Thu Jun 22, 2017 8:06 pm
by richmond62
Both the kids I work with and I, myself, are getting a wee bit cheesed-off
having to write out every program in our notebooks [so last century :mrgreen: ],
and wonder of there is a way to print programs out from:

MacBeebem on the Mac (currently on an Intel Polycarbonate (10.7.8) and a G$ MacMini (10.4.11))

or B-em on Linux (Xubuntu)

either directly to the printer, or, rather better, to PDF?

Re: Printing to PDF or physical printer from emulators?

Posted: Thu Jun 22, 2017 8:19 pm
by richmond62
Here he is answering his own questions again:

Well HORIZON can do a "Print Screen" to PDF (and then you can open it up in GIMP and switch the black & white around).

MacBeebem on Ctrl-V pushes out a distinctly wonky PDF.

B-Em (on Xubuntu) can export a screenshot in BMP format.

Re: Printing to PDF or physical printer from emulators?

Posted: Thu Jun 22, 2017 8:36 pm
by Pernod
If you're trying to export a program listing to a text file you can use Export Files from Disc in BeebEm.

Lets' say you have a BASIC program called "HELLO" saved in a SSD image:

Code: Select all

LOAD"HELLO"
*SPOOL "EXPORT"
LIST
*SPOOL

You will now have a pure text file called EXPORT containing your program HELLO.

In BeebEm go to Edit->Export Files from Disc->Disc 0 then select $.EXPORT and save locally.

Job done!

Re: Printing to PDF or physical printer from emulators?

Posted: Thu Jun 22, 2017 8:44 pm
by richmond62
Thanks, Nigel: that'll be a great help.

Re: Printing to PDF or physical printer from emulators?

Posted: Thu Jun 22, 2017 9:09 pm
by Elminster
I just use cut and paste.

If different machine with shared file system I *spool out and *exec in

The export/import from disc is not fully working on Mac beebem unfortunately.

Re: Printing to PDF or physical printer from emulators?

Posted: Fri Jun 23, 2017 8:22 am
by mjf2708
On a Mac, if you use g7jjf's (Jon Welch's) DFS Explorer, you can select 'View as BASIC' on a file, and copy & paste from there.

Re: Printing to PDF or physical printer from emulators?

Posted: Fri Jun 23, 2017 9:04 pm
by geraldholdsworth
On the MacBeebEm, you can set up printing to either a file or clipboard. Then you can just print, as you would on a real machine.
Go to the Comms menu and select a Printer Destination, and turn the Printer On.
Screen Shot 2017-06-23 at 22.03.22.png

Re: Printing to PDF or physical printer from emulators?

Posted: Fri Jun 23, 2017 9:15 pm
by geraldholdsworth
And the same is true for the PC version:
BeebEm Printing.png

(except it appears that you can actually print to a physical printer, if you have an LPT port and a parallel printer connected to it)

Re: Printing to PDF or physical printer from emulators?

Posted: Fri Jun 23, 2017 9:17 pm
by Elminster
geraldholdsworth wrote:(except it appears that you can actually print to a physical printer, if you have an LPT port and a parallel printer connected to it)


Think you need a retro PC for that!

Re: Printing to PDF or physical printer from emulators?

Posted: Fri Jun 23, 2017 9:54 pm
by MartinB
Duncan wrote:Think you need a retro PC for that!

In the same way that there are USB to RS232 dongles such those employed by UPURS, there are also USB to parallel Centronics dongles so I assume you could easily use a real retro-printer with BeebEm through a modern PC. I have't tried that explicitly but I do have and use one of these Centronics adaptors because the first incarnation of UPURS was parallel!

usb to centronics.JPG

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 7:20 am
by richmond62
Using MacBeebEm 4.0a in a Macintosh (MacOS 10.7.8)

#1 via Comms/Printer Destination/File I get an EMPTY text document and

#2 via Comms/Printer Destination/Clipboard I get NOTHING on the Clipboard

#3 via File/Print Window . . . I am able to "print" a PDF document that contains an image of the MacBeebEm window
(i.e. no editable text)

#4 via Edit/Copy the Program content IS put onto my Clipboard, and from there can be pasted into a Text document.

So #4 is the way to go :D

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 7:28 am
by richmond62
Using (hacked) B-em on Xubuntu 16.04:

#1 via Misc/Save Screenshot one can, err, save a screenshot

that appears to be all.

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 9:33 am
by geraldholdsworth
richmond62 wrote:#1 via Comms/Printer Destination/File I get an EMPTY text document and

#2 via Comms/Printer Destination/Clipboard I get NOTHING on the Clipboard

Did you then send anything to the printer?
i.e.
VDU2 : REM Turn printer on - can also use CTRL+B
LIST : REM List the program
VDU3 : REM Turn printer off - can also use CTRL+C
The BeebEm menus are just like connecting the printer to the BBC, and pushing the on/off button.

Both of the above have never failed for me.

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 9:34 am
by geraldholdsworth
Elminster wrote:Think you need a retro PC for that!

Which I think I might have - just don't have a retro printer :-(

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 10:41 am
by richmond62
Did you then send anything to the printer?


No: for the very simple reason that I have a large number of computers, none of which
are connected to printers,

AND, for pedagogical matters in my school, physical print outs aren't really needed :D

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 11:05 am
by 1024MAK
richmond62 wrote:
Did you then send anything to the printer?


No: for the very simple reason that I have a large number of computers, none of which
are connected to printers,

AND, for pedagogical matters in my school, physical print outs aren't really needed :D

He means, did you command the virtual Beeb (the emulated machine) to print to what it thinks is a "printer". But is just the emulator catching the data that the emulated Beeb "prints".

I sometimes send data from a real Beeb to a WIndows PC via the RS423 serial port, and have to use the VDU 2 or Control B commands to tell the Beeb's OS to direct output to the serial port as well as to the screen.

Mark

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 12:32 pm
by richmond62
He means . . .


humptydumpty.png
humptydumpty.png (156.6 KiB) Viewed 13 times


No, I didn't :D

Re: Printing to PDF or physical printer from emulators?

Posted: Sat Jun 24, 2017 12:53 pm
by sydney
I think when Mark said 'He means..' he was referring to geraldholdsworth.

geraldholdsworth wrote:
richmond62 wrote:#1 via Comms/Printer Destination/File I get an EMPTY text document and

#2 via Comms/Printer Destination/Clipboard I get NOTHING on the Clipboard

Did you then send anything to the printer?
i.e.
VDU2 : REM Turn printer on - can also use CTRL+B
LIST : REM List the program
VDU3 : REM Turn printer off - can also use CTRL+C
The BeebEm menus are just like connecting the printer to the BBC, and pushing the on/off button.

Both of the above have never failed for me.


When you say there is an empty file this is normal unless you have sent something to the printer (file) by printing it on the emulated beeb by typing VDU2 to turn it on - all screen output on the emulated beeb will then be sent to the printer(file). If you then type LIST your BASIC program will be printed on the screen and sent to the printer(file). You then turn this off by typing VDU3.

Unless I'm misunderstanding your post in which case just ignore mine! :lol: