cpdf-source/docsplits/splits/c14.tex

43 lines
1.6 KiB
TeX
Raw Normal View History

2021-06-18 15:19:43 +02:00
/* CHAPTER 13. Images. */
2024-03-22 19:56:54 +01:00
/* Get list of images. Call cpdf_startGetImages, which returns the total number
* of images. Then serial numbers 0..<total number> - 1 are used to retreive
* data. Finally, call cpdf_endGetImages to clean up. */
int cpdf_startGetImages(int);
int cpdf_getImageObjNum(int);
char *cpdf_getImagePages(int);
char *cpdf_getImageName(int);
int cpdf_getImageWidth(int);
int cpdf_getImageHeight(int);
int cpdf_getImageSize(int);
int cpdf_getImageBPC(int);
char *cpdf_getImageColSpace(int);
char *cpdf_getImageFilter(int);
void cpdf_endGetImages(void);
2021-06-18 15:19:43 +02:00
/*
* Get image data, including resolution at all points of use. Call
* cpdf_startGetImageResolution(pdf, min_required_resolution) will begin the
* process of obtaining data on all image uses below min_required_resolution,
* returning the total number. So, to return all image uses, specify a very
* high min_required_resolution. Then, call the other functions giving a
* serial number 0..<total number> - 1, to retrieve the data. Finally, call
* cpdf_endGetImageResolution to clean up.
*/
2024-03-22 19:56:54 +01:00
int cpdf_startGetImageResolution(int, double);
2021-06-18 15:19:43 +02:00
int cpdf_getImageResolutionPageNumber(int);
char *cpdf_getImageResolutionImageName(int);
int cpdf_getImageResolutionXPixels(int);
int cpdf_getImageResolutionYPixels(int);
double cpdf_getImageResolutionXRes(int);
double cpdf_getImageResolutionYRes(int);
2024-03-22 19:56:54 +01:00
int cpdf_getImageResolutionObjNum(int);
2021-06-18 15:19:43 +02:00
void cpdf_endGetImageResolution(void);
2024-03-22 19:56:54 +01:00
/* Get image resolution data in JSON format */
void *cpdf_imageResolutionJSON(int, int *, float);
/* Get image data in JSON format */
void *cpdf_imagesJSON(int, int *);