Printing to PDF or physical printer from emulators?

want to talk about MESS/model b/beebem/b-em/electrem/elkulator? do it here!
User avatar
richmond62
Posts: 170
Joined: Sun Apr 16, 2017 3:15 pm

Printing to PDF or physical printer from emulators?

Postby richmond62 » Thu Jun 22, 2017 8:06 pm

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?

User avatar
richmond62
Posts: 170
Joined: Sun Apr 16, 2017 3:15 pm

Re: Printing to PDF or physical printer from emulators?

Postby richmond62 » Thu Jun 22, 2017 8:19 pm

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.

User avatar
Pernod
Posts: 1001
Joined: Fri Jun 08, 2012 10:01 pm
Location: Croydon, UK

Re: Printing to PDF or physical printer from emulators?

Postby Pernod » Thu Jun 22, 2017 8:36 pm

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!
- Nigel

BBC Model B, ATPL Sidewise, Acorn Speech, 2xWatford Floppy Drives, AMX Mouse, Viglen case, etc.

User avatar
richmond62
Posts: 170
Joined: Sun Apr 16, 2017 3:15 pm

Re: Printing to PDF or physical printer from emulators?

Postby richmond62 » Thu Jun 22, 2017 8:44 pm

Thanks, Nigel: that'll be a great help.

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: Printing to PDF or physical printer from emulators?

Postby Elminster » Thu Jun 22, 2017 9:09 pm

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.

mjf2708
Posts: 47
Joined: Sun Oct 07, 2012 8:37 am

Re: Printing to PDF or physical printer from emulators?

Postby mjf2708 » Fri Jun 23, 2017 8:22 am

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.

User avatar
geraldholdsworth
Posts: 303
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Printing to PDF or physical printer from emulators?

Postby geraldholdsworth » Fri Jun 23, 2017 9:04 pm

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
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
geraldholdsworth
Posts: 303
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Printing to PDF or physical printer from emulators?

Postby geraldholdsworth » Fri Jun 23, 2017 9:15 pm

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)
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: Printing to PDF or physical printer from emulators?

Postby Elminster » Fri Jun 23, 2017 9:17 pm

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!

User avatar
MartinB
Posts: 4555
Joined: Mon Mar 31, 2008 9:04 pm
Location: Obscurity

Re: Printing to PDF or physical printer from emulators?

Postby MartinB » Fri Jun 23, 2017 9:54 pm

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

User avatar
richmond62
Posts: 170
Joined: Sun Apr 16, 2017 3:15 pm

Re: Printing to PDF or physical printer from emulators?

Postby richmond62 » Sat Jun 24, 2017 7:20 am

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

User avatar
richmond62
Posts: 170
Joined: Sun Apr 16, 2017 3:15 pm

Re: Printing to PDF or physical printer from emulators?

Postby richmond62 » Sat Jun 24, 2017 7:28 am

Using (hacked) B-em on Xubuntu 16.04:

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

that appears to be all.

User avatar
geraldholdsworth
Posts: 303
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Printing to PDF or physical printer from emulators?

Postby geraldholdsworth » Sat Jun 24, 2017 9:33 am

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.
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
geraldholdsworth
Posts: 303
Joined: Tue Nov 04, 2014 9:42 pm
Location: Inverness, Scotland
Contact:

Re: Printing to PDF or physical printer from emulators?

Postby geraldholdsworth » Sat Jun 24, 2017 9:34 am

Elminster wrote:Think you need a retro PC for that!

Which I think I might have - just don't have a retro printer :-(
Gerald Holdsworth
Repton Resource Page
www.reptonresourcepage.co.uk

User avatar
richmond62
Posts: 170
Joined: Sun Apr 16, 2017 3:15 pm

Re: Printing to PDF or physical printer from emulators?

Postby richmond62 » Sat Jun 24, 2017 10:41 am

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

User avatar
1024MAK
Posts: 6791
Joined: Mon Apr 18, 2011 4:46 pm
Location: Looking forward to summer in Somerset, UK...

Re: Printing to PDF or physical printer from emulators?

Postby 1024MAK » Sat Jun 24, 2017 11:05 am

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
For a "Complete BBC Games Archive" visit www.bbcmicro.co.uk NOW!
BeebWiki‬ - for answers to many questions...

User avatar
richmond62
Posts: 170
Joined: Sun Apr 16, 2017 3:15 pm

Re: Printing to PDF or physical printer from emulators?

Postby richmond62 » Sat Jun 24, 2017 12:32 pm

He means . . .


humptydumpty.png
(156.6 KiB) Not downloaded yet


No, I didn't :D

User avatar
sydney
Posts: 1986
Joined: Wed May 18, 2005 9:09 am
Location: Newcastle upon Tyne

Re: Printing to PDF or physical printer from emulators?

Postby sydney » Sat Jun 24, 2017 12:53 pm

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:


Return to “emulators”

Who is online

Users browsing this forum: No registered users and 1 guest