Skip to content
Jeff P edited this page Mar 21, 2020 · 25 revisions

Introduction

Several Atari printers are emulated to generate output available for download from the FujiNet's web server. So far these are:

  • Atari 820
  • Atari 822
  • Atari 1020
  • Atari 1027

There is also a file printer capability for capturing raw SIO buffers to a single binary file. This file printer can capture the entire buffer, trim the buffer after encountering an EOL (0x9B), or TRIM and convert EOL to \n.

Most of the printers are made to output PDF except the 1020 outputs SVG.

Testing

A number of short Atari printer test programs were found or written to test the emulated printers. Where possible, FujiNet output was compared side-by-side with real output or example output found in manuals.

PDF on FujiNet

The standard PDF document generation libraries are generally quite large and very flexible. For FujiNet a compact, custom, library was made to emulate the basic actions of the printers. For example, functions are implemented to output PDF code to start a new page, output a line of text, set the font, etc. The functions also keep track of file locations of all the PDF objects and builds a cross-reference table (xref) at the end of the PDF file.

Several resources were used to figure out how to generate PDF files on FujiNet:

Many specimen PDF files were generated by hand or by x86 C++ code to test out idea. These can be found in the /pdf folder of the repo.

Anatomy of a FujiNet PDF File

Clone this wiki locally