AddPDFRRasterPageFromStream
Compliance, raster exchange, stream input
Description
Reads a binary stream and adds one full-page PDF/R raster strip
Syntax
Delphi
Function AddPDFRRasterPageFromStream(InStream: TStream; Width, Height, BitsPerComponent, ColorModel, Compression: Integer; HorizontalDPI, VerticalDPI: Double; Rotation: Integer): Integer;Parameters
| InStream | Non-empty seekable stream containing raw packed samples, CCITT Group 4 data or a complete JPEG sequence; reading starts at byte zero |
|---|---|
| Width, Height | Raster dimensions in pixels |
| BitsPerComponent | 1, 8 or 16 as permitted by the selected colour model and compression |
| ColorModel | PDFR_COLOR_BITONAL, PDFR_COLOR_GRAY or PDFR_COLOR_RGB |
| Compression | PDFR_COMPRESSION_RAW, PDFR_COMPRESSION_CCITT_G4 or PDFR_COMPRESSION_JPEG |
| HorizontalDPI, VerticalDPI | Positive pixel resolutions |
| Rotation | 0, 90, 180 or 270 |
Return value
The one-based page number on success, or 0 on failure
Remarks
The method preserves ownership of InStream, resets its position to zero and otherwise applies the same validation and direct-embedding rules as AddPDFRRasterPageFromString
See also
SetPDFRMode, AddPDFRRasterPageFromJPEGFile, GetPDFRDiagnostics