-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
71 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. | ||
Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, | ||
Copyright (C) 2002-2025 by Jin-Hwan Cho and Shunsaku Hirata, | ||
the dvipdfmx project team. | ||
Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]> | ||
|
@@ -119,6 +119,7 @@ pdf_include_page (pdf_ximage *ximage, | |
xform_info info; | ||
pdf_obj *contents = NULL, *catalog; | ||
pdf_obj *page = NULL, *resources = NULL, *markinfo = NULL; | ||
pdf_obj *group = NULL; | ||
|
||
pf = pdf_open(ident, image_file); | ||
if (!pf) | ||
|
@@ -151,6 +152,10 @@ pdf_include_page (pdf_ximage *ximage, | |
pdf_release_obj(tmp); | ||
} | ||
|
||
/* | ||
* Handle page's Group | ||
*/ | ||
group = pdf_deref_obj(pdf_lookup_dict(page, "Group")); | ||
/* | ||
* Handle page content stream. | ||
*/ | ||
|
@@ -193,6 +198,9 @@ pdf_include_page (pdf_ximage *ximage, | |
pdf_add_dict(contents_dict, pdf_new_name("Resources"), | ||
pdf_import_object(resources)); | ||
pdf_release_obj(resources); | ||
|
||
if (group) | ||
pdf_add_dict(contents_dict, pdf_new_name("Group"), group); | ||
} | ||
|
||
pdf_close(pf); | ||
|
@@ -210,6 +218,8 @@ pdf_include_page (pdf_ximage *ximage, | |
pdf_release_obj(markinfo); | ||
if (page) | ||
pdf_release_obj(page); | ||
if (group) | ||
pdf_release_obj(group); | ||
if (contents) | ||
pdf_release_obj(contents); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef luatex_svn_revision_h | ||
#define luatex_svn_revision_h | ||
#define luatex_svn_revision 7653 | ||
#define luatex_svn_revision 7657 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters