ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class PDFViewer.PDFViewer(system, config, vtype=None)

This calss is the public interface by which a <no title> can access the PDF viewer. This class abstracts away the actual viewer being used as with many of the commands it is capable of running.

Parameters:

  • system: a <no title> object to communicate with the target system

  • config: a <no title> object hold all our configuration

  • vtype: optionally the (string) name of the type of CommandShell to create, overriding anything in the config object

Print()

Print the current document

exit(save=False)

Exit the viewer.

Parameters:

  • save: Not used, just accepted to provide a standard function prototype

load(path)

Load a given document.

Parameters:

  • path: the string path to the document to load

Example:

user.PDFViewer.load( r”c:tempinstructions.pdf” )

open()

Open an instance of the viewer to use.