ImageEn, unit imageenio

TImageEnIO.SaveToPS

TImageEnIO.SaveToPS


Declaration

procedure SaveToPS();


Description

Saves the current image to a PostScript file opened using CreatePSFile.

Notes:
- All images in the resulting PostScript file will be aligned to the upper-left corner of the paper.
- To abort while saving set Aborting to true


Demo

Demo  Demos\InputOutput\PDFBuilder\PdfBuilder.dpr


Example

ImageEnView1.IO.CreatePSFile( 'D:\output.ps' );

// load and save page 1
ImageEnView1.IO.LoadFromFile('C:\page1.tiff');
ImageEnView1.IO.Params.PS_Compression := ioPS_G4FAX; // G4Fax compression
ImageEnView1.IO.SaveToPS;

// load and save page 2
ImageEnView1.IO.LoadFromFile('C:\page2.tiff');
ImageEnView1.IO.Params.PS_Compression := ioPS_G4FAX; // G4Fax compression
ImageEnView1.IO.SaveToPS;

...Other pages...

// close PS file
ImageEnView1.IO.ClosePSFile;