You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i need to figure out a way to correlate the text content and the image content on the page.
everything is rendered in the viewport which has the dimensions of 612 x 792.
all of the text content has y values between 0 and 792 but the image content has a y value of 2181.25 or -1389 based on the "lastTransform" below.
how is the image placed above the text content with those values?
the text object is directly underneath the image object
I don't understand how to correlate the text y coordinate of 540 and the image y coordintate of 2181.25 or -1389.
From what I understand, rendering is different between image and text, but I still feel as if there has to be some overlap somewhere.
I would like to be able to output something where the image y coordinate is something like 535 for the image, basically just above the text, just like it is rendered.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a pdf with this content -
i need to figure out a way to correlate the text content and the image content on the page.
everything is rendered in the viewport which has the dimensions of 612 x 792.
all of the text content has y values between 0 and 792 but the image content has a y value of 2181.25 or -1389 based on the "lastTransform" below.
how is the image placed above the text content with those values?
the code above will give me the below output where from what i understand, the y coordinate of the text is the last item in the transform array
I am able to get the image information with this code
the code above will give me this output for the image and the related transform below it and the "transformed" transform below that
the text object is directly underneath the image object
I don't understand how to correlate the text y coordinate of 540 and the image y coordintate of 2181.25 or -1389.
From what I understand, rendering is different between image and text, but I still feel as if there has to be some overlap somewhere.
I would like to be able to output something where the image y coordinate is something like 535 for the image, basically just above the text, just like it is rendered.
Beta Was this translation helpful? Give feedback.
All reactions