pdf-plus 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1167,6 +1167,18 @@ declare class ImageExtractor {
1167
1167
  * Extract image data with proper decompression handling using actual PDF metadata
1168
1168
  */
1169
1169
  private extractImageData;
1170
+ /**
1171
+ * Resolve an Indexed color space from a PDF ColorSpace object.
1172
+ * Returns palette info if it's Indexed, or null otherwise.
1173
+ *
1174
+ * Indexed color space format: [/Indexed base maxIndex lookupTable]
1175
+ */
1176
+ private resolveIndexedColorSpace;
1177
+ /**
1178
+ * Expand indexed pixel data to full RGB/Gray/CMYK using a palette lookup table.
1179
+ * Each input byte is an index into the palette.
1180
+ */
1181
+ private expandIndexedPixels;
1170
1182
  /**
1171
1183
  * Detect image format from binary data
1172
1184
  * Uses centralized image format detection utility
package/dist/index.d.ts CHANGED
@@ -1167,6 +1167,18 @@ declare class ImageExtractor {
1167
1167
  * Extract image data with proper decompression handling using actual PDF metadata
1168
1168
  */
1169
1169
  private extractImageData;
1170
+ /**
1171
+ * Resolve an Indexed color space from a PDF ColorSpace object.
1172
+ * Returns palette info if it's Indexed, or null otherwise.
1173
+ *
1174
+ * Indexed color space format: [/Indexed base maxIndex lookupTable]
1175
+ */
1176
+ private resolveIndexedColorSpace;
1177
+ /**
1178
+ * Expand indexed pixel data to full RGB/Gray/CMYK using a palette lookup table.
1179
+ * Each input byte is an index into the palette.
1180
+ */
1181
+ private expandIndexedPixels;
1170
1182
  /**
1171
1183
  * Detect image format from binary data
1172
1184
  * Uses centralized image format detection utility