A program written in C to convert different file types to 1D Group 3 T4
The program will need to take a document supplied to it on a command line (Linux / UNIX) with parameters to convert any of the following document types to the file type above.
The program will have to read the original document file headers to determine what the file is so that it can convert it. It will also need to cope with multiple pages within the file and save them out with an increasing file extension number, for instance a 1 page document would be .001 or .002 (if instructed to start at .002 (see below), a 5 page document would be .001, .002, .003, .004, .005 again if instructed to do so via command line it might start at .002 through to .006 , As we don't know the end page number it will continue until it finishes the whole original document.
The original document filename of [url removed, login to view] will once conversion has taken place be [url removed, login to view] (or .002 if instructed to do so on command line)
Command line switches need to be available, the main 2 are :
1. Filename of original document to convert
Our program will tell the conversion program where and what the file is called
2. File extension number to start on.
Our program will tell the conversion program what number to start the saved file extension with either .001, .002, .003 etc
On successful conversion program should write the number of pages converted (in ascii) to the standard output and return with a zero exit code, otherwise it should return a non zero exit code for a failure.
All source code will need to be supplied so that we can compile it on our own platforms.
This list is a complete list, if you can only do some of them, please PMB to tell us which ones you can do within your conversion program.
Documents that need to be converted FROM are:
DOCUMENT TYPE VERSIONS EXTENSIONS
Adobe Portable Document Format (PDF) All versions PDF
Adobe Postscript All versions PS
Adobe Photoshop v. 3.0 and above PSD
Amiga Interchange File Format (IFF) Raster Bitmap only IFF
CAD Drawing Exchange Format (DXF) All Autocad compatible versions DXF
Comma Seperated Values Format All versions CSV
Compuserve Graphics Interchange Format GIF87a, GIF89a GIF
Corel Presentations Slide Show v. 96 and above SHW
Corel Word Perfect v. 5.x, 6, 7, 8, 9 WPD, WP5, WP6
eFax Messenger Document Format eFax Messenger EFX
eFax Messenger Document Format j2 Messenger JFX
Encapsulated Postscript All versions EPS
Hypertext Markup Language Well formed, with base href tag required HTML
JPEG Joint Photography Experts Group All versions JPG, JPEG
Lotus 1-2-3 v. 2, 3, 4, 5, 96, 97, 9.x 123, WK1, WK3, WK4
Lotus Word Pro v. 96, 97, 9.x LWP
Microsoft Excel v. 5, 95, 97, 2000 XLS
Microsoft PowerPoint v. 4 and above PPT
Microsoft Publisher v. 98, 2000 PUB
Microsoft Windows Write All versions WRI
Microsoft Word Win: v. 95, 97, 2000, 2003 Mac: v. 4, 5.x, 95, 98 DOC
PC Paintbrush Graphics (PCX) All versions PCX
Plain Text All versions TXT, DOC, LOG, ERR, C, CPP, H
Portable Network Graphics (PNG) All versions PNG
Quattro Pro v. 6 and above QPW, WB1, WB2, WB3
Rich Text Format All versions RTF
Tagged Image File Format (TIFF) All versions TIF, TIFF
Truevision Targa Format All versions TGA
Visio Drawing v. 3 and above VSD
Windows Bitmap All versions BMP
Word Perfect Graphics v. 2.0 and above WPG