|
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, **************************************************************************** This email may contain confidential *************************************************************************** |
Title: Message
- [iText-questions] Re: Doubt on Measurement units Jaladurgam, Ramana
- [iText-questions] Re: Doubt on Measurement units Paulo Soares
