diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-07-24 17:23:16 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-07-24 17:23:16 +0000 |
commit | 4c0baefb316b2f2f5e6773fad25e5ca603773759 (patch) | |
tree | d43fc3bde179dedd1e265245d466f1908fb5e73b | |
parent | 92ea75ba44ba2056ddd363d9e9bd70fd63fb07aa (diff) |
dvipdfm-x: Improve obtaining BoundingBox.
git-svn-id: svn://tug.org/texlive/trunk@37941 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfdoc.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdoc.c b/Build/source/texk/dvipdfm-x/pdfdoc.c index 6c4599b8c54..832ab46772c 100644 --- a/Build/source/texk/dvipdfm-x/pdfdoc.c +++ b/Build/source/texk/dvipdfm-x/pdfdoc.c @@ -1069,30 +1069,30 @@ pdf_doc_get_page (pdf_file *pf, long page_no, long *count_p, box = crop_box; else if (!(box = media_box) && - !(box = art_box) && + !(box = bleed_box) && !(box = trim_box) && - bleed_box) { - box = bleed_box; + art_box) { + box = art_box; } } else if (PageBox == 1) { if (crop_box) box = crop_box; else if (!(box = media_box) && - !(box = art_box) && + !(box = bleed_box) && !(box = trim_box) && - bleed_box) { - box = bleed_box; + art_box) { + box = art_box; } } else if (PageBox == 2) { if (media_box) box = media_box; else if (!(box = crop_box) && - !(box = art_box) && + !(box = bleed_box) && !(box = trim_box) && - bleed_box) { - box = bleed_box; + art_box) { + box = art_box; } } else if (PageBox == 3) { if (art_box) @@ -1100,9 +1100,9 @@ pdf_doc_get_page (pdf_file *pf, long page_no, long *count_p, else if (!(box = crop_box) && !(box = media_box) && - !(box = trim_box) && - bleed_box) { - box = bleed_box; + !(box = bleed_box) && + trim_box) { + box = trim_box; } } else if (PageBox == 4) { if (trim_box) @@ -1110,9 +1110,9 @@ pdf_doc_get_page (pdf_file *pf, long page_no, long *count_p, else if (!(box = crop_box) && !(box = media_box) && - !(box = art_box) && - bleed_box) { - box = bleed_box; + !(box = bleed_box) && + art_box) { + box = art_box; } } else if (PageBox == 5) { if (bleed_box) @@ -1120,9 +1120,9 @@ pdf_doc_get_page (pdf_file *pf, long page_no, long *count_p, else if (!(box = crop_box) && !(box = media_box) && - !(box = art_box) && - trim_box) { - box = trim_box; + !(box = trim_box) && + art_box) { + box = art_box; } } medbox = media_box; |