diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-07-25 00:42:20 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-07-25 00:42:20 +0000 |
commit | 8e39c3f987c51bf3b075289eee28669ff3f67417 (patch) | |
tree | 2421fc7f54e9ed68201e9e967879f3e37ef382bf /Build | |
parent | 4659d41ea5da1bb6a6cde1a4d1cdabd339c6a053 (diff) |
dvipdfm-x: Recover backward compatibility.
git-svn-id: svn://tug.org/texlive/trunk@37948 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfdoc.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdoc.c b/Build/source/texk/dvipdfm-x/pdfdoc.c index 832ab46772c..97eaab4f85a 100644 --- a/Build/source/texk/dvipdfm-x/pdfdoc.c +++ b/Build/source/texk/dvipdfm-x/pdfdoc.c @@ -1064,6 +1064,7 @@ pdf_doc_get_page (pdf_file *pf, long page_no, long *count_p, goto error; } +#ifdef XETEX if (PageBox == 0) { if (crop_box) box = crop_box; @@ -1074,6 +1075,21 @@ pdf_doc_get_page (pdf_file *pf, long page_no, long *count_p, art_box) { box = art_box; } +#else +/* + Backward compatibility +*/ + if (PageBox == 0) { + if (crop_box) + box = crop_box; + else + if (!(box = art_box) && + !(box = trim_box) && + !(box = bleed_box) && + media_box) { + box = media_box; + } +#endif } else if (PageBox == 1) { if (crop_box) box = crop_box; @@ -1161,7 +1177,14 @@ pdf_doc_get_page (pdf_file *pf, long page_no, long *count_p, pdf_release_obj(tmp); } +#ifdef XETEX if (medbox) { +#else +/* + Backward compatibility +*/ + if (medbox && PageBox) { +#endif double mllx, mlly, murx, mury; for (i = 4; i--; ) { double x; |