Declaration
procedure SaveToStreamPDF(Stream: TStream; SelectedOnly: boolean = false);
Description
Save all images in the attached
TImageEnMView or
TIEMultiBitmap to a stream in Adobe PDF format.
If
SelectedOnly = True and the component is attached to a
TImageEnMView then only the selected images are output.
The size of the page will be specified by
PDF_PaperWidth and
PDF_PaperHeight. Margins are specified by
PDF_PageMargin.
Image position and size is affected by
PDF_ImageOptions.
If the
PDFEngine is ieenDLL, then
PDFium will be used to create the PDF, otherwise native PDF code will be used
The engine used to save PDF files (either using
PDFium or ImageEn native code) is specified by
PDFEngine.
Note:
◼If an internal save error is encountered
Aborting will return true. Saving issues due to insufficient write permissions and disk write failures will raise an exception.
◼To abort while saving set
Aborting to true
◼Read more about
ImageEn PDF Support
Compatibility Information
Prior to v13.2.0, ImageEn would always use native code to save PDF files. From v13.2.0, the saving engine is controlled by
PDFEngine. If the
PDFium DLL (iepdf*.dll) is located in the EXE folder, ImageEn will now default to using PDFium for saving. To avoid this, set IEGlobalSettings().PDFEngine := ieenNative;