Placing images

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Placing images

Post by whoit »

When using the CoreAPI, is the only method for placing images (raster images, jpg, bmp, etc) PlaceImage/PlaceImageEx ?

I'm specifically interested in placing images in conjunction with ShowTextBlock and determining placement since
images cannot be included within ShowTextBlock.

Thanks,
Wayne
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17893
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Placing images

Post by Tracker Supp-Stefan »

Hello Wayne,

I've passed this along to a colleague in the dev team, and he said that he will post back his further comments and advise tomorrow.

Regards,
Stefan
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Placing images

Post by Sasha - Tracker Dev Team »

Hello Wayne,

Well the PlaceImageEx gives you a possibility to specify an image rectangle. Or what do you want to achieve precisely?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: Placing images

Post by whoit »

Hi Alex -

I'm essentially wanting to add image handling/placement into our existing stamping (which uses ShowTextBlock).
Since TextBlocks do not handle images (too bad since they handle other html/css!) I was interested
in any other available ways to add images that may coordinate with TextBlock positioning.

For example, I can't really put images inline with text, so I'm guessing that I simply have to calculate
positions and put an image between two TextBlocks?

Here's what I mean, done with html and rendered in a browser:

Image
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Placing images

Post by Sasha - Tracker Dev Team »

Hello Wayne,

The ShowTextBlock methods do not use the HTML/CSS formatting - they use the XFA formatted input (and believe me - they differ).
This means you will have to calculate the positions of the image manually.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: Placing images

Post by whoit »

I thought that might be the case.

Thanks Alex...
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Placing images

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply