PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 11:00 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Apr 22, 2015 10:45 am 
Offline

Joined: Mon Nov 01, 2010 2:23 pm
Posts: 17
Location: Prague, Czech Republic
Hi,

currently the WrapStyle of a shape can be one of these: WrapStyle.TopBottom, WrapStyle.None, WrapStyle.Through. Can another value, WrapStyle.Tight, be added which would cause the text around the shape be wrapped tightly? It would correspond to the control word /shpwr4 in an exported RTF file.
In my document I have an image wrapped in a TextFrame which is positioned relative to the whole page but I can't make the wrapping work correctly.


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 22, 2015 11:18 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
Hi!

This is not my area of expertise, but it probably can easily be implemented for the RTF renderer. But we won't be able to support this flag for the PDF renderer in the foreseeable future.

Are you rendering to RTF?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 22, 2015 12:09 pm 
Offline

Joined: Mon Nov 01, 2010 2:23 pm
Posts: 17
Location: Prague, Czech Republic
Thomas Hoevel wrote:
Are you rendering to RTF?

I am rendering to both RTF and PDF. Actually I don't need "true" tight wrapping, including non-rectangular shapes. I just need the functionality of the WrapStyle.TopBottom value, but with the top and bottom margins being essentially zero, so that the text frame is placed right under the paragraph above it. However, in RtfRendering.ShapeRenderer.RenderWrapFormat the 'distance' properties of WrapFormat are ignored.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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