PH PDF Maker beta 4

Probe House Software
by WongCK
© Nov 2020

Version beta 4



PH PDF Maker is a GDOS printer device driver that output to a PDF file instead of outputting the printout to a hardware printing device. PH PDF Maker has the following features:

Features as of Beta 4 (Nov 2020):

    PHPDF.PRG
  1. Rework for unlimited fonts support (up to avaiable memory).
  2. Fix manual selection of folders and general font folder bug.
  3. Display GDOS version used on font folder radio buttons label.
  4. Saves logfiles as soon as writting done to avoid zero length logfile when it crash.
  5. Fixed silly wind_delete error on exit.
  6. Selectable folder for PDF output when using automatic PDF file naming.
    PHPDF.SYS
  1. Rework Workstation out / extended out information.
    PHPDF.ACC
  1. Rework for unlimited fonts support (up to avaiable memory).
  2. Added intensity, patterns, hatching and user defined patterns support.
  3. Added line type support. User defined line defaults to solid line.
  4. Added VDI call #37 vqf_attributes.
  5. Added rbox, rfbox and ellipse pie support.
  6. Added shadow text & underline text. Fixed rotated italic text.
  7. Moved "Inconsistent fonts" notification to Alert Box.
  8. Fixed GPD objects drawing, text rotation, rectangle box verticles calculation
  9. Fixed GPD objects filling and perimeter colours
  10. Fixed poly line drawing.

Features as of Beta 3a (Oct 2017):

  1. Fixes the alignment of numeric in cells in Atari Works spreadsheet printout.
  2. Renders the non-supported hatching/pattern to 50% (lighter) colour (previous was full colour which hides the text).

Features as of beta 3:

  1. Works with NVDI 3, 4, 5 & SpeedoGDos 5.0c, 5.7. See notes below for details.
  2. True Colour 24-bits graphics support for real life colour reproduction in PDF.
  3. Selectable output resolution up to 300 dots per inch.
  4. Select from 12 standard PDF paper sizes for your PDF output.
  5. Compressed PDF for smaller file size.
  6. Secured PDF support with password encryption and read/open password.
  7. Protected PDF support by restriction control for copy, printing and editing.

Features from previous beta:

  1. Creates PDF file simply by printing from an application via normal GDOS printer settings.
  2. Support VDI output function for graphics text, outline text, circle, polyline, rectangle and coloured filled area (closed poly line).
  3. Support Generalized Drawing Primitives (GDP) bar, arc, pieslice, circle, arc and ellipse.
  4. Support text effects such as bold, italic, outline, underline, rotation, colour, font scaling, superscript and subscript.
  5. Support VDI colour mapping for supported graphics objects, lines, texts and filled objects.
  6. Support TrueType fonts for nice font face output.
  7. Support Latin accents as defined by standard Atari character set (i.e. via keyboard).
As usual this is freeware. Please leave a feedback on http://www.atari-forums.com, positive or negative.

Environment

Installation

Note: When upgrading to a new version, please replace PHPDF.SYS, PHPDFA.ACC, PHPDF.PRG & PHPDF.RSC

  1. PH PDF maker consist of 3 files:
    1. PHPDF.SYS - the driver to be placed in the C:\GEMSYS or C:\DRIVERS folder (the folder where the GDOS engine finds the printer drivers.)
    2. PHPDFA.ACC - the PDF maker helper application. Must be running to create the PDF file. Normally on the C:\ root or where your ACC are loaded from.
    3. PHPDF.PRG - the configuration program. You can place this program (and it's RSC file) any where.
  2. Edit your ASSIGN.SYS file to include PHPDF.SYS as a driver, I normally take over device 21.
  3. Configure your GDOS engine to load TrueType fonts for better fonts output on the PDF.
  4. Run PHPDF.PRG to select the configuration of your PDF - paper size, print resolution & other settings.
You may want to read "The Joy of GDOS" for more information on configurating GDOS ASSIGN.SYS file.

I have provided 68020-060, 68000 and Coldfire version of PH PDF Maker. The 68000 and Coldfire version are in the 68000 and Firebee folder respectively. Please use as appropriate. Remember to copy over the PHPDF.RSC file (from outside the folder).

While generating a PDF, you may run in to a low memory conditions. If this happens, please use FOLDER100.PRG and POOLFIX92.PRG to have better memory management for your TOS system. You may rename FOLDER100 to FOLDER500 in order to increase the buffers to 500 instead of 100.

The PH PDF configuration program

Use PHPDF.PRG to configure the behaviour of PH PDF Maker.
Select the section to configure via the pull-down menu. Click OK to accept the changes & close the program. Click CANCEL to close without saving.

PDF Document section
  • Render PDF in DPI selects the resolution in dots per inch for the PDF file.
  • Paper size selects the paper size to be created in the PDF file.
  • Compress PDF enable compression on the PDF generated to make it smaller.
Font folder section
  • Select either your GDOS system font folder or Manual. If your True Type Fonts are not inside the default GDOS font folder, use Manual selection.
  • TTF Folder Manually select the folder where your TrueType fonts are located.
PDF File section
  • Automatic renaming of filename sets PH PDF Maker to automatically use the filename as PHPDFnnn.PDF, where nnn is a sequence number up to 999. When 999 is reached, it just keeps overwritting the 999th file.
  • Create in allows you to define the folder where the PDF file will be created in when using auto naming.
  • Manual select using file selector will make PH PDF Maker prompt you to select the filename to use to save the PDF file, everytime you make a printout.
Secured PDF section
  • Secured PDF enable encryption and permissioning of the PDF file.
  • Master Password must be set if you enable secured PDF mode.
  • Read Password protects the opening of the PDF with a password.
  • Allow copy, print & edit sets permission on the PDF file, enabling copying, printing & editing of the PDF file.

What is this "Inconsistent fonts" alert?

You will see this alert from the PHPDFA.ACC program if it detects that the fonts data file created by PHPDF.PRG is missing or inconsistent or from an older version.
Please re-run the PHPDF.PRG file you see this alert. If do not re-run PHPDF.PEG and continue to print out PDF, it will hang the whole system and crash the GDOS driver.
You may need to reboot when that happens.

How to use

  1. Use your word processor such as Atari Works. You may use any fonts and use effects like bold, underline, italic. Draw some rectagulars and circles as well as import some GEM colour image file.
  2. Select the Printer Setup and select the printer device number 21 or the device number you installed PH PDF on.
  3. Select the Paper Size From the Device to ensure the correct paper dimension.
  4. Print out the normal way via the Print File function.... it will take some time and uses tons of memory. So please wait.
  5. WAIT... WAIT... WAIT and WAIT.
  6. The PDF will be created at your defined output folder and filename (for auto filename PHPDFnnn.PDF) or a file selector will prompt you for a filename.

What Happened to my Speedo Fonts in the PDF??

It is unfortunate that Atari was not able to conquer the DTP world and make GDOS outline fonts the standard of the world. So nowadays, PDF files do not support GDOS fonts. PDF files supports it's own font type and also TrueType fonts. Luckily for us, SpeedoGdos and NVDI supports TrueType fonts. So if you use TrueType fonts on your word processor, you will be able to see them on the PDF output from the Atari word processor. All Speedo/GDOS bitmap/outline fonts are mapped on to the default PDF font "Helvitica". Only True type fonts are reproduced on the PDF.

Which GDOS printing engine to use?

The table below shows PH PDF Maker compatibility on each GDOS engine. The choice of GDOS engine to use may be due to the need of speed (screen accelerator), for printers support and may be due to hardware restriction (like the Firebee). So which one you use is your choice. I know which one I will use.
GDOS engine QED Atari Works Papyrus 5 File size
SpeedoGDos 5.0c Text OK Text & graphics OK Text & graphics OK Small
SpeedoGDos 5.7 Partial (see 1) Text & graphics OK Text & graphics OK Small
NVDI 3 Text OK Text & graphics OK Cannot print (see 2) Small
NVDI 4 Text OK Text & graphics OK Text & graphics OK Large (see 3)
NVDI 5 No (see 4) Graphics only (see 5) Graphics only (see 5) Large (see 3)
Notes
Note 1: SpeedoGDos 5.7 does not seems to allow selection of built-in fonts for the printer. So QED default screen fonts selects the 1st TrueType font on your list. If it's a fancy font, you get the fancy font in your PDF. The work around is to select a decent True Type font as the font for your printout inside QED.
Note 2: Papyrus 5.15 throws an error when printing on NVDI 3. Other versions may work but I only understand this version as it is in English.
Note 3: Both NVDI 4 and NVDI 5 rasterise fonts for printers. This means a single letter is make up of many short lines, each line is treated as a graphics, so the PDF is make out of lots of graphics lines increasing the file size. Also as you zoom in and out of the PDF, you will not see smooth transition in font sizes unlike that of a outlined fonts.
Note 4: NVDI 5 will only render a small block of text. The rest of the text will not be rendered.
Note 5: NVDI 5 will render GDP objects like lines, boxes, circles as well as true colour graphics. So you can use NVDI 5 to make PDF of graphics files.

Limitations

Future developements

Not sure.

Thanks

Thanks to ThorstenOtto at Atari Forums whom provided valuable testing programs and suggestion to improving the overall software.
Thanks to Mike Fulton for his great blog and his past articles written when he was at Atari. Visit his blog at www.fultonsoft.com. His advice on getting a normal GDOS out before the NVDI stuff made this software possible.
Thanks also to the guys at www.Atari-forum.com - Dal, Eero, dml, zogging hell, mfro, gstoll, Faucon2001, lp, thenameofthegame and other whom chip in on this topic.
Questions, comments, or error reports? Please leave a post at Atari-Forum.com
Visit my web site at https://sites.google.com/site/probehouse/