1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the NOTICE file distributed with 4 * this work for additional information regarding copyright ownership. 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 7 * the License. You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 /* $Id: CCFFilter.java 679326 2008-07-24 09:35:34Z vhennebert $ */ 19 20 package org.apache.fop.pdf; 21 22 /** 23 * CCF Filter class. Right now it is just used as a dummy filter flag so 24 * we can write TIFF images to the PDF. The encode method just returns the 25 * data passed to it. In the future an actual CCITT Group 4 compression should be 26 * added to the encode method so other images can be compressed. 27 * 28 */ 29 public class CCFFilter extends NullFilter { 30 31 private PDFObject decodeParms; 32 33 /** 34 * {@inheritDoc} 35 */ getName()36 public String getName() { 37 return "/CCITTFaxDecode"; 38 } 39 40 /** 41 * {@inheritDoc} 42 */ getDecodeParms()43 public PDFObject getDecodeParms() { 44 return this.decodeParms; 45 } 46 47 /** 48 * Sets the CCF decoding parameters 49 * @param decodeParms The decoding parameters 50 */ setDecodeParms(PDFObject decodeParms)51 public void setDecodeParms(PDFObject decodeParms) { 52 this.decodeParms = decodeParms; 53 } 54 55 } 56 57