summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-02-14 18:18:42 +0000
committerKarl Berry <karl@freefriends.org>2014-02-14 18:18:42 +0000
commit1dbb823194957da4ababb6e4c3e93e788a335064 (patch)
treed305a1175cf077a3b5eed81fead6df6b7cf6e5fe /Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
parent48d6f6d3532593420a7e42cee26296b7d3e9aec8 (diff)
new parameter \pdfsuppresswarningpagegroup
git-svn-id: svn://tug.org/texlive/trunk@32967 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/pdftoepdf.cc')
-rw-r--r--Build/source/texk/web2c/pdftexdir/pdftoepdf.cc18
1 files changed, 13 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
index fa7fa1bf1d5..736371035c7 100644
--- a/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
+++ b/Build/source/texk/web2c/pdftexdir/pdftoepdf.cc
@@ -62,11 +62,16 @@ extern "C" {
#include "Error.h"
// This file is mostly C and not very much C++; it's just used to interface
-// the functions of xpdf, which happens to be written in C++.
+// the functions of xpdf, which are written in C++.
extern "C" {
#include <pdftexdir/ptexmac.h>
#include <pdftexdir/pdftex-common.h>
+
+// This function from pdftex.web gets declared in pdftexcoerce.h in the
+// usual web2c way, but we cannot include that file here because C++
+// does not allow it.
+extern int getpdfsuppresswarningpagegroup(void);
}
// The prefix "PTEX" for the PDF keys is special to pdfTeX;
@@ -935,10 +940,13 @@ void write_epdf(void)
pageDict->lookupNF((char *)"Group", &dictObj);
if (!dictObj->isNull()) {
if (pdfpagegroupval == 0) {
- // another pdf with page group was included earlier on the same page;
- // copy the Group entry as is
- pdftex_warn
- ("PDF inclusion: multiple pdfs with page group included in a single page");
+ // another pdf with page group was included earlier on the
+ // same page; copy the Group entry as is. See manual for
+ // info on why this is a warning.
+ if (getpdfsuppresswarningpagegroup() == 0) {
+ pdftex_warn
+ ("PDF inclusion: multiple pdfs with page group included in a single page");
+ }
pdf_newline();
pdf_puts("/Group ");
copyObject(&dictObj);