Commit graph

6931 commits

Author SHA1 Message Date
wiz
e11076b7e0 qpdf: add missing jpeg dependency. Add missing files to PLIST. 2017-09-29 21:11:40 +00:00
wiz
48338b5063 qpdf: Update LICENSE for 7.0.0 2017-09-28 12:57:20 +00:00
ryoon
3c5908dc21 Update to 7.0.0
Changelog:
2017-09-15  Jay Berkenbilt  <ejb@ql.org>

	* 7.0.0: release

2017-09-12  Jay Berkenbilt  <ejb@ql.org>

	* Relicense qpdf under version 2.0 of the Apache License rather
	than version 2.0 of the Artistic License. Both are fine, but the
	Apache License is in more widespread use, and I like it a little
	better than Artistic-2.0. It is my intention that there be no
	change in what you can or can't do with qpdf. Versions of qpdf
	prior to version 7 were released under the terms of version 2.0 of
	the Artistic License. At your option, you may continue to consider
	qpdf to be licensed under those terms. Please see the manual for
	additional information.

	* Improve the error message that is issued when QPDFWriter
	encounters a stream that can't be decoded. In particular, mention
	that the stream will be copied without filtering to avoid data
	loss.

	* Add new methods to the C API to correspond to new additions to
	QPDFWriter:
	- qpdf_set_compress_streams
	- qpdf_set_decode_level
	- qpdf_set_preserve_unreferenced_objects
	- qpdf_set_newline_before_endstream

2017-08-25  Jay Berkenbilt  <ejb@ql.org>

	* Re-implement parser iteratively to avoid stack overflow on very
	deeply nested arrays and dictionaries. Fixes #146.

	* Detect infinite loop while finding additional xref tables. Fixes
	#149.

2017-08-22  Jay Berkenbilt  <ejb@ql.org>

	* 7.0.b1: release

	* Convert all README files to markdown. Names changed as follows:
	  - README --> README.md
	  - README.hardening --> README-hardening.md
	  - README.maintainer --> README-maintainer.md
	  - README-what-to-download.txt --> README-what-to-download.md
	  - README-windows.txt --> README-windows.md
	  The file README-windows-install.txt remains a text file.

2017-08-21  Jay Berkenbilt  <ejb@ql.org>

	* Add support for writing PCLm files. Most of the work was done by
	Sahil Arora <sahilarora.535@gmail.com> as part of a Google Summer
	of Code project in 2017. PCLm support is useful only for clients
	that specifically know how to create PCLm files. Support in qpdf
	is just for ensuring that objects are written in the correct order
	and for including some additional material in the output that is
	required by the PCLm standard.

2017-08-19  Jay Berkenbilt  <ejb@ql.org>

	* Remove --precheck-streams. This is enabled by default now
	without any efficiency cost. This feature was never released.

	* Update pdf-create example to illustrate use of additional image
	compression filters.

	* Add support for /RunLengthDecode and /DCTDecode:
	  - New pipeline types Pl_RunLength and Pl_DCT
	  - New command-line flags --compress-streams and --decode-level
	    to replace/enhance --stream-data
	  - New QPDFWriter::setCompressStreams and
 	    QPDFWriter::setDecodeLevel methods
	  Please see documentation, header files, and help messages for
	  details on these new features.

2017-08-12  Jay Berkenbilt  <ejb@ql.org>

	* Add QPDFObjectHandle::rotatePage to apply rotation to a page
	object. Add --rotate option to qpdf to specify page rotation from
	the command line.

	* Provide --verbose option that causes qpdf to print an indication
	of what files it is writing.

	* Change --single-pages to --split-pages and make it take an
	optional argument specifying the number of pages per file.

2017-08-11  Jay Berkenbilt  <ejb@ql.org>

	* Fix --newline-before-endstream to always add a newline before
	endstream even if the last character was already a newline. This
	is actually what's required by PDF/A. Fixes #133.

	* Handle encrypted files whose encryption parameters are too
	short. Fixes #96.

2017-08-10  Jay Berkenbilt  <ejb@ql.org>

	* Remove dependency on libpcre.

	* Be more forgiving of certain types of errors in the xref table
	that don't interfere with interpreting the table.

	* Remove unused "tracing" parameter from PointerHolder's
	(T*, bool) constructor. This change breaks source code
	compatibility, but since this argument to PointerHolder has not
	used for a long time and the presence of a boolean parameter in
	the primary constructor makes it too easy to use that by mistake
	when trying to use PointerHolder for arrays, it seems like it's
	finally time to take it out. If you have a compile error because
	of this change, please check to see whether you intended to use
	the (bool, T*) version of the constructor instead. If not, just
	remove the second parameter.

2017-08-09  Jay Berkenbilt  <ejb@ql.org>

	* When recovering stream length, find endobj without endstream as
	well as just looking for endstream. Be a little more lax about
	where we allow it to be found.

2017-08-05  Jay Berkenbilt  <ejb@ql.org>

	* Add --single-pages option to cause output to be written to a
	separate file for each page rather than one big file.

	* Process --pages options earlier so that certain inspection
	options, like --show-pages, can show the state after the merging
	operations.

2017-08-02  Jay Berkenbilt  <ejb@ql.org>

	* Fix off-by-one error in parsing pages options. Fixes #129.

2017-07-29  Jay Berkenbilt  <ejb@ql.org>

	* Support @filename and @- in the qpdf command-line tool to read
	command-line arguments, one per line, from the named file. @-
	reads from standard input. Fixes #16.

	* Detect when input file and output file are the same and exit to
	avoid overwriting and losing input file. Fixes #29.

	* When passing multiple inspection arguments, run --check first,
	and defer exit until after all the checks have been run. This
	makes it possible to force operations such as --show-xref to be
	delayed until after recovery attempts have been made. For example,
	if you have a file with a syntactically valid xref table that has
	some offsets that are incorrect, running qpdf --check --show-xref
	on that file will first recover the xref and the dump the
	recovered xref, while just running qpdf --show-xref will show the
	xref table as present in the file. Fixes #42.

	* When recovering stream length, indicate the recovered length.
	Fixes #44.

	* Add --newline-before-endstream command-line option and
	setNewlineBeforeEndstream method to QPDFWriter. This forces qpdf
	to always add a newline before the endstream keyword. It is a
	necessary but not sufficient condition for PDF/A compliance. Fixes
	#103.

	* Handle zlib data errors when decoding streams. Fixes #106.

	* Improve handling of files where the "stream" keyword is not
	followed by proper line terminators. Fixes #104.

	* Fix content stream parsing to handle cases of structures within
	the stream split across stream boundaries. Fixes #73.

2017-07-28  Jay Berkenbilt  <ejb@ql.org>

	* Add --preserve-unreferenced command-line option and
	setPreserveUnreferencedObjects method to QPDFWriter. This option
	causes QPDFWriter to write all objects from the input file to the
	output file regardless of whether the objects are referenced.
	Objects are written to the output file in numerical order from the
	input file. This option has no effect for linearized files.

2017-07-27  Jay Berkenbilt  <ejb@ql.org>

	* Add --precheck-streams command-line option and setStreamPrecheck
	method to QPDFWriter to tell QPDFWriter to attempt decoding a
	stream fully before deciding whether to filter it or not.

	* Recover gracefully from streams that aren't filterable because
	the filter parameters are invalid in the stream dictionary or the
	dictionary itself is invalid.

	* Significantly improve recoverability from invalid qpdf objects.
	Most conditions in basic object parsing that used to cause qpdf to
	exit are now warnings. There are still many more opportunities for
	improvements of this sort beyond just object parsing.

2017-07-26  Jay Berkenbilt  <ejb@ql.org>

	* Fixes to infinite loops below also fix problems reported in
	other issues and cover CVE-2017-11624, CVE-2017-11625,
	CVE-2017-11626, and CVE-2017-11627.

	* Don't attempt to interpret syntactic keywords (like R and
	endobj) found while parsing content streams.

	* Detect infinite loops while resolving objects. This could happen
	if something inside an object that had to be resolved during
	parsing, such as a stream length, recursively referenced the
	object being resolved.

	* CVE-2017-9208: Handle references to and appearance of object 0
	as a special case. Object 0 is not allowed, and qpdf was using it
	internally to represent direct objects.

	* CVE-2017-9209: Fix infinite loop caused by attempting to
	reconstruct the xref table while already in the process of
	reconstructing the xref table.

	* CVE-2017-9210: Fix infinite loop caused by attempting to unparse
	an object for inclusion in the text of an exception.
2017-09-28 12:50:36 +00:00
ryoon
1e0ddc3aea Update to 0.9.7
Changelog:
pdf2djvu (0.9.7) unstable; urgency=low

  * Fix build failure with Poppler ≥ 0.58.
  * Improve the build system:
    + Fix non-portable sed(1) calls in the manpage translations makefile.
    + Use relative paths when building OpenJPEG for Windows (so that absolute
      paths are not included in the binary).
  * Upgrade libraries bundled with the Windows package:
    - Poppler 0.59.

 -- Jakub Wilk <jwilk@jwilk.net>  Mon, 04 Sep 2017 21:15:05 +0200

pdf2djvu (0.9.6) unstable; urgency=low

  * Port the code to C++11.
    Incidentally, this fixes build failure with Poppler ≥ 0.57.
  * Fix GCC 8 warnings about catching polymorphic type by value.
    https://github.com/jwilk/pdf2djvu/issues/122
  * Upgrade libraries bundled with the Windows package:
    - Poppler 0.57;
    - GraphicsMagick 1.3.26;
    - Expat 2.2.3;
    - FreeType 2.8;
    - fontconfig 2.12.4.
  * Windows: build Poppler against OpenJPEG 2.1.2.
  * Improve the test suite.

 -- Jakub Wilk <jwilk@jwilk.net>  Mon, 07 Aug 2017 14:52:02 +0200
2017-09-28 12:41:34 +00:00
markd
bacea86141 Eat some whitespace. 2017-09-28 10:07:37 +00:00
markd
ad7fba4716 tex-xetex: add some dependencies 2017-09-28 10:02:38 +00:00
wiz
290ca4c8fd poppler016: remove, no users left in pkgsrc 2017-09-26 10:30:20 +00:00
wiz
06bd0ca307 *: remove qt3 and the packages using it, including KDE3
Announced in https://mail-index.netbsd.org/pkgsrc-users/2017/09/10/msg025556.html
2017-09-26 10:26:54 +00:00
joerg
eb62eb28aa Bump revision for podofo changes. 2017-09-25 22:26:51 +00:00
joerg
8c917f778e Apply upstream fix for providing the same ABI for C++03 and C++11.
Bump revision. Belatedly fix b3.mk.
2017-09-25 22:26:27 +00:00
jperkin
24caacb538 poppler: Apply Homebrew patch to fix build with older clang. 2017-09-20 15:21:10 +00:00
wiz
f46b680b40 p5-LaTeX-Encode: remove reference to non-existent file 2017-09-18 12:08:12 +00:00
maya
33ebf687dc revbump for requiring ICU 59.x 2017-09-18 09:52:56 +00:00
prlw1
f587649def Remove patch which became unnecessary with
r17868 | jghali | 2012-11-10 14:51:17 +0000 (Sat, 10 Nov 2012) | 1 line

#11161 related: fix compilation of ioapi.c and some other files prevented by patching of zlib headers in gentoo
2017-09-10 16:23:02 +00:00
tnn
ad13cf426d Switch to internal poppler due to reports of crashes from the last change.
Bump PKGREVISION.
2017-09-09 17:06:51 +00:00
markd
79a624f8f2 Remove tex-acromake{,-doc} tex-circle{,-doc} tex-misc209
Delete obsolete texlive packages that were only referenced from teTeX
2017-09-08 21:57:40 +00:00
wiz
d5548fce3e Updated poppler-data to 0.4.8.
One additional cmap.
2017-09-08 20:26:55 +00:00
jaapb
410a1001fa Recursive revbump associated with update of ocaml to 4.05 2017-09-08 09:51:18 +00:00
markd
b90159b27c Add tex-knuth-lib dependency 2017-09-08 02:47:24 +00:00
tnn
72b2c683bb switch to built-in poppler due to incompatibility with the new poppler Object API 2017-09-07 14:17:07 +00:00
tnn
58072477dd try to adapt to new poppler Object API 2017-09-07 14:15:52 +00:00
prlw1
d306a5158d Fix build with poppler 0.58 2017-09-07 11:24:29 +00:00
wiz
44faa0cdcd Remove teTeX* packages and references to them.
teTeX was desupported in 2006, and we have texlive in pkgsrc since 2009.
2017-09-06 16:49:21 +00:00
wiz
1f5a068e53 Remove reference to tex-japanese. Bump PKGREVISION. 2017-09-06 16:29:25 +00:00
wiz
8e8e9d37fa Remove references to tex-misc. Bump PKGREVISION for tex-plain. 2017-09-06 16:27:19 +00:00
markd
f567ad6264 Remove tex-kotex{,-doc} tex-kotex-dev{,-doc}
No longer in texlive
2017-09-06 12:54:56 +00:00
markd
9bf93e9527 Remove tex-thailatex
No longer in texlive
2017-09-06 12:37:46 +00:00
markd
7e69ca52c9 Remove tex-misc
No longer in texlive
2017-09-06 12:31:19 +00:00
markd
9eff4f5312 Remove tex-japanese{,-doc}
No longer in texlive
2017-09-06 12:27:42 +00:00
markd
7d151a630f Remove tex-context-lilypond
No longer in texlive
2017-09-06 12:12:33 +00:00
markd
788896ad53 Remove tex-context-fixme, tex-context-games{,-doc}
No longer in texlive
2017-09-06 12:11:44 +00:00
markd
53d1b87972 Remove tex-babel-bahasa
No longer in texlive.
2017-09-06 11:58:32 +00:00
markd
760f853cde Remove tex-acmtrans{,-doc}
No longer in texlive.
2017-09-06 11:52:41 +00:00
markd
b8d9795afb tex-treetex homepage link works for me, fix tex-treetex-doc to match 2017-09-06 11:32:32 +00:00
wiz
3110a02dbc Comment out dead sites. 2017-09-06 10:40:25 +00:00
wiz
1fc957a0ce Follow some redirects. 2017-09-06 09:02:59 +00:00
tnn
bbbb632be7 add a missing include 2017-09-05 09:39:41 +00:00
ryoon
6a23a6f319 Recursive revbump from poppler update 2017-09-04 20:20:53 +00:00
ryoon
8b514ff842 Update to 0.59.0
Changelog:
Release 0.59.0
        core:
         * Fix infinite recursion in NameTree parsing in broken files

        utils:
         * pdfunite: Fix API porting error that caused abort in some cases
         * pdfinfo: Fix crashes and memory leaks when using -dests
         * pdfinfo: use GooString.append instead of sprintf/strcat
         * pdfimages: Fix warning when compiling with cygwin

        build system:
         * Fix cygwin 32-bit compile
         * cmake tweaks
2017-09-04 19:57:18 +00:00
wiz
ff22ec594f Follow some redirects. 2017-09-04 18:08:18 +00:00
wiz
1770bcacd4 Comment out dead sites. 2017-09-04 18:00:49 +00:00
wiz
43d2eb37ae Recursive bump for poppler 0.58 shlib bump. 2017-09-04 15:08:51 +00:00
wiz
988be511d9 Update poppler* to 0.58.0:
Release 0.58.0
        core:
         * CairoOutputDev: cairo 1.14 now has high quality downscaling
         * Signature related improvements. Bug #99271
         * Tweak which cmap we use. Bug #101855
         * Memory leak fixes
         * Substantial rework of the internals
         * win32: call ANSI functions directly. Bug #100312
         * Add some documentation

        qt5:
         * Expose signature information.
         * ArthurOutputDev: initialize the image with the paper color. Bug #102129
         * Fix copy'n'paste bugs: Qt4 -> Qt5
         * ArthurOutputDev: Properly set the QPainter transformation
         * ArthurOutputDev: Use Qt::SvgMiterJoin instead of Qt::MiterJoin. Bug #102356

        utils:
         * pdfinfo: add -dests option to print named destinations. Bug #97262
         * pdftocairo: add -jpegopt for setting jpeg compression parameters. Bug #45727
         * pdftoppm: add -jpegopt for setting jpeg compression parameters. Bug #45727
         * pdfimages: support listing/extracting inline images. Bug #25625

        build system:
         * cmake: Various Windows fixes
         * cmake: Use -std=c++11 instead of -std=gnu++11

        cpp:
         * Fix page.text() not taking page orientation into account. Bug #94517
2017-09-04 15:08:29 +00:00
leot
a016e953f2 Update print/cups to 2.2.4
pkgsrc changes:
- Pass --with-exe-file-perm=0755 to configure in order to be able to strip
  executables and shared objects (the cups' default is 0555 and that's also
  inconsistent with pkgsrc's BINMODE)

Changes:
CHANGES IN CUPS V2.2.4
----------------------
- The scheduler did not remove old job files (Issue #4987)
- cupsEnumDests did not return early when all printers had been discovered
  (Issue #4989)
- The CUPS build system now supports cross-compilation (Issue #4897)
- Added a new CUPS Programming Manual to replace the aging API documentation.
- Added the `cupsAddIntegerOption` and `cupsGetIntegerOption` functions
  (Issue #4992)
- The `cupsGetDests` and `cupsCreateJob` functions now support Bonjour printers
  (Issue #4993)
- Added a USB quirk rule for Lexmark E260dn printers (Issue #4994)
- Fixed a potential buffer overflow in the `cupstestppd` utility (Issue #4996)
- IPP Everywhere improvements (Issue #4998)
- Fixed the "cancel all jobs" function in the web interface for several
  languages (Issue #4999)
- Fixed issues with local queues (Issue #5003, Issue #5008, Issue #5009)
- The `lpstat` command now supports a `-e` option to enumerate local printers
  (either previously added or on the network) that can be accessed
  (Issue #5005)
- The `lp` and `lpr` commands now support printing to network printers that
  haven't yet been added (Issue #5006)
- Fixed a typo in the mime.types file.
- Fixed a bug in the Spanish web interface template (Issue #5016)
- The `cupsEnumDests*` and `cupsGetDest*` functions now report the value of the
  "printer-is-temporary" Printer Status attribute (Issue #5028)
- Added Chinese localization (Issue #5029)
- The `cupsCheckDestSupported` function did not support `NULL` values
  (Issue #5031)
- Fixed some issues in the RPM spec file (Issue #5032)
- The `cupsConnectDest` function now supports the `CUPS_DEST_FLAGS_DEVICE` flag
  for explicitly connecting to the device (printer) associated with the
  destination.
- The `SSLOptions` directive in "client.conf" and "cupsd.conf" now supports
  `DenyCBC` and `DenyTLS1.0` options (Issue #5037)
2017-09-03 11:30:54 +00:00
leot
390cb53a57 Whitespaces vs tabs police (suggested by pkglint, NFCI) 2017-09-03 11:29:10 +00:00
leot
89f7c282cc Update print/cups-filters to 1.17.2
Changes:
CHANGES IN V1.17.2
 - libcupsfilters: Fixed outstanding bug in PCLm with JPEG (DCT)
   compression. Now PCLm support is completely working.

CHANGES IN V1.17.1
 - libcupsfilters: Added direct PNG printing to the PPD
   generator, the one of CUPS has it, too.
 - libcupsfilters: In the PPD file generator renamed the option
   "cupsPrintQuality" into the IPP name "print-quality" as CUPS
   does not update the "print-quality=4" entry in the filter
   command line based on the setting of "cupsPrintQuality"
   (CUPS issue #5090).
 - libcupsfilters: Completely redone the way how to determine
   the resolutions to use for the default resolution and print
   quality option in the PPDs generated for IPP
   printers. Resolution lists from IPP attributes are now read
   into sorted, duplicate-free lists with wrong resolutions
   removed or fixed. Resolutions actually used are the common
   ones between the supported PDLs, PDls with inferior maximum
   resolution or with broken resolution list are skipped
   (Debian bug #868360, Ubuntu bug #1712019, CUPS issue #5088,
   CUPS issue #5091).
 - rastertopdf: Prefer RLE compression instead of Flate as
   there are HP printers where Flate is buggy.
 - Build system: Fixed help mesage for "--enable-driverless"
   configure option (Bug #1405).

CHANGES IN V1.17.0
 - rastertopdf, rastertopclm, driverless, cups-browsed,
   libcupsfilters: Added support for the PCLm output format for
   driverless printing on Mopria and Wi-Fi Direct
   printers. This is the Google Summer of Code 2017 project of
   Sahil Arora (sahilarora dot 535 at gmail dot com). Thank you
   very much for your great work!  The PCLm support requires
   QPDF 7.0.0 or later.

CHANGES IN V1.16.4
 - Build system: Switched over to C11 standard with GNU
   extensions (-std=gnu11).
 - Build system: Removed -pedantic flag as it is only needed
   for compatibility with commercial compilers like the ones of
   Windows (and we use GNU extensions anyway).
 - libfontembed, texttopdf: reverted removal of anonymous
   union.

CHANGES IN V1.16.3
 - libfontembed: Reverted unneeded soname change.

CHANGES IN V1.16.2
 - README: Minimum CUPS requirement of cups-filters is CUPS
   1.4.x.  It does not build with earlier CUPS versions (Bug
   #993).
 - driverless, foomatic-rip: Create relative symbolic links.
 - All C/C++ files: Silenced all compiler warnings, at least
   the ones appearing when building on Ubuntu Linux 17.10 with
   GCC 7.1.0.
 - README: Updated the introduction section to reflect the
   current functionality of cups-filters, and the build
   requirements for the Poppler-based filters (C++11: Bug
   #1404, Build configuration of Poppler: Bug #1257). Thanks to
   Roland Hieber (r dot hieber at pengutronix dot de) to find
   out about this.
 - pdftoopvp, bannertopdf, pdftoraster: Build with C++11
   standard as some features of this standard are needed by
   these filters (or by Poppler). Thanks to Roland Hieber (r
   dot hieber at pengutronix dot de) for the patch (Bug #1404).
2017-09-03 11:27:47 +00:00
wiz
42426a5a45 Follow some redirects. 2017-09-03 08:53:04 +00:00
wiz
9ddb7f9e9c Comment out dead MASTER_SITES/HOMEPAGEs. 2017-09-03 08:36:49 +00:00
wiz
c0fe3330e6 Bump libzip ABI depends and PKGREVISIONs of its users for bzip2 dependency. 2017-09-02 22:02:24 +00:00
kleink
a8fb742a0c As the update to 0.40 noted, "WeasyPrint now depends on cssselect2 instead
of cssselect and lxml."

Thus retarget at the newly-added py-cssselect2 package, so weasyprint no
longer fails at startup by assertion.  Drop lxml.

Bump PKGREVISION.
2017-09-02 16:16:34 +00:00