ImageEn, unit iexHelperFunctions

TImageEnIO.CreatePSFromFileList

TImageEnIO.CreatePSFromFileList


Declaration


function CreatePSFromFileList(const sDestFilename : string;
                              ssFileList : TStrings;
                              const aPaperSize : TIOPDFPaperSize;
                              const aCompression : TIOPSCompression;
                              const sTitle : string = '';
                              const bFailOnUnsupportedImage : Boolean = True;
                              const bRaiseExceptions : Boolean = False
                              ) : Boolean;


Description


Generates a PS file from all images specified in a TStrings list, by combining the functions of CreatePSFile, SaveToPS and ClosePSFile.
Result is true unless an error is encountered.

Parameter Description
sDestFilename The .PS filename to save the file to
ssFileList A list of all images to add to the PS file
aPaperSize The size at which to create the PS file
aCompression The level of compression to use
sTitle The title for the PS document
bFailOnUnsupportedImage When true this procedure will fail if unsupported images (or other file types) are found in ssFileList. If false, unsupported file types are skipped
bRaiseExceptions When true this procedure will generate an exception if it fails. If false, you will need to check the result to detect failure



Example


ImageEnIO1.CreatePSFromFileList('D:\MyNewPS.PS',
                                ssMyImageList,
                                iepA4,
                                ioPS_JPEG);


See Also


- TImageEnMIO.SaveToFilePS
- TImageEnIO.SaveToFilePS