PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

migradoc image
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4054
Page 1 of 1

Author:  Jessica [ Thu Nov 14, 2019 3:07 pm ]
Post subject:  migradoc image

Hi

Is there a migradoc method that puts an image to a page and make the image as large as possible (to fit the page) but keeps aspect ratio and does NOT exceed page's borders?

Author:  Thomas Hoevel [ Thu Nov 14, 2019 4:29 pm ]
Post subject:  Re: migradoc image

No.
You can achieve this with MigraDoc calls, but have to do some calculations in your own code.

Author:  Jessica [ Thu Nov 14, 2019 7:11 pm ]
Post subject:  Re: migradoc image

Thomas Hoevel wrote:
No.
You can achieve this with MigraDoc calls, but have to do some calculations in your own code.


Because migradoc is working like Word for documents, why is there no such method (it should be done automatically)?
I can't imagine Word puts a part of the image outside the page as migradoc does ...

Author:  TH-Soft [ Fri Nov 15, 2019 7:26 am ]
Post subject:  Re: migradoc image

Jessica wrote:
I can't imagine Word puts a part of the image outside the page as migradoc does ...
In Word you normally use menus and dialogues and the size will usually be preset to fit, but when using VBA things will be different.

MigraDpc does not have such a function, but with just a few MigraDoc methods you can write your own helper function for that task. Feel free to share your helper function here.

Author:  Jessica [ Sat Nov 16, 2019 7:48 pm ]
Post subject:  Re: migradoc image

TH-Soft wrote:
Jessica wrote:
MigraDpc does not have such a function, but with just a few MigraDoc methods you can write your own helper function for that task. Feel free to share your helper function here.


I want to try to make a helper function but I always get "Developer too dumb error" :D :D
I hope that error will be fixed one day in Jessica.dll ...

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/