Examples of PDDestinationOrAction


Examples of org.apache.pdfbox.pdmodel.common.PDDestinationOrAction

     * @throws IOException If there is an error creating the destination
     * or action.
     */
    public PDDestinationOrAction getOpenAction() throws IOException
    {
        PDDestinationOrAction action = null;
        COSBase actionObj = root.getDictionaryObject("OpenAction");

        if( actionObj == null )
        {
            //no op
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.common.PDDestinationOrAction

     * @throws IOException If there is an error creating the destination
     * or action.
     */
    public PDDestinationOrAction getOpenAction() throws IOException
    {
        PDDestinationOrAction action = null;
        COSBase actionObj = root.getDictionaryObject(COSName.OPEN_ACTION);

        if( actionObj == null )
        {
            //no op
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.common.PDDestinationOrAction

     * @throws IOException If there is an error creating the destination
     * or action.
     */
    public PDDestinationOrAction getOpenAction() throws IOException
    {
        PDDestinationOrAction action = null;
        COSBase actionObj = root.getDictionaryObject(COSName.OPEN_ACTION);

        if( actionObj == null )
        {
            //no op
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.common.PDDestinationOrAction

     * @throws IOException If there is an error creating the destination
     * or action.
     */
    public PDDestinationOrAction getOpenAction() throws IOException
    {
        PDDestinationOrAction action = null;
        COSBase actionObj = root.getDictionaryObject(COSName.OPEN_ACTION);

        if( actionObj == null )
        {
            //no op
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.common.PDDestinationOrAction

     * @throws IOException If there is an error creating the destination
     * or action.
     */
    public PDDestinationOrAction getOpenAction() throws IOException
    {
        PDDestinationOrAction action = null;
        COSBase actionObj = root.getDictionaryObject("OpenAction");

        if( actionObj == null )
        {
            //no op
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.common.PDDestinationOrAction

     * @throws IOException If there is an error creating the destination
     * or action.
     */
    public PDDestinationOrAction getOpenAction() throws IOException
    {
        PDDestinationOrAction action = null;
        COSBase actionObj = root.getDictionaryObject(COSName.OPEN_ACTION);

        if( actionObj == null )
        {
            //no op
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.common.PDDestinationOrAction

     */
    private ArrayList<String> documentOpenAction() {
        ArrayList<String> result = new ArrayList<String>();

        PDDocumentCatalog catalog = document.getDocumentCatalog();
        PDDestinationOrAction act = null;
        try {
            act = catalog.getOpenAction();
        } catch (IOException e) {
            log.error("", e);
            return result;
        } finally {
            if (act == null) {
                return result;
            }
        }

        if (act.getCOSObject() instanceof COSDictionary) {
            COSDictionary openaction_ref = (COSDictionary) act.getCOSObject();
            if (openaction_ref.getItem(COSName.S) != null && openaction_ref.getItem(COSName.S).equals(COSName.JAVA_SCRIPT)) {
                extractJavaScript(openaction_ref, result);
            }
        } else if (act.getCOSObject() instanceof COSArray) {
            COSArray openaction_ref = (COSArray) act.getCOSObject();
            Iterator<COSBase> it = openaction_ref.iterator();
            while (it.hasNext()) {
                COSBase b = it.next();
                if (b instanceof COSObject) {
                    COSObject b2 = (COSObject) b;
View Full Code Here

Examples of org.pdfbox.pdmodel.common.PDDestinationOrAction

     * @throws IOException If there is an error creating the destination
     * or action.
     */
    public PDDestinationOrAction getOpenAction() throws IOException
    {
        PDDestinationOrAction action = null;
        COSBase actionObj = root.getDictionaryObject("OpenAction");
       
        if( actionObj == null )
        {
            //no op
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.