Operation Structures > PDF_UNION |
Copy Code | |
---|---|
typedef struct { DWORD Reserved0; BYTE PICHUGE* Reserved1; BYTE PICHUGE* Reserved2; BYTE PICHUGE* Reserved3; BYTE PICHUGE* Reserved4; BYTE PICHUGE* Reserved5; BYTE PICHUGE* Reserved6; BYTE PICHUGE* Reserved7; BYTE PICHUGE* Reserved8; PICFLAGS PicFlags; PICFLAGS PicFlags2; DWORD Compression; DWORD WidthPad; DWORD StripSize; DWORD NumOfPages; DWORD LumFactor; DWORD ChromFactor; DWORD SubSampling; DWORD EncodeModeJBIG2; DWORD PageFlagsJBIG2; DWORD RegionFlagsJBIG2; DWORD Looseness; DWORD Rate; DWORD CompFileSize; double TargetPSNR; } PDF_UNION; |
Name | Description | ||||||||||||||||||||||
Reserved0 Reserved1 Reserved2 Reserved3 Reserved4 Reserved5 Reserved6 Reserved7 Reserved8 |
This field is not currently used and must be set to 0. | ||||||||||||||||||||||
PicFlags |
Flags that control the D2PDF and PDF2D operations are:
| ||||||||||||||||||||||
PicFlags2 |
Flags that control the D2PDF and PDF2D operations are:
| ||||||||||||||||||||||
Compression |
Field that specifies the type of compression to use in writing PDF files and the type of compression used for images being extracted. Possible values are:
| ||||||||||||||||||||||
WidthPad |
Specifies the width of an uncompressed DIB pixel line in bytes. WidthPad takes into account the number of bits needed to represent a pixel and any padding that may be required at the end of each line. WidthPad will be output by Pegasus unless the PF_WidthPadKnown flag is set in PicFlags. If PF_WidthPadKnown is set, then WidthPad must be input by the application. | ||||||||||||||||||||||
StripSize |
Specifies the minimum buffer size needed to hold one strip of input data and is set by Pegasus. The operation acts on the input data one strip at a time, so at least one complete strip of input data should be added to the Get queue at a time, except at the end of the image. Thus, this is also the minimum buffer size for the Get queue. | ||||||||||||||||||||||
NumOfPages |
In OP_PDF2D, specifies the number of pages in the PDF document after REQ_INIT. | ||||||||||||||||||||||
LumFactor |
Specifies the desired luminance compression factor [0..255]. The luminance compression factor is used to adjust the default luminance quantization table values. When LumFactor is 32, the default luminance quantization table values are used as is. When LumFactor and ChromFactor are 0, the quality is highest and the compression ratio is virtually non-existent. When LumFactor and ChromFactor are 255, the quality is lowest and the compression ratio is highest. | ||||||||||||||||||||||
ChromFactor |
Specifies the desired chrominance compression factor [0..255]. The chrominance compression factor is used to adjust the default chrominance quantization table values. When ChromFactor is 32, the default chrominance quantization table values are used as is. When LumFactor and ChromFactor are 0, the quality is highest and the compression ratio is virtually non-existent. When LumFactor and ChromFactor are 255, the quality is lowest and the compression ratio is highest. | ||||||||||||||||||||||
SubSampling |
Specifies the desired sub-sampling. This field, together with ChromFactor and LumFactor, controls the compression ratio and the compressed image quality. Note that, in all cases, Y is not sub-sampled.
| ||||||||||||||||||||||
EncodeModeJBIG2 |
Specifies the encode mode for the JBIG2 encoder to use for the page.
| ||||||||||||||||||||||
PageFlagsJBIG2 Flags |
| ||||||||||||||||||||||
RegionFlagsJBIG2 |
| ||||||||||||||||||||||
Looseness |
A value between 0 and 100 that tells OP_JBIG2P how loose to be when matching symbols and compressing text using either of the lossy text region encoding modes: JBIG2_EncodeMode_Lossy_Text_MQ or JBIG2_EncodeMode_Lossy_Text_MMR. The larger the number, the greater the compression and the greater the risk of introducing errors. Set to 50 for a reasonably small filesize and low risk of error. If set to 0, the compression will be lossless. | ||||||||||||||||||||||
Rate |
(PDFCompress_J2K) The number of thousandths of a bit per pixel in the compressed image - used to control degree of compression; overrides custom compression settings if set. If set to 0 then the degree of compression is set by CompFileSize. | ||||||||||||||||||||||
CompFileSize |
(PDFCompress_J2K) Desired compressed file size in bytes; overrides Rate or custom compression settings if set. If 0 then the Rate field is used to determine compression size. If Rate is also 0, then the compressed file size is not arbitrarily limited in size but will depend on the compressibility of the image and on the other compression settings. | ||||||||||||||||||||||
TargetPSNR |
(PDFCompress_J2K) Set this to the desired compressed image quality as measured by Peak-Signal-to-Noise-Ratio. |