Package org.axsl.ps

Examples of org.axsl.ps.PsInterpreter


        if (this.detailParsed) {
            return;
        }
        parseBasics();
        final PsServer psServer = this.getReader().getFontServer().getPsServer();
        PsInterpreter interpreter = null;
        try {
            final PsSystemDict systemDict = psServer.getReadOnlySystemDict();
            interpreter = psServer.makeInterpreter(this, systemDict);
        } catch (final PsException e) {
            getLogger().error(e.getMessage());
        }
        startNewSegment();
        try {
            interpreter.process();
        } catch (final PsInterpreterException e1) {
            this.getLogger().error(e1.getMessage()
                    + "\n  " + this.getReader().getDescription().toString());
        }

        final PsFontDirectory fontDirectory = interpreter.getFontDirectory();
        if (fontDirectory != null) {
            final List<? extends Type1FontDictionary> fonts = fontDirectory.getFonts();
            // There should only be one font in the font directory
            if (fonts.size() > 0) {
                this.fontDictionary = fonts.get(0);
View Full Code Here


        }
        final PsServer psServer = this.getPDFDocument().getPsServer();
        PsSystemDict systemDict = null;
        try {
            systemDict = psServer.getPdfSystemDict();
            final PsInterpreter interpreter = psServer.makeInterpreter(psInput, systemDict);
            interpreter.process();
        } catch (final PsInterpreterException e1) {
            getLogger().error(e1.getMessage());
            throw new GraphicException("Cannot parse EPS file.");
        } catch (final PsException e1) {
            getLogger().error(e1.getMessage());
View Full Code Here

TOP

Related Classes of org.axsl.ps.PsInterpreter

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.