PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Migradoc/PDFSharp Cell Text Wrap https://forum.pdfsharp.net/viewtopic.php?f=2&t=4109 |
Page 1 of 1 |
Author: | talanwestby [ Mon Mar 09, 2020 2:28 pm ] |
Post subject: | Migradoc/PDFSharp Cell Text Wrap |
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 |
Author: | Thomas Hoevel [ Mon Mar 09, 2020 4:09 pm ] |
Post subject: | Re: Migradoc/PDFSharp Cell Text Wrap |
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.
|
Author: | talanwestby [ Tue Mar 10, 2020 7:42 am ] |
Post subject: | Re: Migradoc/PDFSharp Cell Text Wrap |
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 |
Author: | talanwestby [ Tue Mar 10, 2020 8:29 am ] |
Post subject: | Re: Migradoc/PDFSharp Cell Text Wrap |
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 |
Author: | Thomas Hoevel [ Tue Mar 10, 2020 12:07 pm ] |
Post subject: | Re: Migradoc/PDFSharp Cell Text Wrap |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |