Hi,
I am not using any form field. I just have the coordinates given by the
indesign system. I need to place a text in the specified coordinate into the
PDF.
For example:
I get an input from indesign as
X 211.89 pt
Y 158.031 pt
W 85.039 pt
H 85.039 pt
Page Width 595.276 pt
Page Height 841.89 pt
With this input i need to place the text in the right area in the PDF.
I use the following code to place
pdfContentByte.BeginText()
pdfContentByte.SetFontAndSize(bf, 9)
pdfContentByte.SetTextMatrix(x, y)
pdfContentByte.ShowText("Sample text")
pdfContentByte.Stroke()
pdfContentByte.EndText()
Thanks & Regards
Karthik B
--- On Thu, 19/5/11, 1T3XT BVBA <[email protected]> wrote:
> From: 1T3XT BVBA <[email protected]>
> Subject: Re: [iText-questions] Place text in speacified x y coordinate
> To: [email protected]
> Date: Thursday, 19 May, 2011, 3:05 PM
> Op 19/05/2011 11:22, karthik B
> schreef:
> > While exporting i store the coordinates of the certain
> placeholder for which i need to modify the value in the
> PDF.
> How? Are you using a form field?
> Are you taking into account stuff like the MediaBox,
> CropBox,...?
> What about the baseline?
>
> iText uses the functionality to place text at exact
> coordinates in many
> different applications without any problem.
> My guess is that you are making the wrong assumptions about
> the Y
> coordinate you've been exporting.
> In its current form, your question is invalid and it won't
> receive any
> useful answer unless you provide more info.
>
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the
> reach of its
> next-generation tools to help Windows* and Linux* C/C++ and
> Fortran
> developers boost performance applications - including
> clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be
> answered with a reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php