// Copyright 2013 ALT Linux, Andrew V. Stepanov <stanv@altlinux.com>
// Copyright 2018 Sahil Arora <sahilarora.535@gmail.com>
//
-// This program is free software: you can redistribute it and/or modify it
-// under the terms of the GNU General Public License version 3, as published
-// by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranties of
-// MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
-// PURPOSE. See the GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with this program. If not, see <http://www.gnu.org/licenses/>.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#include <config.h>
//
// Copyright (c) 2020, Vikrant Malik
//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// MIT Open Source License - http://www.opensource.org/
-//
-
#include "image.h"
#include <stdio.h>
//
// Copyright (c) 2020, Vikrant Malik
//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// MIT Open Source License - http://www.opensource.org/
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#ifndef _CUPS_FILTERS_BITMAP_H_
//
-// This file is part of cups-filters.
+// IPP attribute/option string catalog manager for libcupsfilters.
//
-// This file is free software; you can redistribute it and/or modify it
-// under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation; either version 2.1 of the
-// License, or (at your option) any later version.
-//
-// This file is distributed in the hope that it will be useful, but WITHOUT
-// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-// Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with avahi; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
-// USA.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
//
-// This file is part of cups-filters.
-//
-// This file is free software; you can redistribute it and/or modify it
-// under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation; either version 2.1 of the
-// License, or (at your option) any later version.
-//
-// This file is distributed in the hope that it will be useful, but WITHOUT
-// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-// Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with avahi; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
-// USA.
+// IPP attribute/option string catalog manager for libcupsfilters.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
//
-// Byte checking routines for cups-filters.
+// Byte checking routines for libcupsfilters.
//
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// CMYK color separation code for cups-filters.
+// CMYK color separation code for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
+// Common routines to access the colord CMS framework for libcupsfilter.
+//
// Copyright (c) 2011, Tim Waugh
// Copyright (c) 2011-2013, Richard Hughes
-
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
-// MIT Open Source License - http://www.opensource.org/
-//
-
-
-// Common routines for accessing the colord CMS framework
#include <cups/raster.h>
#include <stdio.h>
//
-// Copyright (c) 2011-2013, Richard Hughes
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
+// Common routines to access the colord CMS framework for libcupsfilter.
//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Copyright (c) 2011-2013, Richard Hughes
//
-// MIT Open Source License - http://www.opensource.org/
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
extern "C" {
# endif // __cplusplus
-// Common routines for accessing the colord CMS framework
#include <cups/raster.h>
#include <cupsfilters/filter.h>
//
+// "Color Manager" - Color management interface for libcupsfilters.
+//
// Copyright (c) 2011-2013, Richard Hughes
// Copyright (c) 2014, Joseph Simon
//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-// MIT Open Source License - http://www.opensource.org/
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
-// Copyright (c) 2014, Joseph Simon
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
+// "Color Manager" - Color management interface for libcupsfilters.
//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Copyright (c) 2014, Joseph Simon
//
-// MIT Open Source License - http://www.opensource.org/
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
# define _CUPS_FILTERS_COLORMANAGER_H_
-// "Color Manager" -- Color management interface for cups-filters
-
-
# ifdef __cplusplus
extern "C" {
# endif // __cplusplus
//
-// Dithering routines for CUPS.
+// Dithering routines for libcupsfilters.
//
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Printer driver utilities header file for CUPS.
+// Printer driver utilities header file for libcupsfilters.
//
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
-// Filter functions support for cups-filters.
+// Filter functions support for libcupsfilters.
//
-// Copyright © 2020 by Till Kamppeter.
+// Copyright © 2020-2022 by Till Kamppeter.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more
// information.
//
-// Filter functions header file for cups-filters.
+// Filter functions header file for libcupsfilters.
//
-// Copyright 2020 by Till Kamppeter.
+// Copyright © 2020-2022 by Till Kamppeter.
//
-// Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#ifndef _CUPS_FILTERS_FILTER_H_
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPSFILTERS_FONTEMBED_H_
#define _CUPSFILTERS_FONTEMBED_H_
<cupsfilters/fontembed-private.h>
-License (MIT)
--------------
+License
+-------
Copyright (c) 2008,2012 by Tobias Hoffmann.
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be included
-in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+Licensed under Apache License v2.0. See the file "LICENSE" for more
+information.
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <stdlib.h>
const char *aglfn13(unsigned short uni);
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _FONTEMBED_DYNSTRING_H_
#define _FONTEMBED_DYNSTRING_H_
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "dynstring-private.h"
#include <cupsfilters/debug-internal.h>
#include <errno.h>
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _FONTEMBED_EMBED_PDF_INT_H_
#define _FONTEMBED_EMBED_PDF_INT_H_
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include "embed-pdf-private.h"
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _FONTEMBED_EMBED_SFNT_INT_H_
#define _FONTEMBED_EMBED_SFNT_INT_H_
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include "embed-pdf-private.h"
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include "embed-sfnt-private.h"
#include <cupsfilters/debug-internal.h>
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include <string.h>
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _FONTEMBED_FREQUENT_H_
#define _FONTEMBED_FREQUENT_H_
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "frequent-private.h"
#include <cupsfilters/debug-internal.h>
#include <stdlib.h>
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
// data header only. for inclusion in only one file
#ifndef _FONTEMBED_MACROMAN_PRIVATE_H_
#define _FONTEMBED_MACROMAN_PRIVATE_H_
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _FONTEMBED_SFNT_INT_H_
#define _FONTEMBED_SFNT_INT_H_
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include "sfnt-private.h"
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include "sfnt-private.h"
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include "embed-sfnt-private.h"
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include "config.h"
+//
+// Copyright © 2008,2012 by Tobias Hoffmann.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <cupsfilters/fontembed-private.h>
#include <cupsfilters/debug-internal.h>
#include "config.h"
//
-// Ghostscript filter function for cups-filters.
+// Ghostscript filter function for libcupsfilters.
//
// Used for PostScript -> PDF, PDF -> Raster, PDF -> PCL-XL
//
//
-// IEEE-1284 Device ID support functions for OpenPrinting CUPS Filters.
+// IEEE-1284 Device ID support functions for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1997-2007 by Easy Software Products, all rights reserved.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1997-2007 by Easy Software Products, all rights reserved.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
// cfIEEE1284GetValues() - Get 1284 device ID keys and values.
// cfIEEE1284NormalizeMakeModel() - Normalize a product/make-and-model
// string.
-
+//
//
// Include necessary headers.
//
-// IEEE1284 Device ID support definitions for OpenPrinting CUPS Filters.
+// IEEE1284 Device ID support definitions for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1997-2007 by Easy Software Products, all rights reserved.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1997-2007 by Easy Software Products, all rights reserved.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#ifndef _CUPSFILTERS_IEEE1284_H_
//
-// Colorspace conversions for libcupsfilters.
+// Colorspace conversions for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2006 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2006 by Easy Software Products.
//
-// The color saturation/hue matrix stuff is provided thanks to Mr. Paul
-// Haeberli at "http://www.sgi.com/grafica/matrix/index.html".
+// The color saturation/hue matrix stuff is provided thanks to Mr. Paul
+// Haeberli at "http://www.sgi.com/grafica/matrix/index.html".
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// JPEG image routines for CUPS.
+// JPEG image routines for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2007 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2007 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// PNG image routines for CUPS.
+// PNG image routines for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2007 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2007 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Private image library definitions for libcupsfilters.
+// Private image library definitions for libcupsfilters.
//
-// Copyright 2007-2010 by Apple Inc.
-// Copyright 1993-2006 by Easy Software Products.
+// Copyright 2007-2010 by Apple Inc.
+// Copyright 1993-2006 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
-// TIFF file routines for CUPS.
+// TIFF file routines for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2007 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2007 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Image zoom routines for libcupsfilters.
+// Image zoom routines for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2006 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2006 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Base image support for libcupsfilters.
+// Base image support for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Image library definitions for libcupsilters.
+// Image library definitions for libcupsilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2006 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2006 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
// Copyright 1993-2006 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Easy Software Products and are protected by Federal
-// copyright law. Distribution and use rights are outlined in the file
-// "COPYING" which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
//
-// Image file to raster filter function for libcupsfilters.
+// Image file to raster filter function for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2007 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2007 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// IPP-related functions for libcupsfilters.
+// IPP-related functions for libcupsfilters.
//
-// This file is free software; you can redistribute it and/or modify it
-// under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation; either version 2.1 of the
-// License, or (at your option) any later version.
-//
-// This file is distributed in the hope that it will be useful, but WITHOUT
-// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-// Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with avahi; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
-// USA.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// IPP-related functions for libcupsfilters.
+// IPP-related functions for libcupsfilters.
//
-// This file is free software; you can redistribute it and/or modify it
-// under the terms of the GNU Lesser General Public License as
-// published by the Free Software Foundation; either version 2.1 of the
-// License, or (at your option) any later version.
-//
-// This file is distributed in the hope that it will be useful, but WITHOUT
-// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
-// Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with avahi; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
-// USA.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#ifndef _CUPS_FILTERS_IPP_H_
//
-// Log functions header file for cups-filters.
+// Log functions header file for libcupsfilters.
//
-// Copyright 2020 by Till Kamppeter.
+// Copyright 2020-2022 by Till Kamppeter.
//
-// Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#ifndef _CUPS_FILTERS_LOG_H_
//
-// Lookup table routines for libcupsfilters.
+// Lookup table routines for libcupsfilters.
//
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
+// mutool-based PDF to PWG Raster filter function for libcupsfilters.
+//
// Copyright (c) 2016, Pranjal Bhor
// Copyright (c) 2008-2016, Till Kamppeter
// Copyright (c) 2011, Tim Waugh
// Copyright (c) 2011-2013, Richard Hughes
//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
-// MIT Open Source License - http://www.opensource.org/
-//
-
-// PS/PDF to PWG Raster filter based on mutool
#include <config.h>
#include <cups/cups.h>
//
-// Bit packing routines for libcupsfilters.
+// Bit packing routines for libcupsfilters.
//
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
+// PCLm/Raster-only PDF to Raster filter function for libcupsfilters.
//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
+// Copyright © 2020 by Vikrant Malik
//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// @brief pclmtoraster filter function
-// @file pclmtoraster.cxx
-// @author Vikrant Malik <vikrantmalik051@gmail.com> (c) 2020
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
// Copyright 2013 ALT Linux, Andrew V. Stepanov <stanv@altlinux.com>
// Copyright 2018 Sahil Arora <sahilarora.535@gmail.com>
//
-// This program is free software: you can redistribute it and/or modify it
-// under the terms of the GNU General Public License version 3, as published
-// by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranties of
-// MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
-// PURPOSE. See the GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with this program. If not, see <http://www.gnu.org/licenses/>.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#include <config.h>
// Copyright 2012 Canonical Ltd.
// Copyright 2018 Sahil Arora <sahilarora.535@gmail.com>
//
-// This program is free software: you can redistribute it and/or modify it
-// under the terms of the GNU General Public License version 3, as published
-// by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranties of
-// MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
-// PURPOSE. See the GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License along
-// with this program. If not, see <http://www.gnu.org/licenses/>.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#ifndef _CUPS_FILTERS_PDF_H_
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_INTERVALSET_H_
#define _CUPS_FILTERS_PDFTOPDF_INTERVALSET_H_
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "intervalset-private.h"
#include <stdio.h>
#include "cupsfilters/debug-internal.h"
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_NUP_H_
#define _CUPS_FILTERS_PDFTOPDF_NUP_H_
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "nup-private.h"
#include <stdio.h>
#include "cupsfilters/debug-internal.h"
//
// Copyright 2020 by Jai Luthra.
//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
#ifndef _CUPS_FILTERS_PDFTOPDF_PDFTOPDF_H
#define _CUPS_FILTERS_PDFTOPDF_PDFTOPDF_H
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_PDFTOPDF_PROCESSOR_H
#define _CUPS_FILTERS_PDFTOPDF_PDFTOPDF_PROCESSOR_H
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "pdftopdf-processor-private.h"
#include "qpdf-pdftopdf-processor-private.h"
#include <stdio.h>
+//
// Copyright (c) 2012 Tobias Hoffmann
//
// Copyright (c) 2006-2011, BBR Inc. All rights reserved.
-// MIT Licensed.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
#include <config.h>
#include <stdio.h>
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_PPTYPES_H_
#define _CUPS_FILTERS_PDFTOPDF_PPTYPES_H_
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "pptypes-private.h"
#include <utility>
#include <stdio.h>
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_QPDF_CM_H_
#define _CUPS_FILTERS_PDFTOPDF_QPDF_CM_H_
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "qpdf-cm-private.h"
#include <stdio.h>
#include "cupsfilters/debug-internal.h"
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_QPDF_PDFTOPDF_H
#define _CUPS_FILTERS_PDFTOPDF_QPDF_PDFTOPDF_H
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_QPDF_PDFTOPDF_PROCESSOR_H
#define _CUPS_FILTERS_PDFTOPDF_QPDF_PDFTOPDF_PROCESSOR_H
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include <stdio.h>
#include <stdarg.h>
#include "cupsfilters/debug-internal.h"
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "qpdf-pdftopdf-private.h"
#include "qpdf-tools-private.h"
#include "cupsfilters/debug-internal.h"
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_QPDF_TOOLS_H_
#define _CUPS_FILTERS_PDFTOPDF_QPDF_TOOLS_H_
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "qpdf-tools-private.h"
QPDFObjectHandle
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#ifndef _CUPS_FILTERS_PDFTOPDF_QPDF_XOBJECT_H_
#define _CUPS_FILTERS_PDFTOPDF_QPDF_XOBJECT_H_
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "qpdf-xobject-private.h"
//#include <qpdf/Types.h>
#include <qpdf/QPDF.hh>
//
+// PDF to Raster filter function for libcupsfilters.
+//
// Copyright (c) 2008-2011 BBR Inc. All rights reserved.
// Copyright (c) 2012-2019 by Till Kamppeter
// Copyright (c) 2019 by Tanmay Anand.
// Modified 2021 by Pratyush Ranjan.
//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-//
-// pdftoraster.cxx
-// pdf to raster filter function
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#include "colormanager.h"
//
-// PDF file output routines.
+// PDF file output routines for libcupsfilters.
//
-// Copyright 2008 by Tobias Hoffmann.
+// Copyright 2008 by Tobias Hoffmann.
//
-// This file is licensed as noted in "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#include <stdio.h>
//
-// PDF file output routines.
+// PDF file output routines for libcupsfilters.
//
-// Copyright 2008 by Tobias Hoffmann.
+// Copyright 2008 by Tobias Hoffmann.
//
-// This file is licensed as noted in "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#ifndef _CUPS_FILTERS_PDFUTILS_H_
//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
+// PWG/Apple Raster to PDF filter function for libcupsfilters.
//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
+// Copyright 2010 by Neil 'Superna' Armstrong <superna9999@gmail.com>
+// Copyright 2012 by Tobias Hoffmann
+// Copyright 2014-2022 by Till Kamppeter
+// Copyright 2017 by Sahil Arora
//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-//
-// @brief Convert PWG Raster to a PDF/PCLm file
-// @file pwgtopdf.cxx
-// @author Neil 'Superna' Armstrong <superna9999@gmail.com> (C) 2010
-// @author Tobias Hoffmann <smilingthax@gmail.com> (c) 2012
-// @author Till Kamppeter <till.kamppeter@gmail.com> (c) 2014
-// @author Sahil Arora <sahilarora.535@gmail.com> (c) 2017
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
+
#include "filter.h"
#include <config.h>
#include <sys/types.h>
//
+// PWG/Apple Raster to CUPS/PWG/Apple Raster filter function for libcupsfilters.
+//
// Copyright (c) 2008-2011 BBR Inc. All rights reserved.
-// Copyright (c) 2012-2021 by Till Kamppeter
+// Copyright (c) 2012-2022 by Till Kamppeter
// Copyright (c) 2019 by Tanmay Anand.
// Modified 2021 by Pratyush Ranjan.
//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-//
-// pwgtoraster.c
-// PWG/Apple Raster to CUPS/PWG/Apple Raster filter function
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
#include "colormanager.h"
//
-// Functions to handle CUPS/PWG Raster headers for libcupsfilters.
+// Functions to handle CUPS/PWG Raster headers for libcupsfilters.
//
-// Copyright 2013-2022 by Till Kamppeter.
+// Copyright 2013-2022 by Till Kamppeter.
//
-// Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+// Contents:
//
// cfRasterColorSpaceString() - Return strings for CUPS color spaces
// cfRasterPrepareHeader() - Prepare a Raster header for a job
//
-// Functions to handle CUPS/PWG Raster headers for libcupsfilters.
+// Functions to handle CUPS/PWG Raster headers for libcupsfilters.
//
-// Copyright 2013 by Till Kamppeter.
+// Copyright 2013-2022 by Till Kamppeter.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
-// Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
-
#ifndef _CUPS_FILTERS_RASTER_H_
# define _CUPS_FILTERS_RASTER_H_
//
-// CUPS raster to PWG raster format filter for libcupsfilters.
+// CUPS Raster to PWG/Apple Raster format filter for libcupsfilters.
//
// Copyright © 2011, 2014-2017 Apple Inc.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more
// information.
-
+//
//
// Include necessary headers...
//
-// RGB color separation code for libcupsfilters.
+// RGB color separation code for libcupsfilters.
//
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// sRGB lookup tables for libcupsfilters.
+// sRGB lookup tables for libcupsfilters.
//
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
//
-// IEEE-1284 support functions test program for OpenPrinting CUPS Filters.
+// IEEE-1284 support functions test program for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1997-2006 by Easy Software Products, all rights reserved.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1997-2006 by Easy Software Products, all rights reserved.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Test the CMYK color separation code for libcupsfilters.
+// Test for the CMYK color separation code for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2006 by Easy Software Products, All Rights Reserved.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2006 by Easy Software Products, All Rights Reserved.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
// test_gray() - Test grayscale separations...
// test_rgb() - Test color separations...
// main() - Do color separation tests.
-
+//
//
// Include necessary headers.
-
+//
#include <config.h>
#include <string.h>
//
-// Dither test program for libcupsfilters.
+// Dither test program for libcupsfilters.
//
-// Try the following:
+// Try the following:
//
// testdither 0 255 > filename.ppm
// testdither 0 127 255 > filename.ppm
// testdither 0 210 383 > filename.ppm
// testdither 0 82 255 > filename.ppm
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2005 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2005 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Image library test program for libcupsfilters.
+// Image library test program for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2006 by Easy Software Products.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2006 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
+//
+// PDF file output test program 1 for libcupsfilters.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "pdfutils.h"
#include "debug-internal.h"
#include <string.h>
{
cf_pdf_out_t *pdf;
- pdf=cfPDFOutNew();
+ pdf = cfPDFOutNew();
DEBUG_assert(pdf);
cfPDFOutBeginPDF(pdf);
+//
+// PDF file output test program 2 (fontembed) for libcupsfilters.
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "pdfutils.h"
#include "config.h"
#include "debug-internal.h"
//
-// Test the new RGB color separation code for libcupsfilters.
+// Test for the new RGB color separation code for libcupsfilters.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1993-2006 by Easy Software Products, All Rights Reserved.
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1993-2006 by Easy Software Products, All Rights Reserved.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
// Contents:
//
//
-// Text to PDF filter function for libcupsfilters.
+// Text to PDF filter function for libcupsfilters.
//
-// Copyright 2008,2012 by Tobias Hoffmann.
-// Copyright 2007 by Apple Inc.
-// Copyright 1993-2007 by Easy Software Products.
+// Copyright 2008,2012 by Tobias Hoffmann.
+// Copyright 2007 by Apple Inc.
+// Copyright 1993-2007 by Easy Software Products.
//
-// These coded instructions, statements, and computer programs are the
-// property of Apple Inc. and are protected by Federal copyright
-// law. Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
//
-// texttotext
+// Text to Text (for text-only printers) filter function for libcupsfilters.
//
-// Filter to print text files on text-only printers. The filter has
-// several configuration options so that it should work with most
-// printer models.
+// Filter function to print text files on text-only printers. The
+// filter has several configuration options so that it should work
+// with most printer models.
//
-// Copyright 2007-2011 by Apple Inc.
-// Copyright 1997-2006 by Easy Software Products.
-// Copyright 2011-2016 by Till Kamppeter
+// Copyright 2007-2011 by Apple Inc.
+// Copyright 1997-2006 by Easy Software Products.
+// Copyright 2011-2016 by Till Kamppeter
//
-// Distribution and use rights are outlined in the file "COPYING"
-// which should have been included with this file.
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
//
//
+//
+// Universal filter function for libcupsfilters.
+//
+// Converts from any input format into any output format, calling an
+// auto-selected chain of filter functions.
+//
+// Copyright 2021 by Pranshu Kharkwal
+// Copyright 2021-2022 by Till Kamppeter
+//
+// Licensed under Apache License v2.0. See the file "LICENSE" for more
+// information.
+//
+
#include "config.h"
#include "filter.h"
#include <sys/types.h>