forked from pool/texlive
.
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=363
This commit is contained in:
parent
79939e25c5
commit
e309c11cdc
@ -717,7 +717,7 @@
|
||||
+
|
||||
+int
|
||||
+read_pdf_info(char *image_name, char *page_name, int page_num,
|
||||
+ int pagebox_spec, int minor_pdf_version_wanted,
|
||||
+ int pagebox_spec, int major_pdf_version_wanted, int minor_pdf_version_wanted,
|
||||
+ int pdf_inclusion_errorlevel)
|
||||
+{
|
||||
+ PdfDocument *pdf_doc;
|
||||
@ -745,16 +745,16 @@
|
||||
+#ifdef POPPLER_VERSION
|
||||
+ pdf_major_version_found = pdf_doc->doc->getPDFMajorVersion();
|
||||
+ pdf_minor_version_found = pdf_doc->doc->getPDFMinorVersion();
|
||||
+ if ((pdf_major_version_found > 1)
|
||||
+ if ((pdf_major_version_found > major_pdf_version_wanted)
|
||||
+ || (pdf_minor_version_found > minor_pdf_version_wanted)) {
|
||||
+ const char *msg =
|
||||
+ "PDF inclusion: found PDF version <%d.%d>, but at most version <1.%d> allowed";
|
||||
+ if (pdf_inclusion_errorlevel > 0) {
|
||||
+ pdftex_fail(msg, pdf_major_version_found, pdf_minor_version_found, minor_pdf_version_wanted);
|
||||
+ pdftex_fail(msg, pdf_major_version_found, pdf_minor_version_found, major_pdf_version_wanted, minor_pdf_version_wanted);
|
||||
+ } else if (pdf_inclusion_errorlevel < 0) {
|
||||
+ ; /* do nothing */
|
||||
+ } else { /* = 0, give warning */
|
||||
+ pdftex_warn(msg, pdf_major_version_found, pdf_minor_version_found, minor_pdf_version_wanted);
|
||||
+ pdftex_warn(msg, pdf_major_version_found, pdf_minor_version_found, major_pdf_version_wanted, minor_pdf_version_wanted);
|
||||
+ }
|
||||
+ }
|
||||
+#else
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 22 10:27:33 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Adopt patch source-poppler0.59.0.patch to latest use of read_pdf_info()
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 22 09:49:08 UTC 2020 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user