Title: Message
I found from the documentation that the measurement units are points and 72pts = 1inch.
But, the results I am getting are different.
 
      I wrote the following code:
         //Document initialization stuff
        Document lPdfDocument = new Document();
        PdfWriter lPdfWriter = PdfWriter.getInstance(lPdfDocument , new FileOutputStream("Line.pdf"));
        lPdfDocument.open();
        PdfContentByte lPdfContentByte = lPdfWriter.getDirectContent();
        lPdfContentByte.moveTo(200, 500);
        lPdfContentByte.lineTo(272, 500);
        lPdfContentByte.stroke();
        lPdfDocument.close();
 
Thought this should give me a line of 1inch.
I have printed the document, measured with the scale and found that the resulting line is a little less than 1 inch.
Can anyone help me out with this measurement units please.

Regards,
Ramana.JV.

 

****************************************************************************

This email may contain confidential
material. If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.

 ***************************************************************************

 

Reply via email to