whscullin / apple2js

An Apple II emulator originally written in Javascript, now being converted to TypeScript
http://www.scullinsteel.com/apple2/
MIT License
438 stars 57 forks source link

Track raw parallel port output and allow it to be downloaded #36

Closed iflan closed 3 years ago

iflan commented 3 years ago

This change adds a download link to the printer dialog. The contents of the download will be the raw bytes written to the parallel interface. Note that often these bytes will have the high-bit set causing the contents to look like gibberish.

However, this is extremely handy because it allows one to turn the printer output into a PDF:

  1. In Appleworks (for example) configure an Apple ImageWriter in slot 1 and print a file.
  2. Download the printer output.
  3. Download the header file from https://github.com/AppleWin/AppleWin/files/1168047/ImageWriterEmulator-NoLF.ps.txt
  4. In Linux, run:
    $ cat ImageWriterEmulator-NoLF.ps.txt raw_printer_output.bin | ps2pdf - printer_output.pdf

Note that the parallel port emulation in apple2js does not yet support Print Shop, so I haven't been able to test that out.