Package org.apache.pdfbox.encoding.conversion

Examples of org.apache.pdfbox.encoding.conversion.EncodingConverter


       
        COSBase encodingCOS = getEncodingObject();
        // The converter isn't needed if an unicode mapping is already given by the font dictionary 
        if ( !hasToUnicode && encodingCOS instanceof COSName )
        {
            EncodingConverter converter = EncodingConversionManager.getConverter(((COSName)encodingCOS).getName());
            if ( converter != null )
            {
                if ( retval != null )
                {
                    retval = converter.convertString(retval);
                }
                else
                {
                    retval = converter.convertBytes(c, offset, length, cmap);
                }
                return retval;
            }
        }
       
View Full Code Here


       
        COSBase encodingCOS = getEncodingObject();
        // The converter isn't needed if an unicode mapping is already given by the font dictionary 
        if ( !hasToUnicode && encodingCOS instanceof COSName )
        {
            EncodingConverter converter = EncodingConversionManager.getConverter(((COSName)encodingCOS).getName());
            if ( converter != null )
            {
                if ( retval != null )
                {
                    retval = converter.convertString(retval);
                }
                else
                {
                    retval = converter.convertBytes(c, offset, length, cmap);
                }
                return retval;
            }
        }
       
View Full Code Here

        }
       
        COSBase encodingCOS = font.getDictionaryObject(COSName.ENCODING);
        if ( encodingCOS instanceof COSName )
        {
            EncodingConverter converter = EncodingConversionManager.getConverter(((COSName)encodingCOS).getName());
            if ( converter != null )
            {
                if ( retval != null )
                {
                    retval = converter.convertString(retval);
                }
                else
                {
                    retval = converter.convertBytes(c, offset, length, cmap);
                }
                return retval;
            }
        }
       
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.encoding.conversion.EncodingConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.