Dear FOPies,

We are generating PDF document with FOP and need to insert optical marks at the left side of every odd page. I plan to insert these marks with a FOP extension that shall create a BlockArea with several LineAreas. The LineArea contains ____ (underline characters) or is blank. How can build the BlockArea?

This is my (not working) extension method (area is also a block):

  public int layout(Area area) throws FOPException {
      BlockArea block = new BlockArea(
        area.getFontState(),100,100,0,100,0,
        Constants.AUTO,0,30);

      LineArea line = block.createNextLineArea();
      block.addChild(line);
      TextState ts = new TextState();
      line.addText("____".toCharArray(), 0, 50, getParent().getLinkSet(), ts);

      area.addChild(block);
      return Status.OK;
  }

Could somebody give me a hint please?
In another thread I've read about a possibility to insert optical marks through post-processing the PDF (not PS). Does anybody know a free java tool for doing that?

Thanx,
Sascha
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to