Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filling ImageContent and with images of arbitrary size #53

Open
hasanayan opened this issue Jun 9, 2018 · 2 comments
Open

Filling ImageContent and with images of arbitrary size #53

hasanayan opened this issue Jun 9, 2018 · 2 comments

Comments

@hasanayan
Copy link

I would like to be able able to protect the aspect ratio of the images I am placing in my template.

My Picture Content Control is inside a table cell and I am trying to make sure my image shrinks respecting the original aspect ratio just enough to fit in.

For this, I could resize the image myself, before using it to fill the control. I understand this is outside the scope of TemplateEngine.Docx,. However, I couldn't find a better place to ask this. Could someone show me the way to solve this?

@mahdiit
Copy link

mahdiit commented Jul 28, 2018

i have same problem, i generate image with fixed size, because it can not apply accept ratio on it.
if we can change height or width of image template dynamically i can control over how generate image it can be better,

seems that there is not solution with TemplateEngine, i think
first
i need a docx changer, a component that can change template before TemplateEngine work. and change image or font or fields dynamically. then using TemplateEngine to set fields.

@chedva215
Copy link

i have same problem ineed help because all match me without this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants