AddPDFRRasterPageFromJPEGFile
Compliance, raster exchange, file input
Description
Adds a greyscale or RGB JPEG file as one PDF/R raster page without recompressing its DCT data
Syntax
Delphi
Function AddPDFRRasterPageFromJPEGFile(Const FileName: WideString; HorizontalDPI, VerticalDPI: Double; Rotation: Integer): Integer;Parameters
| FileName | Path to a greyscale or RGB JPEG file |
|---|---|
| HorizontalDPI, VerticalDPI | Explicit resolution, or a value less than or equal to zero to use JPEG density metadata and then the 300 DPI fallback |
| Rotation | 0, 90, 180 or 270 |
Return value
The one-based page number on success, or 0 when the file is missing, unsupported or malformed
Remarks
The method reads dimensions, colour components and density from the JPEG header, validates the complete byte sequence through the PDF/R image path and embeds it with DCTDecode without transcoding
See also
SetPDFRMode, AddPDFRRasterPageFromString, GetPDFRDiagnostics