Package org.pdfclown.documents.contents.composition

Examples of org.pdfclown.documents.contents.composition.BlockComposer.showText()


      AlignmentXEnum.Left,
      AlignmentYEnum.Middle
      );
    blockComposer.showText("Generated by PDF Clown on " + creationDate);
    blockComposer.showBreak();
    blockComposer.showText("For more info, visit http://www.pdfclown.org");
    blockComposer.end();
    composer.end();

    // End the graphics state!
    composer.end();
View Full Code Here


        StandardType1Font.FamilyEnum.Courier,
        true,
        false
        );
      composer.setFont(bodyFont,32);
      blockComposer.showText("Transformation sample"); blockComposer.showBreak();
      composer.setFont(bodyFont,16);
      blockComposer.showText("Showing the GNU logo placed on the page center, rotated by 25 degrees clockwise.");
      blockComposer.end();
    }
    // Showing the 'GNU' image...
View Full Code Here

        false
        );
      composer.setFont(bodyFont,32);
      blockComposer.showText("Transformation sample"); blockComposer.showBreak();
      composer.setFont(bodyFont,16);
      blockComposer.showText("Showing the GNU logo placed on the page center, rotated by 25 degrees clockwise.");
      blockComposer.end();
    }
    // Showing the 'GNU' image...
    {
      // Instantiate a jpeg image object!
View Full Code Here

        StandardType1Font.FamilyEnum.Courier,
        true,
        false
        );
      composer.setFont(bodyFont,32);
      blockComposer.showText("Inline image sample"); blockComposer.showBreak();
      composer.setFont(bodyFont,16);
      blockComposer.showText("Showing the GNU logo as an inline image within the page content stream.");
      blockComposer.end();
    }
    // Showing the 'GNU' image...
View Full Code Here

        false
        );
      composer.setFont(bodyFont,32);
      blockComposer.showText("Inline image sample"); blockComposer.showBreak();
      composer.setFont(bodyFont,16);
      blockComposer.showText("Showing the GNU logo as an inline image within the page content stream.");
      blockComposer.end();
    }
    // Showing the 'GNU' image...
    {
      // Instantiate the image!
View Full Code Here

      index < length;
      index++
      )
    {
      composer.setFont(font,12);
      blockComposer.showText(titles[index]);
      blockComposer.showBreak();

      composer.setFont(font,11);
      blockComposer.showText(bodies[index]);
      blockComposer.showBreak(AlignmentXEnum.Right);
View Full Code Here

      composer.setFont(font,12);
      blockComposer.showText(titles[index]);
      blockComposer.showBreak();

      composer.setFont(font,11);
      blockComposer.showText(bodies[index]);
      blockComposer.showBreak(AlignmentXEnum.Right);

      composer.setFont(font,8);
      blockComposer.showText("[Source: " + sources[index] + "]");
      blockComposer.showBreak(breakSize,AlignmentXEnum.Justify);
View Full Code Here

      composer.setFont(font,11);
      blockComposer.showText(bodies[index]);
      blockComposer.showBreak(AlignmentXEnum.Right);

      composer.setFont(font,8);
      blockComposer.showText("[Source: " + sources[index] + "]");
      blockComposer.showBreak(breakSize,AlignmentXEnum.Justify);
    }
    // End the content block!
    blockComposer.end();
View Full Code Here

      {
        BlockComposer blockComposer = new BlockComposer(composer);
        blockComposer.begin(new Rectangle2D.Double(296,50,page.getSize().getWidth()-336,36),AlignmentXEnum.Left,AlignmentYEnum.Middle);
        composer.setFont(composer.getState().getFont(),7);
        blockComposer.showText("If you click this push button, a javascript action should prompt you an alert box responding to the activation event triggered by your PDF viewer.");
        blockComposer.end();
      }
    }

    // 4.b. Check box.
View Full Code Here

      {
        BlockComposer blockComposer = new BlockComposer(composer);
        blockComposer.begin(new Rectangle2D.Double(360,200,page.getSize().getWidth()-400,36),AlignmentXEnum.Left,AlignmentYEnum.Middle);
        composer.setFont(composer.getState().getFont(),7);
        blockComposer.showText("If you leave this text field after changing its content, a javascript action should prompt you an alert box responding to the validation event triggered by your PDF viewer.");
        blockComposer.end();
      }
    }

    // 4.e. Choice fields.
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.