summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/epdf.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-08-06 07:02:46 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-08-06 07:02:46 +0000
commit0866741b109fde4a874b71685f92220fad324270 (patch)
tree010efc2917d71ebbb867c3321bc454246cc0cb9a /Build/source/texk/dvipdfm-x/epdf.c
parent3eb4bb85f27948534edb085f33601ad8f117b167 (diff)
dvipdfm-x: Support /Rotate page attribute in PDF inclusion (by S. Hirata).
git-svn-id: svn://tug.org/texlive/trunk@44963 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/epdf.c')
-rw-r--r--Build/source/texk/dvipdfm-x/epdf.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/Build/source/texk/dvipdfm-x/epdf.c b/Build/source/texk/dvipdfm-x/epdf.c
index 533c1e0cdec..3f7258abdfb 100644
--- a/Build/source/texk/dvipdfm-x/epdf.c
+++ b/Build/source/texk/dvipdfm-x/epdf.c
@@ -1,6 +1,6 @@
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2007-2016 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2007-2017 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
@@ -51,13 +51,7 @@
#include "epdf.h"
static int rect_equal (pdf_obj *rect1, pdf_obj *rect2);
-#if 0
-#if HAVE_ZLIB
-#include <zlib.h>
-static int add_stream_flate (pdf_obj *dst, const void *data, int len);
-#endif
-static int concat_stream (pdf_obj *dst, pdf_obj *src);
-#endif
+
/*
* From PDFReference15_v6.pdf (p.119 and p.834)
*
@@ -314,9 +308,6 @@ pdf_get_page_obj (pdf_file *pf, int page_no,
}
if (rotate) {
- if (pdf_number_value(rotate) != 0.0)
- WARN("<< /Rotate %d >> found. (Not supported yet)",
- (int)pdf_number_value(rotate));
pdf_release_obj(rotate);
rotate = NULL;
}
@@ -422,7 +413,7 @@ pdf_include_page (pdf_ximage *ximage,
options.page_no = 1;
page = pdf_doc_get_page(pf,
options.page_no, options.bbox_type,
- &info.bbox, &resources);
+ &info.bbox, &info.matrix, &resources);
if(!page)
goto error_silent;
@@ -512,12 +503,12 @@ pdf_include_page (pdf_ximage *ximage,
pdf_add_dict(contents_dict, pdf_new_name("BBox"), bbox);
matrix = pdf_new_array();
- pdf_add_array(matrix, pdf_new_number(1.0));
- pdf_add_array(matrix, pdf_new_number(0.0));
- pdf_add_array(matrix, pdf_new_number(0.0));
- pdf_add_array(matrix, pdf_new_number(1.0));
- pdf_add_array(matrix, pdf_new_number(0.0));
- pdf_add_array(matrix, pdf_new_number(0.0));
+ pdf_add_array(matrix, pdf_new_number(info.matrix.a));
+ pdf_add_array(matrix, pdf_new_number(info.matrix.b));
+ pdf_add_array(matrix, pdf_new_number(info.matrix.c));
+ pdf_add_array(matrix, pdf_new_number(info.matrix.d));
+ pdf_add_array(matrix, pdf_new_number(info.matrix.e));
+ pdf_add_array(matrix, pdf_new_number(info.matrix.f));
pdf_add_dict(contents_dict, pdf_new_name("Matrix"), matrix);