PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Aug 10, 2020 11:51 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
PostPosted: Mon Mar 09, 2020 2:28 pm 
Offline

Joined: Mon Mar 09, 2020 2:21 pm
Posts: 3
Hi, I'm using PDFSharpCore and MigraDoc Core for .NET Core. I've got it working how I need it to but I'm running into a very weird issue when text wrapping in a table cell. Below is what I'm getting when the text wrap is in place.

www/fafece

ok/cem/mes

tester/login/
martin/hasl
maic

Here is what I expect to get:

www/fafece
ok/cem/mes
tester/login/
martin/hasl
maic

What seems very odd is it only appears to be the first two lines that are double spacing. Here is the cell formatting that I am applying:

NewRow.Cells[i].Format.SpaceAfter = 2;
NewRow.Cells[i].Format.SpaceBefore = 2;
NewRow.Cells[i].Format.LineSpacing = 1.15;

Any help with this would be appreciated.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 09, 2020 4:09 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3045
Location: Cologne, Germany
talanwestby wrote:
Hi, I'm using PDFSharpCore and MigraDoc Core for .NET Core.
Sounds as if you are not using any "official" library published by us.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 10, 2020 7:42 am 
Offline

Joined: Mon Mar 09, 2020 2:21 pm
Posts: 3
Hi Thomas,

Thanks for getting back to me, I am using the PDFSharpCore ports that people have suggested online due to using .NET Core. Here is the Nuget version I am using:

https://www.nuget.org/packages/PdfSharp ... .0-beta5-3
https://www.nuget.org/packages/PdfSharp ... .0-beta5-3
https://www.nuget.org/packages/PdfSharpCore/
https://www.nuget.org/packages/PdfSharp ... .0-beta5-3

I understand they are in "beta" version but seem to work fine for what I'm doing at the moment. If they are not the official version could you advise if the original PDFSharp and Migradoc will work in .NET Core or do I need these ports?

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 10, 2020 8:29 am 
Offline

Joined: Mon Mar 09, 2020 2:21 pm
Posts: 3
Hi Thomas,

I can now confirm that I have found a load of packages that you offer and have switched over to the MigraDoc and PDFShap that is owned by yourselves:

<PackageReference Include="pdfsharp" Version="1.50.5147" />
<PackageReference Include="PdfSharp-MigraDoc" Version="1.50.5147" />

Unfortunately, I am still running into the same very weird issue:

http://www.s

oeueettingr

ealier.com/fo

rum/attachm

ents/f149/59

8052d14202
97993-
reeady -bae
cdse-fe
sstbste-feltf
b.jpg

Any help would be appreciated.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: Tue Mar 10, 2020 12:07 pm 
Offline
PDFsharp Guru
User avatar

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

You only need the latter package because it includes the first package.

I can suggest a workaround: insert soft hyphens or zero-width non-joiners at locations where you want to allow line breaks. For example after each "/".
If the remaining fragments are short enough for the columns, there shouldn't be any more unwanted blank lines.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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: No registered users and 18 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