ImageEn, unit imageenio

TImageEnIO.CreatePSFile

TImageEnIO.CreatePSFile


Declaration

procedure CreatePSFile(const FileName: WideString);


Description

Creates a new, empty PostScript file of the specified filename. You can add pages using SaveToPS and when complete, close the file using ClosePSFile.

Note: All images in the resulting PostScript file will be aligned to the upper-left corner of the paper.


Demo

Demo  Demos\PDF\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();