PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jul 13, 2024 4:47 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Aug 01, 2011 10:56 am 
Offline
Supporter

Joined: Fri May 15, 2009 3:28 pm
Posts: 96
Hi,

I am passing the following string:
Code:
<li>At the beginning of a sales call|Before presenting any new product/service|To build a foundation before moving forward</li>Key Words
still, remain, continue, now, currently


into one of my "Add Cell" functions - the ideal being that it recognises the text inbetween <li></li> as a list and then each list item is delimeted by the "|" character - i know i should have really used <ul><li> but hey...

So my problem is that my text appears like this:
Code:
-              At the beginning of a sales call|Before presenting any new product/service
-              To build a foundation before moving forward
Key Words
still, remain, continue, now, currently

Which isnt too bad, but in this instance, space is key on the page and i could really do with the bulleted text being more like this:
Code:
- At the beginning of a sales call|Before presenting any new product/service
- To build a foundation before moving forward
Key Words
still, remain, continue, now, currently

To save space....
I basically create paragraph objects for each bullet, then add them to the table cell they belong to. The paragraph objects have a ListInfo object setup like this:
Code:
ListInfo _li = new ListInfo();
_li.NumberPosition = Unit.FromCentimeter(0);
_li.ListType = ListType.BulletList1;
_li.ContinuePreviousList = false;

I have used this code in an earlier version of the pdf i am working on and the gaps in between the bullet and the text are much smaller, but I dont think im doing anything different (though obviouly i must be)....

So my question is: Can I control the amount of space after a bullet point character and before the text?

Thanks,

Mike


Top
 Profile  
Reply with quote  
PostPosted: Sat Aug 13, 2011 7:29 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
Hi, Mike!
mikesowerbutts wrote:
Can I control the amount of space after a bullet point character and before the text?

Yes, MigraDoc just puts a Tab character between bullet and text. Just set tabs, first line indent, left indent of the style you use.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 98 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