ceTe Support Team,
I am having trouble getting the coordinates of a text field in a landscape PDF. I am getting the X, Y coordinates of the text field, as well as the width and height, to perform mouse-over effects on the PDF document (I am using the PDF Rasterizer to display it on the screen). This code works fine for a Portrait PDF but when I put in a Landscape PDF the coordinates are incorrect.
The PDF has a rotation of 90 and it looks like the PDF has been rotated 90 degrees (to appear in Landscape) but the coordinates returned (for the text field) look like they have not been rotated, is there a way to get the rotated coordinates?
Thanks,
Tim Cooper.
Text Fields in Landscape PDF
Re: Text Fields in Landscape PDF
Support · May 16, 2006Hello Tim,
The reason you are getting incorrect X and Y co-ordinate values is because of the rotate property on the PDF as you identified. The PDF is getting written out from bottom to top and then it is all getting rotated 90 degrees (to appear in landscape). This is a very uncommon way to create PDFs and our product will always draw out the labels in this way. Our product draws out the labels left to right and then when the entire PDF gets rotated the 90 degrees it rotates the labels as well.
To compensate for this you will need to readjust the Y coordinates, switch the height and width and then Rotate each Label -90 degrees. This will then line the text up with the direction of the PDF.
If you still continue experiencing the problem, send over your original PDF document to our [^a|mailto:support@cete.com|Support Team^].
Thanks,
ceTe Software Support Team
Re: Text Fields in Landscape PDF
Forum member · May 16, 2006ceTe Support Team,
Thanks for your help guys, that was the answer I was expecting I was just hoping for an easier alternative. I have managed to implement your suggestion and it was much easier than I had thought and all the coordinates lined up spot on (well close enough).
Thanks,
Tim
Re: Text Fields in Landscape PDF
Forum member · Sep 15, 2011Hi anyone know about how to extract fallible fields and after getting convert to xml please help me urgent please.
Re: Text Fields in Landscape PDF
Support · Sep 15, 2011Hello,
Yes, you can get the list of form fields, read the form field values and fill the form fields without any problem using our DynamicPDF Merger for .NET product. If you already have the DynamicPDF product installed in your system then you can refer the FormFieldReader sample example downloaded with the product download which has sample code to read the form filed values of an already existing PDF. Once you get the list of form fields then you can use other .NET classes to build XML.
You can download the MSI to install the product by logging into our CustomerArea at: www.DynamicPDF.com/CustomerArea
using your product serial number.
Thanks,
ceTe Software Support Team.