Hi all

 

I want to create a .rtf document but I can’t find anything about how absolute position is created? It seems very easy in .pdf file just :

 

            PdfContentByte cb = writer.getDirectContent();

           

            // an example of a rectangle with a diagonal in very thick lines

            cb.setLineWidth(10f);

            // draw a rectangle

            cb.rectangle(100, 700, 100, 100);

            // add the diagonal

            cb.moveTo(100, 700);

            cb.lineTo(200, 800);

            // stroke the lines

            cb.stroke();

 

How is this done when creating .rtf documents?

 

E.E

 

 

Reply via email to