Examples of showXObject()


Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

    document.getPages().add(page);
    Dimension2D pageSize = page.getSize();

    PrimitiveComposer composer = new PrimitiveComposer(page);
    // Add the background template!
    composer.showXObject(
      SampleHelper.createTemplate(document)
      );

    // Wrap the content composer inside a block filter in order to achieve higher-level typographic control!
    BlockComposer blockComposer = new BlockComposer(composer);
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

      {
        width *= frame.getHeight() / 2 / height;
        height = frame.getHeight() / 2;
      }
      // Show the image!
      composer.showXObject(
        image.toXObject(document),
        new Point2D.Double(
          (pageSize.getWidth() - 90 - width) / 2 + 20,
          blockComposer.getBoundBox().getMaxY() + 20
          ),
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

      image = Image.get(new java.io.File(((java.net.URL)SampleHelper.class.getResource("mountains.jpg")).toURI()).getPath()); // Abstract image (entity).
    }
    catch(Exception e)
    {/* NOOP. */}
    // Show the image inside the common content stream!
    composer.showXObject(
      image.toXObject(document),
      new Point2D.Double(0,0),
      new Dimension(
        (int)templateSize.getWidth() - 50,
        125
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

      // 2.2. Stamping the watermark on the background...
      // Get the background 'layer' of the page!
      PrimitiveComposer background = stamper.getBackground();
      // Show the watermark into the page background!
      background.showXObject(watermark);

      // 2.3. End the stamping!
      stamper.flush();
    }
  }
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

    document.getPages().add(page);
    Dimension2D pageSize = page.getSize();

    PrimitiveComposer composer = new PrimitiveComposer(page);
    // Add the background template!
    composer.showXObject(template);
    // Wrap the content composer inside a block composer in order to achieve higher-level typographic control!
    /*
      NOTE: BlockComposer provides block-level typographic features as text and paragraph alignment.
      Flow-level typographic features are currently not supported: block-level typographic features
      are the foundations upon which flow-level typographic features will sit.
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

    // Showing the 'GNU' image...
    // Instantiate a jpeg image object!
    Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "gnu.jpg"); // Abstract image (entity).
    // Show the image!
    composer.showXObject(
      image.toXObject(document),
      new Point2D.Double(
        (pageSize.getWidth() - 90 - image.getWidth()) / 2 + 20,
        pageSize.getHeight() - 100 - image.getHeight()
        ),
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

            // Create a new page!
            page = new Page(document);
            document.getPages().add(page);
            composer = new PrimitiveComposer(page);
            // Add the background template!
            composer.showXObject(template);
            blockComposer = new BlockComposer(composer);
            blockComposer.setHyphenation(true);
          }

          blockComposer.begin(frames[frameIndex],AlignmentXEnum.Justify,alignmentYs[frameIndex]);
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

    document.getPages().add(page); // Puts the page in the pages collection.
    Dimension2D pageSize = page.getSize();

    PrimitiveComposer composer = new PrimitiveComposer(page);
    // Add the background template!
    composer.showXObject(template);
    // Wrap the content composer inside a block composer in order to achieve higher-level typographic control!
    /*
      NOTE: BlockComposer provides block-level typographic features as text and paragraph alignment.
      Flow-level typographic features are currently not supported: block-level typographic features
      are the foundations upon which flow-level typographic features will sit.
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

    Point2D imageLocation = new Point2D.Double(
      blockComposer.getBoundBox().getX() + blockComposer.getBoundBox().getWidth() - image.getWidth(),
      blockComposer.getBoundBox().getY() + blockComposer.getBoundBox().getHeight() + 25
      );
    // Show the image!
    composer.showXObject(
      image.toXObject(document),
      imageLocation,
      new Dimension(0,0)
      );
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.showXObject()

    // Showing the header image inside the common content stream...
    // Instantiate a jpeg image object!
    Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "mountains.jpg"); // Abstract image (entity).
    // Show the image inside the common content stream!
    composer.showXObject(
      image.toXObject(document),
      new Point2D.Double(0,0),
      new Dimension(
        (int)templateSize.getWidth() - 50,
        125
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.