Examples of toInlineObject()


Examples of org.pdfclown.documents.contents.entities.Image.toInlineObject()

      // Instantiate the image!
      Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "gnu.jpg");
      // Set the position of the image in the page!
      composer.applyMatrix(200,0,0,200,(pageSize.getWidth()-200)/2,(pageSize.getHeight()-200)/2);
      // Show the image!
      image.toInlineObject(composer); // Transforms the image entity into an inline image within the page.
    }
    composer.flush();
  }
}
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.