cancel
Showing results for
Did you mean:

## Translating AI Builder Coordinates to Absolute Coordinates

Hello everyone,

I'm currently working on a project where I need to accurately position text onto PDF files using coordinates obtained from AI Builder. However, I'm facing some challenges in understanding how to translate these coordinates to align with the absolute coordinate system used in my PDF documents. As far as I understand, the AI Builder coordinate system is in the top left corner where x increases towards the right, while y increases downwards. My PDF coordinate system I am working with is a Cartesian at the bottom left of the page.

Here's what I'm trying to figure out:

1. Absolute Coordinate System Clarification:

• Can anyone provide insights into how I can establish the coordinates obtained from AI Builder within the absolute coordinate system used in PDF files?
2. Conversion Process:

• Are there any recommended methods or tools for converting coordinates from AI Builder's system to the absolute coordinate system used in PDF files? While I do understand there is a method to this I am interested in the aspects of the ImageWidth and ImageHeight - is there a way to get this information from the AI Builder?
3. AI Builder Location Reference:

• Where exactly is AI Builder positioned within the document it analyzes? Is it safe to assume its origin is at the top-left corner?
4. Conversion Considerations:

• What specific considerations should I keep in mind when converting AI Builder's coordinates, especially regarding the reversal of the y-axis?

2 REPLIES 2

When working with AI Builder and PDF documents, there's a difference in how the coordinate systems are set up. AI Builder uses a coordinate system where the origin (0,0) is at the top-left corner, with the x-axis increasing to the right and the y-axis increasing downwards. However, PDF documents typically have their origin at the bottom-left corner, with the x-axis increasing to the right and the y-axis increasing upwards.

So, if you get coordinates from AI Builder and want to position text accurately on a PDF, you need to convert those coordinates to match the PDF's coordinate system. The main thing you need to do is flip the y-coordinate. You can do this by subtracting the AI Builder y-coordinate from the total height of the PDF page or image area you're working with.

For example, let's say AI Builder gives you a y-coordinate of 100, and the image height is 1000. To get the corresponding y-coordinate in the PDF system, you'd do 1000 - 100 = 900. This flips the y-axis to match how PDFs work.

Now, there are a few other things to consider. You'll need to know the exact dimensions of the image area you're working with in AI Builder, so you can use those for the conversion. If the image dimensions in AI Builder and the PDF are different, you might need to apply scaling factors too.

Additionally, AI Builder's coordinate system is based on the top-left corner of the image it analyzes. So you can generally assume its origin is at (0,0) in that top-left corner.

New Member
1. Coordinate Alignment: Adjust AI Builder's coordinates to match PDF's absolute system. PDF's origin is typically at the bottom-left corner with the x-axis rightwards and y-axis upwards.

2. Conversion Method: Use coordinate transformation tools or scripts to convert AI Builder's coordinates. Check AI Builder's documentation for ImageWidth and ImageHeight details.

3. AI Builder's Position: Assume AI Builder's origin is at the top-left corner within the document analyzed.

4. Considerations: Reverse the y-axis when converting AI Builder's coordinates. Account for any scaling factors or offsets.

Announcements

#### Take a short Community User Survey | Help us make your experience better!

To ensure that we are providing the best possible experience for Community members, we want to hear from you!    We value your feedback! As part of our commitment to enhancing your experience, we invite you to participate in a brief 15-question survey. Your insights will help us improve our services and better serve the community.   👉 Community User Survey    Thank you for being an essential part of our community!    Power Platform Engagement Team

#### Tuesday Tip | How to Get Community Support

It's time for another Tuesday Tip, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.       This Week: All About Community Support Whether you're a seasoned community veteran or just getting started, you may need a bit of help from time to time! If you need to share feedback with the Community Engagement team about the community or are looking for ways we can assist you with user groups, events, or something else, Community Support is the place to start.   Community Support is part of every one of our communities, accessible to all our community members.   Within each community's Community Support page, you'll find three distinct areas, each with a different focus to help you when you need support from us most. Power Apps: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pa_community_support Power Automate: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpa_community_support Power Pages: https://powerusers.microsoft.com/t5/Community-Support/ct-p/mpp_community_support Copilot Studio: https://powerusers.microsoft.com/t5/Community-Support/ct-p/pva_community-support   Community Support Form If you need more assistance, you can reach out to the Community Team via the Community support form. Choose the type of support you require and fill in the form accordingly. We will respond to you promptly.    Thank you for being an active part of our community. Your contributions make a difference!   Best Regards, The Community Management Team

#### Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!