libcupsfilters 2.0rc1 #27
tillkamppeter
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Release Candidate: DNS-SD URI API prepared for libcups3, fixed control of page orientation, printing text in landscape, image scaling attributes
cfFilterImageToRaster()
,cfFilterImageToPDF()
,cfFilterTextToPDF()
, andcfFilterPDFToPDF()
supplying the attributesorientation-requested
or(no)landscape
do the expected, rotating content 0/90/180/270 degrees.landscape-orientation-requested-preferred
IPP attribute or by the "*LandscapeOrientation: ...
" PPD keyword (via libppd).ppi
attribute works correctly now,no cropping and using more than one sheet if the image gets too large.print-scaling=auto
.cfFilterTextToPDF()
is now capable of printing text in landscape layout, controlled by theorientation-requested
andlandscape
attributes.prettyprint
attribute of thecfFilterTextToPDF()
now uses wider margins for binding/stitching/punching as originally designed. If the printer has even wider margins this is taken into account.cfFilterImageToRaster()
,cfFilterImageToPDF()
,cfFilterTextToPDF()
, andcfFilterPDFToPDF()
all work now correctly also with no printer attributes/capabilities supplied at all, and also with and without supplying a page size. With PDF input the input page sizes are used if applicable. As last mean we resort to US Letter page size (Issue Printing an image to a Postscript printer generates empty sheet #26).cfFilterUniversal()
filter function now considers the output ofcfFilterImageToPDF()
correctly asapplication/vnd.cups-pdf
and not asapplication/pdf
, avoiding duplicate application of margins or rotation.cfFilterImageToRaster()
now produces 16-bit-per-color output if requested by the job/printer, and does not output a blank page any more (Issue imagetoraster and 16bit images #25, pull request Update imagetoraster.c #22).An off-by-one bug in
cfOneBitLine()
made white areas appear with a grid of black dots (1 per 16x16 square). This corrected now (Issue pwgtoraster has small black dots. #20).For resolving DNS-SD-service-name-based device URIs for IPP printers as CUPS uses them, libcups2 does not offer any useful API and we therefore ended up implementing 2 workarounds. As libcups3 has an API function for it we have adapted our API for its use (libcups3 support will get actually added in version 2.1.0).
cfFilterImage...()
, removing duplicate code and doing some simplification.cfFilterImageToPDF()
could crash when an image could not get loaded and print-scaling was set to fill or none, as a part of the image processing was not covered by the NULL check.cfFilterUniversal()
: Added NULL checks for parameters, so that the function can get called without parameters.-std=c++17
C++ compiler flag (Pull request Added C++17 flag #18)Needed to build libcupsfilters with QPDF 11.
#include
entries for libcupsThis discussion was created from the release libcupsfilters 2.0rc1.
Beta Was this translation helpful? Give feedback.
All reactions