PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Dec 08, 2019 10:03 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: migradoc image
PostPosted: Thu Nov 14, 2019 3:07 pm 
Offline

Joined: Sun Nov 03, 2019 7:51 pm
Posts: 37
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: migradoc image
PostPosted: Thu Nov 14, 2019 4:29 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3012
Location: Cologne, Germany
No.
You can achieve this with MigraDoc calls, but have to do some calculations in your own code.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: migradoc image
PostPosted: Thu Nov 14, 2019 7:11 pm 
Offline

Joined: Sun Nov 03, 2019 7:51 pm
Posts: 37
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 ...


Top
 Profile  
Reply with quote  
 Post subject: Re: migradoc image
PostPosted: Fri Nov 15, 2019 7:26 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 508
Location: CCAA
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
 Post subject: Re: migradoc image
PostPosted: Sat Nov 16, 2019 7:48 pm 
Offline

Joined: Sun Nov 03, 2019 7:51 pm
Posts: 37
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 ...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 29 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group