Examples of CMap


Examples of org.apache.fontbox.cmap.CMap

        return retval;
    }

    protected CMap parseCmap( String cmapRoot, InputStream cmapStream)
    {
        CMap targetCmap = null;
        if( cmapStream != null )
        {
            CMapParser parser = new CMapParser();
            try
            {
                targetCmap = parser.parse( cmapRoot, cmapStream );
                // limit the cache to external CMaps
                if (cmapRoot != null)
                {
                    cmapObjects.put( targetCmap.getName(), targetCmap );
                }
            }
            catch (IOException exception) {}
        }
        return targetCmap;
View Full Code Here

Examples of org.apache.fontbox.cmap.CMap

      return false;
    }

    try {

      CMap fontboxCMap = new CMapParser().parse(null, aCMap.getUnfilteredStream());
      int wmValue = fontboxCMap.getWMode();
      String cmnValue = fontboxCMap.getName();


      if (wmValue != wmode) {

        this.fontContainer.addError(new ValidationError(
View Full Code Here

Examples of org.apache.fontbox.cmap.CMap

        return retval;
    }

    protected CMap parseCmap( String cmapRoot, InputStream cmapStream)
    {
        CMap targetCmap = null;
        if( cmapStream != null )
        {
            CMapParser parser = new CMapParser();
            try
            {
                targetCmap = parser.parse( cmapRoot, cmapStream );
                // limit the cache to external CMaps
                if (cmapRoot != null)
                {
                    cmapObjects.put( targetCmap.getName(), targetCmap );
                }
            }
            catch (IOException exception) {}
        }
        return targetCmap;
View Full Code Here

Examples of org.apache.fontbox.cmap.CMap

        return retval;
    }

    protected CMap parseCmap( String cmapRoot, InputStream cmapStream)
    {
        CMap targetCmap = null;
        if( cmapStream != null )
        {
            CMapParser parser = new CMapParser();
            try
            {
                targetCmap = parser.parse( cmapRoot, cmapStream );
                // limit the cache to external CMaps
                if (cmapRoot != null)
                {
                    cmapObjects.put( targetCmap.getName(), targetCmap );
                }
            }
            catch (IOException exception)
            {
                LOG.error("An error occurs while reading a CMap", exception);
View Full Code Here

Examples of org.apache.fontbox.cmap.CMap

        return retval;
    }

    protected CMap parseCmap( String cmapRoot, InputStream cmapStream)
    {
        CMap targetCmap = null;
        if( cmapStream != null )
        {
            CMapParser parser = new CMapParser();
            try
            {
                targetCmap = parser.parse( cmapRoot, cmapStream );
                // limit the cache to external CMaps
                if (cmapRoot != null)
                {
                    cmapObjects.put( targetCmap.getName(), targetCmap );
                }
            }
            catch (IOException exception) {}
        }
        return targetCmap;
View Full Code Here

Examples of org.apache.fontbox.cmap.CMap

        checkCIDSystemInfo(sysinfo);

        try
        {
            // extract information from the CMap stream
            CMap fontboxCMap = new CMapParser().parse(null, aCMap.getUnfilteredStream());
            int wmValue = fontboxCMap.getWMode();
            String cmnValue = fontboxCMap.getName();

            /*
             * According to the getInt javadoc, -1 is returned if there are no result. In the PDF Reference v1.7 p449,
             * we can read that Default value is 0.
             */
 
View Full Code Here

Examples of org.pdfbox.cmaptypes.CMap

     *
     * @throws IOException If there is an error parsing the stream.
     */
    public void parse() throws IOException
    {
        result = new CMap();
        PDFStreamParser parser = new PDFStreamParser( input, file );
        parser.parse();
        List tokens = parser.getTokens();
        for( int i=0; i<tokens.size(); i++ )
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.