]>
git.ipfire.org Git - thirdparty/cups-filters.git/log
Till Kamppeter [Thu, 7 Oct 2021 21:51:33 +0000 (23:51 +0200)]
Removed filter/textcommon.c
Its functionality has moved to libcupsfilters, as there it used by the
filter functions.
R. I. P. remainder of the (too) long era of classic CUPS filters.
Till Kamppeter [Thu, 7 Oct 2021 21:43:55 +0000 (23:43 +0200)]
Updated NEWS
Pratyush Ranjan [Thu, 7 Oct 2021 21:40:54 +0000 (03:10 +0530)]
libcupsfilters, texttotext: Converted texttotext into a filter function
Pull request #425
Till Kamppeter [Tue, 28 Sep 2021 10:04:47 +0000 (12:04 +0200)]
libcupsfilters: Fixed typo in PPD generator
Till Kamppeter [Wed, 22 Sep 2021 14:24:35 +0000 (16:24 +0200)]
Ported changes in CUPS' cups/ppd-cache.c file
From original commit to CUPS:
https://github.com/OpenPrinting/cups/commit/
a638ae140
Update mapping of media-source, media-type, and output-bin to match both PPD
and PWG names (CUPS Issue #238)
Add printer-privacy-policy-uri, printer-mandatory-job-attributes, and
printer-requested-job-attributes to PPD file.
Till Kamppeter [Wed, 22 Sep 2021 10:24:24 +0000 (12:24 +0200)]
libppd: Improved caching of PPD's page sizes and custom page size limits
1. If an PPD page size has non-standard dimensions, pwgMediaForSize()
returns "custom_WIDTHxHEIGHTuu_WIDTHxHEIGHTuu" and not NULL, while we
assume that we would get NULL in such a case. So consider "custom_..."
PWG page size names also as a PWG size not having been found. This
gives PWG page size nmaes of "pp_lowerppd_WIDTHxHEIGHTuu" style, much
more useful and the page size not being skipped by PAPPL's web
interface.
2. If the PPD defines a too high demension (something like ~30 m is
enough) for the maximum allowed custom page size, the generated PWG
page size name ("custom_max_WIDTHxHEIGHTuu") contains negative numbers
due to an integer overflow. If this happens, we sanitize the string
now replacing these negative numbers by a high integer value (10000
inches or 100000 mm). This PWG size name is used by PAPPL's web
interface to know about the allowed dimensions for a custom page
size. With a negative value the web interface inserts 0, making the
max dimension smaller than the min and with this clicks on the "Save
Changes" button on the "Media" web interface page of PAPPL are
silently ignored.
nielsenb-jf [Tue, 21 Sep 2021 20:59:28 +0000 (15:59 -0500)]
Fix build issues
See issue #419
Add missing line continuation character in libcupsfilters-la_LIBADD
stanza. This fixes "make[2]: lm: No such file or directory" errors while
building.
Move fontembed library before cupsfilters library, this fixes
"/usr/bin/ld: cannot find -lfontembed" errors during install. This may
just be a workaround for dependency resolving issues elsewhere.
Till Kamppeter [Mon, 20 Sep 2021 08:36:28 +0000 (10:36 +0200)]
libppd: In string.c added _ppdMutexUnlock() also before abort()
Issue #423.
Note: This actually only applied when building with DEBUG_GUARDS set.
Till Kamppeter [Sun, 19 Sep 2021 21:39:27 +0000 (23:39 +0200)]
libppd: Fixed PPD URIs when generating dynamic PPDs
The PPD URIs of the PPD collection handling of libppd are not
identical with the PPD URIs of CUPS and so not identical with the PPD
URIs used by the dynamic PPD generator executables (the ones which are
in /usr/lib/cups/driver/ for CUPS). The difference is in the scheme,
the part before the colon. The schemes for the dynamic PPD generator
did not get extracted correctly. Most dynamic PPD generatores do not
use the scheme internally and therefore work also with the scheme
corrupted, like pyppd or HPLIP, but Gutenprint does not, as it checks
the version by the scheme,
This commit fixes the extraction of the scheme and so all dynamic PPD
generators should work now.
Till Kamppeter [Sun, 19 Sep 2021 17:44:31 +0000 (19:44 +0200)]
Updated NEWS
Till Kamppeter [Sun, 19 Sep 2021 17:32:33 +0000 (19:32 +0200)]
libcupsfilters: Let colord_get_profile_for_device_id() not return empty file name
If the function colord_get_profile_for_device_id() returns an empty
file name, the color generates an error message in the CUPS
error_log. Some print dialogs report every log message of level error
to the user even if the job got correctly printed.
Till Kamppeter [Thu, 16 Sep 2021 18:29:11 +0000 (20:29 +0200)]
Updated NEWS
Till Kamppeter [Wed, 15 Sep 2021 18:51:02 +0000 (20:51 +0200)]
libppd: In IPP-attr-to-PPD-option auto mapper consider "ColorMode" also with prefix
This way we also cover "cupsColorMode" for example which appears in
auto-generated PPDs for driverless IPP printers (in case we cannot
print directly to the printer but only have access via a CUPS queue).
Till Kamppeter [Thu, 9 Sep 2021 10:39:16 +0000 (12:39 +0200)]
libcupsfilters: More PPD preset rules, especially for HP
Checking the PPD file for the HP LaserJet 4050 (PostScript) found more
option/choice names of options which influence print quality:
- Smoothing
- Halftone
- ProRes(600/1200/2400)
Also analyse choice names for options which contain "Resolution" in
their names.
Till Kamppeter [Tue, 7 Sep 2021 09:55:56 +0000 (11:55 +0200)]
libppd: In the preset generator also check for "HPPJLColorAsGray"
Some of HPLIP's PostScript PPDs use "HPPJLColorAsGray" with choices
"yes" and "no" instead of ""HPColorAsGray" with "True" and "False".
Till Kamppeter [Sun, 5 Sep 2021 09:36:28 +0000 (11:36 +0200)]
foomatic-rip: Debug message was wrongly sent to stdout and not to log
Issue #422
Till Kamppeter [Fri, 3 Sep 2021 21:21:26 +0000 (23:21 +0200)]
libcupsfilters: In ghostscript() pass on LD_LIBRARY_PATH to Ghostscript
In unusual environments (are they still actually unusual?) like Snaps
or other sandboxed packages libraries are not always in standard
locations and the LD_LIBRARY_PATH environment variable tells about the
extra locations then. So when we continue to block out the caller's
environment variables when we call Ghostscript, we have to pass on at
least LD_LIBRARY_PATH.
Till Kamppeter [Wed, 1 Sep 2021 13:21:52 +0000 (15:21 +0200)]
Fixed bugs revealed by LGTM.com (on port to CUPS)
This especially revealed that on selecting the final setting for the
color mode/quality presets only 2 of the intended 3 passes were done.
Till Kamppeter [Tue, 31 Aug 2021 16:39:21 +0000 (18:39 +0200)]
libppd: In PPD preset generator support HP LJ Pro m... series (HPLIP)
suraj kulriya [Thu, 26 Aug 2021 18:23:12 +0000 (23:53 +0530)]
libcupsfilters: Log message fixes in color management functions
suraj kulriya [Thu, 26 Aug 2021 14:19:55 +0000 (19:49 +0530)]
libcupsfilters: For color management functions use log functions
Till Kamppeter [Thu, 26 Aug 2021 10:25:30 +0000 (12:25 +0200)]
libppd: ppdCacheAssignPresets() supports more Economy Mode settings now
Till Kamppeter [Wed, 25 Aug 2021 23:16:18 +0000 (01:16 +0200)]
libppd: The preset generator now also supports Foomatic's composite options
Till Kamppeter [Wed, 25 Aug 2021 08:55:10 +0000 (10:55 +0200)]
libcupsfilters: In ieee1284NormalizeMakeAndModel() extract driver info with reexp
Till Kamppeter [Tue, 24 Aug 2021 08:23:42 +0000 (10:23 +0200)]
bannertopdf: Removed some files which got unneeded after filter function conversion
suraj kulriya [Tue, 24 Aug 2021 07:45:11 +0000 (13:15 +0530)]
libcupsfilters: print-rendering-intent in pdftoraster() via already defined function
suraj kulriya [Tue, 24 Aug 2021 07:11:01 +0000 (12:41 +0530)]
libcupsfilters: print-rendering-intent support in mupdftoraster()
suraj kulriya [Tue, 24 Aug 2021 06:33:58 +0000 (12:03 +0530)]
libcupsfilters: print-rendering-intent support for ghostscript() and imagetoraster()
Till Kamppeter [Mon, 23 Aug 2021 23:00:51 +0000 (01:00 +0200)]
libcupsfilters: Silenced warnings in bannertopdf
suraj kulriya [Mon, 23 Aug 2021 22:46:21 +0000 (04:16 +0530)]
libcupsfilters: Made bannertopdf filter PPD-file-independent
Pratyush Ranjan [Mon, 23 Aug 2021 22:41:34 +0000 (04:11 +0530)]
libcupsfilters, mupdftoraster: Converted mupdftoraster into a filter function
Samuel Thibault [Wed, 18 Aug 2021 23:08:38 +0000 (01:08 +0200)]
textbrftoindex: Fix control character filtering (#409)
'-' does not work with $'\000' actually, so we have to filter it out
separately.
Till Kamppeter [Tue, 17 Aug 2021 22:52:42 +0000 (00:52 +0200)]
libcupsfilters: Understand both "graphic" and "graphics", also silenced warnings
Till Kamppeter [Tue, 17 Aug 2021 13:12:06 +0000 (15:12 +0200)]
libppd: Also write print-content-optimize presets into cache file
Till Kamppeter [Tue, 17 Aug 2021 12:42:57 +0000 (14:42 +0200)]
libppd: Generate correct presets with a cupsPrintQuality=3/4/5 option
Till Kamppeter [Tue, 17 Aug 2021 09:24:54 +0000 (11:24 +0200)]
libcupsfilters, libppd: Corrected declarations in .h files, silencing warnings
suraj kulriya [Tue, 17 Aug 2021 08:36:32 +0000 (14:06 +0530)]
libcupsfilters: Made pdftoraster filter PPD-file-independent
Till Kamppeter [Tue, 17 Aug 2021 08:32:05 +0000 (10:32 +0200)]
Build system: Removed unneeded dependencies from bannertopdf filter stub build
Pratyush Ranjan [Tue, 17 Aug 2021 08:25:33 +0000 (13:55 +0530)]
libcupsfilters, bannertopdf: Converted bannertopdf into a filter function
Till Kamppeter [Sun, 15 Aug 2021 22:39:12 +0000 (00:39 +0200)]
libcupsfilters: Sanitize options and env variables in filterExternalCUPS()
Till Kamppeter [Sun, 15 Aug 2021 13:19:04 +0000 (15:19 +0200)]
libcupsfilters: Added handling of the device URI in filterExternalCUPS
Till Kamppeter [Wed, 11 Aug 2021 17:25:37 +0000 (19:25 +0200)]
Build system: Added libfontembed dependency for libcupsfilters in Makefile.am
Till Kamppeter [Fri, 6 Aug 2021 21:08:48 +0000 (23:08 +0200)]
libcupsfilters: In pwgtoraster() do not rotate/flip duplex sheet back sides
Till Kamppeter [Thu, 5 Aug 2021 21:26:50 +0000 (23:26 +0200)]
libcupsfilters: Minor clean-up in filter.h
Till Kamppeter [Thu, 5 Aug 2021 19:42:49 +0000 (21:42 +0200)]
Updated NEWS
Till Kamppeter [Thu, 5 Aug 2021 19:39:06 +0000 (21:39 +0200)]
Build system: Removed unneeded linking of libfontembed
Pratyush Ranjan [Thu, 5 Aug 2021 19:31:31 +0000 (01:01 +0530)]
libcupsfilters, texttopdf: Converted texttopdf into a filter function
Till Kamppeter [Thu, 5 Aug 2021 19:28:12 +0000 (21:28 +0200)]
libcupsfilters: filterExternalCUPS() supports backends in discovery mode
Till Kamppeter [Tue, 3 Aug 2021 19:19:55 +0000 (21:19 +0200)]
libcupsfilters: Added support for the back and side channels
Till Kamppeter [Tue, 3 Aug 2021 19:08:20 +0000 (21:08 +0200)]
libcupsfilters: Silence warnings
Till Kamppeter [Mon, 2 Aug 2021 16:13:06 +0000 (18:13 +0200)]
libcupsfilters: In ghostscript() added links to Ghostscript bug reports
suraj kulriya [Mon, 2 Aug 2021 12:58:44 +0000 (18:28 +0530)]
libcupsfilters: Made pclmtoraster filter PPD-file-independent
suraj kulriya [Mon, 2 Aug 2021 12:46:10 +0000 (18:16 +0530)]
libcupsfilters: Made pdftopdf filter PPD-file-independent
Till Kamppeter [Sun, 1 Aug 2021 20:56:14 +0000 (22:56 +0200)]
libcupsfilters: White space/indentation clean-up in ghostscript()
Till Kamppeter [Sun, 1 Aug 2021 20:51:27 +0000 (22:51 +0200)]
libcupsfilters: Added raster-only PDF and PCLm output support ghostscript()
Till Kamppeter [Sun, 1 Aug 2021 13:56:27 +0000 (15:56 +0200)]
libcupsfilters, foomatic-rip: Added streaming mode for filters
Till Kamppeter [Fri, 30 Jul 2021 20:52:34 +0000 (22:52 +0200)]
libcupsfilters: Corrected source file permissions
Till Kamppeter [Fri, 30 Jul 2021 20:11:06 +0000 (22:11 +0200)]
libcupsfilters: Cleaned up rastertopwg(), added job cancel support
Till Kamppeter [Fri, 30 Jul 2021 19:14:56 +0000 (21:14 +0200)]
libcupsfilters: Removed "ppdclose()" from filter functions
Till Kamppeter [Fri, 30 Jul 2021 12:01:38 +0000 (14:01 +0200)]
libcupsfilters: In the pdftoraster() filter function fixed input stream handling
Till Kamppeter [Thu, 29 Jul 2021 21:30:48 +0000 (23:30 +0200)]
.gitignore: Added "pwgtoraster" file
Till Kamppeter [Thu, 29 Jul 2021 21:17:37 +0000 (23:17 +0200)]
libcupsfilters: In pdftopdf() do not let QPDF close the output file to not crash on the output of the postamble
Till Kamppeter [Thu, 29 Jul 2021 09:59:02 +0000 (11:59 +0200)]
libppd: In ppdCacheAssignPresets() made resolution parsing in choice name case-insensitive
Till Kamppeter [Wed, 28 Jul 2021 22:22:37 +0000 (00:22 +0200)]
libppd: Added resolution support to ppdCacheAssignPresets()
Till Kamppeter [Wed, 28 Jul 2021 10:44:12 +0000 (12:44 +0200)]
Sample PPDs: To the Ricoh PDF PPD added borderless page sizes and fixed OpenUI/CloseUI bug
Till Kamppeter [Wed, 28 Jul 2021 10:16:38 +0000 (12:16 +0200)]
Sample PPDs: Add borderless page size definitions to PDF PPDs
Till Kamppeter [Mon, 26 Jul 2021 20:17:24 +0000 (22:17 +0200)]
Sample PPDs: Fixed typo in the PDF PPDs
Till Kamppeter [Mon, 26 Jul 2021 19:53:35 +0000 (21:53 +0200)]
Sample PPDs: From the PDF PPD files removed the unneeded "*cupsFilters2: ..."
Till Kamppeter [Mon, 26 Jul 2021 19:01:14 +0000 (21:01 +0200)]
libcupsfilters: Removed unneeded inputfp from rastertopdf()
Till Kamppeter [Sun, 25 Jul 2021 22:13:31 +0000 (00:13 +0200)]
libppd: Typo/Copy&Paste fixes in ppdCacheAssignPresets()
Till Kamppeter [Sun, 25 Jul 2021 15:58:52 +0000 (17:58 +0200)]
libppd: Improve print quality presets for Gutenprint and HPLIP
Till Kamppeter [Sat, 24 Jul 2021 14:54:26 +0000 (16:54 +0200)]
libppd: Set Ricoh's "RIPrintMode" option as preset controlled by print-quality
Till Kamppeter [Sat, 24 Jul 2021 07:21:42 +0000 (09:21 +0200)]
libppd: Auto-fill presets in PPD cache, add presets for content optimize
Till Kamppeter [Mon, 19 Jul 2021 15:40:07 +0000 (17:40 +0200)]
libcupsfilters: In pwgtoraster() overspray stretching also fixes rounding errors
Till Kamppeter [Mon, 19 Jul 2021 15:21:58 +0000 (17:21 +0200)]
libcupsfilters: In pwgtoraster() fixed pixel line stretching for overspray
Till Kamppeter [Mon, 19 Jul 2021 09:11:07 +0000 (11:11 +0200)]
libppd: In the ppdCacheGetPageSize() function check also page size variants
Till Kamppeter [Sun, 18 Jul 2021 18:33:59 +0000 (20:33 +0200)]
libcupsfilters: in pwgtoraster() Added support for overspray borderless in PPDs
Till Kamppeter [Sun, 18 Jul 2021 09:28:40 +0000 (11:28 +0200)]
libcupsfilters: Removed debug helper lines in pwgtoraster() filter function
Till Kamppeter [Fri, 16 Jul 2021 18:24:43 +0000 (20:24 +0200)]
Updated NEWS
Bryan Mason [Fri, 16 Jul 2021 18:19:42 +0000 (11:19 -0700)]
libcupsfilters: Fix page range like "10-" in pdftopdf() filter function
Till Kamppeter [Fri, 16 Jul 2021 18:10:31 +0000 (20:10 +0200)]
libcupsfilters, pwgtoraster: Added pwgtoraster() filter function
Till Kamppeter [Wed, 14 Jul 2021 21:44:42 +0000 (23:44 +0200)]
pdftoraster: Added support for FINAL_CONTENT_TYPE env variable
Till Kamppeter [Wed, 14 Jul 2021 21:27:45 +0000 (23:27 +0200)]
libcupsfilters: Several fixes on the pdftoraster() filter function
Jonathan Strine [Mon, 12 Jul 2021 22:18:32 +0000 (18:18 -0400)]
libcupsfilters: Use wildcard tag search in the PPD generator
Till Kamppeter [Mon, 12 Jul 2021 21:21:45 +0000 (23:21 +0200)]
libcupsfilters: Somewhat simpler way to fix the double free in imagetoraster()
suraj kulriya [Mon, 12 Jul 2021 09:47:07 +0000 (15:17 +0530)]
libcupsfilters: Made imagetopdf filter PPD-file-independent
suraj kulriya [Mon, 12 Jul 2021 09:36:50 +0000 (15:06 +0530)]
libcupsfilters: Double free in imagetoraster() filter function fixed
Till Kamppeter [Thu, 8 Jul 2021 08:38:03 +0000 (10:38 +0200)]
libcupsfilters: In rastertopwg() removed unneeded marking of options in PPD
suraj kulriya [Wed, 7 Jul 2021 16:18:31 +0000 (21:48 +0530)]
libcupsfilters: Silenced compiler warning in pdftops() filter function
Till Kamppeter [Wed, 7 Jul 2021 14:23:38 +0000 (16:23 +0200)]
libcupsfilters, implicitclass, parallel: Added missing newlines at error messages
Till Kamppeter [Wed, 7 Jul 2021 14:14:15 +0000 (16:14 +0200)]
Build system: Made building of the rastertopwg CUPS filter optional
Till Kamppeter [Wed, 7 Jul 2021 13:53:53 +0000 (15:53 +0200)]
Updated .gitignore
suraj kulriya [Wed, 7 Jul 2021 13:39:01 +0000 (19:09 +0530)]
libcupsfilters: Memory leak fixed in imagetoraster() filter function
Till Kamppeter [Wed, 7 Jul 2021 09:06:19 +0000 (11:06 +0200)]
Updated NEWS
Till Kamppeter [Wed, 7 Jul 2021 09:01:34 +0000 (11:01 +0200)]
libcupsfilters: Silenced compiler warnings in rastertopwg()
Pratyush Ranjan [Wed, 7 Jul 2021 08:50:29 +0000 (14:20 +0530)]
libcupsfilters: Converted rastertopwg filter from CUPS to a filter function
Till Kamppeter [Tue, 6 Jul 2021 13:04:46 +0000 (15:04 +0200)]
libcupsfilters: Indentation clean-up in imagetoraster(), fixed missing include
suraj kulriya [Tue, 6 Jul 2021 12:28:16 +0000 (17:58 +0530)]
libcupsfilters: Made pdftops filter PPD-file-independent
suraj kulriya [Tue, 6 Jul 2021 12:27:13 +0000 (17:57 +0530)]
libcupsfilters: Made imagetoraster filter PPD-file-independent
Till Kamppeter [Thu, 1 Jul 2021 15:07:15 +0000 (17:07 +0200)]
Updated NEWS