Package org.pdfbox.util

Examples of org.pdfbox.util.DateConverter


            {
                validDate = validDate && Character.isDigit( strValue.charAt( i ) );
            }
            if( validDate )
            {
                DateConverter converter = new DateConverter();
                try
                {
                    retval = converter.toCalendar( value.getString() );
                }
                catch( IOException e )
                {
                    retval = null;
                }
View Full Code Here


        {
            info.removeItem( key );
        }
        else
        {
            DateConverter converter = new DateConverter();
            info.setItem( key, new COSString( converter.toString( value ) ) );
        }
    }
View Full Code Here

    /**
     * This will update the last modified time for the page object.
     */
    public void updateLastModified()
    {
        DateConverter converter = new DateConverter();
        GregorianCalendar today = new GregorianCalendar();
        page.setItem( COSName.getPDFName( "LastModified" ), new COSString( converter.toString( today ) ) );
    }
View Full Code Here

    {
        Calendar retval = null;
        COSString date = (COSString)page.getDictionaryObject( COSName.getPDFName( "LastModified" ) );
        if( date != null )
        {
            DateConverter converter = new DateConverter();
            retval = converter.toCalendar( date.getString() );
        }
        return retval;
    }
View Full Code Here

TOP

Related Classes of org.pdfbox.util.DateConverter

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.