at.knowcenter.wag.egov.egiz.pdf
Class StructContentHelper

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.pdf.StructContentHelper
All Implemented Interfaces:
com.lowagie.text.pdfas.StructContentWriter

public class StructContentHelper
extends Object
implements com.lowagie.text.pdfas.StructContentWriter

Helper class for writing the structure hierarchy of the signature elements. Everything is written with the PdfObject low level API because there is no better support. The structured content is only written for structured (==tagged) input documents. The methods have to be called in the defined order. The object cannot be reused for several signatures.
See pdf spec "Logical Structure" for details.
The struct writing could be a little more abstracted, but this would include quite some itext extension work. And like this it fits better to PDF-AS / wprinz coding style :-(

Author:
exthex

Method Summary
 void beginFigureContent(com.lowagie.text.pdf.PdfContentByte localContent)
          Writes start tag for signature logo marked content sequence.
 void beginLinkContent(com.lowagie.text.pdf.PdfContentByte localContent, String urlString)
          Writes start tag for verify link marked content sequence.
protected static com.lowagie.text.pdf.PdfArray createPdfArrayFromTablePos(ActualTablePos pos)
           
 void endFigureContent(com.lowagie.text.pdf.PdfContentByte localContent)
          Writes end tag for signature logo marked content sequence.
 void endLinkContent(com.lowagie.text.pdf.PdfContentByte localContent)
          Writes end tag for verify link marked content sequence.
 void markPos(com.lowagie.text.Rectangle pos)
          Implements StructContentWriter.markPos(Rectangle)
 void putVal(String key, Object val)
           
 void removeCurrent()
          Remove thread local helper
 void storeCurrentPosAsLink()
          Implements StructContentWriter.storeCurrentPosAsLink()
 void storeVals()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

removeCurrent

public void removeCurrent()
Remove thread local helper


beginFigureContent

public void beginFigureContent(com.lowagie.text.pdf.PdfContentByte localContent)
Writes start tag for signature logo marked content sequence.

Specified by:
beginFigureContent in interface com.lowagie.text.pdfas.StructContentWriter

endFigureContent

public void endFigureContent(com.lowagie.text.pdf.PdfContentByte localContent)
Writes end tag for signature logo marked content sequence.

Specified by:
endFigureContent in interface com.lowagie.text.pdfas.StructContentWriter

beginLinkContent

public void beginLinkContent(com.lowagie.text.pdf.PdfContentByte localContent,
                             String urlString)
Writes start tag for verify link marked content sequence.

Specified by:
beginLinkContent in interface com.lowagie.text.pdfas.StructContentWriter

endLinkContent

public void endLinkContent(com.lowagie.text.pdf.PdfContentByte localContent)
Writes end tag for verify link marked content sequence.

Specified by:
endLinkContent in interface com.lowagie.text.pdfas.StructContentWriter

markPos

public void markPos(com.lowagie.text.Rectangle pos)
Implements StructContentWriter.markPos(Rectangle)

Specified by:
markPos in interface com.lowagie.text.pdfas.StructContentWriter

storeCurrentPosAsLink

public void storeCurrentPosAsLink()
Implements StructContentWriter.storeCurrentPosAsLink()

Specified by:
storeCurrentPosAsLink in interface com.lowagie.text.pdfas.StructContentWriter

putVal

public void putVal(String key,
                   Object val)
Specified by:
putVal in interface com.lowagie.text.pdfas.StructContentWriter

storeVals

public void storeVals()
Specified by:
storeVals in interface com.lowagie.text.pdfas.StructContentWriter

createPdfArrayFromTablePos

protected static com.lowagie.text.pdf.PdfArray createPdfArrayFromTablePos(ActualTablePos pos)


Copyright © 2006-2011. All Rights Reserved.