summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-09-27 11:19:24 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-10-20 18:22:47 +0200
commitcc6be9c3577168805ec34b2d396e63361012282b (patch)
tree7dc794b08a1a6a786d540516c623cb1eebfb1863 /extract/src/document.h
parentImport Ghostscript 9.54 (diff)
downloadghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.gz
ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.tar.bz2
ghostscript-gpl-patches-cc6be9c3577168805ec34b2d396e63361012282b.zip
Import Ghostscript 9.55ghostscript-9.55
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'extract/src/document.h')
-rw-r--r--extract/src/document.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/extract/src/document.h b/extract/src/document.h
index 7a1470e4..c59348f4 100644
--- a/extract/src/document.h
+++ b/extract/src/document.h
@@ -54,7 +54,7 @@ typedef struct
unsigned font_bold : 1;
unsigned font_italic : 1;
unsigned wmode : 1;
- };
+ } flags;
char_t* chars;
int chars_num;
@@ -97,7 +97,11 @@ typedef struct
char* type; /* jpg, png etc. */
char* name; /* Name of image file within docx. */
char* id; /* ID of image within docx. */
- char* data;
+ double x;
+ double y;
+ double w;
+ double h;
+ void* data;
size_t data_size;
extract_image_data_free data_free;
@@ -126,13 +130,14 @@ typedef struct
/* These refer to items in .lines. Initially empty, then set
by extract_join(). */
-} page_t;
-/* A page. Contains different representations of the list of spans. */
+} extract_page_t;
+/* A page. Contains different representations of the list of spans. NB not
+called page_t because this clashes with a system type on hpux. */
typedef struct
{
- page_t** pages;
- int pages_num;
+ extract_page_t** pages;
+ int pages_num;
} document_t;
/* A list of pages. */
@@ -147,4 +152,7 @@ typedef struct
int extract_document_join(extract_alloc_t* alloc, document_t* document);
+double extract_matrices_to_font_size(matrix_t* ctm, matrix_t* trm);
+
+
#endif