Package org.pdfclown.documents

Examples of org.pdfclown.documents.Document.update()


    {
      DocumentActions documentActions = document.getActions();
      if(documentActions == null)
      {
        document.setActions(documentActions = new DocumentActions(document));
        document.update();
      }
      /*
        NOTE: This statement instructs the PDF viewer to go to page 2 on document opening.
      */
      documentActions.setOnOpen(
View Full Code Here


      }
      // Associate the action to the document!
      document.getBaseDataObject().put(
        new PdfName("OpenAction"),
        file.register(action) // Adds the action to the file, returning its reference.
        ); document.update(); // Updates the existing document object (fundamental to override previous content).
    }

    // (boilerplate metadata insertion -- ignore it)
    buildAccessories(document,"Primitive objects","manipulating a document at primitive object level");
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.