Package org.apache.pdfbox.pdmodel.interactive.action.type

Examples of org.apache.pdfbox.pdmodel.interactive.action.type.PDActionRemoteGoTo


{

    @Test
    public void testGoto_OK() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setD(COSName.getPDFName("ADest"));
        gotoAction.setFile(new PDFileSpecification()
        {
            public COSBase getCOSObject()
            {
                return COSName.getPDFName("ADest");
            }
View Full Code Here


    }

    @Test
    public void testGoto_KO_InvalidContent() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setD(new COSDictionary());
        gotoAction.setFile(new PDFileSpecification()
        {
            public COSBase getCOSObject()
            {
                return COSName.getPDFName("ADest");
            }
View Full Code Here

    }

    @Test
    public void testGoto_KO_MissingD() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setFile(new PDFileSpecification()
        {
            public COSBase getCOSObject()
            {
                return COSName.getPDFName("ADest");
            }
View Full Code Here

    }

    @Test
    public void testGoto_KO_MissingF() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setD(COSName.getPDFName("ADest"));
        valid(gotoAction, false, PreflightConstants.ERROR_ACTION_MISING_KEY);
    }
View Full Code Here

{

    @Test
    public void testGoto_OK() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setD(COSName.getPDFName("ADest"));
        gotoAction.setFile(new PDFileSpecification()
        {
            public COSBase getCOSObject()
            {
                return COSName.getPDFName("ADest");
            }
View Full Code Here

    }

    @Test
    public void testGoto_KO_InvalidContent() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setD(new COSDictionary());
        gotoAction.setFile(new PDFileSpecification()
        {
            public COSBase getCOSObject()
            {
                return COSName.getPDFName("ADest");
            }
View Full Code Here

    }

    @Test
    public void testGoto_KO_MissingD() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setFile(new PDFileSpecification()
        {
            public COSBase getCOSObject()
            {
                return COSName.getPDFName("ADest");
            }
View Full Code Here

    }

    @Test
    public void testGoto_KO_MissingF() throws Exception
    {
        PDActionRemoteGoTo gotoAction = new PDActionRemoteGoTo();
        gotoAction.setD(COSName.getPDFName("ADest"));
        valid(gotoAction, false, PreflightConstants.ERROR_ACTION_MISING_KEY);
    }
View Full Code Here

            {
                retval = new PDActionLaunch( action );
            }
            else if( PDActionRemoteGoTo.SUB_TYPE.equals( type ) )
            {
                retval = new PDActionRemoteGoTo( action );
            }
            else if( PDActionURI.SUB_TYPE.equals( type ) )
            {
                retval = new PDActionURI( action );
            }
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.pdmodel.interactive.action.type.PDActionRemoteGoTo

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.