PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Apr 23, 2024 10:29 pm

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 Jan 04, 2016 10:09 pm 
Offline

Joined: Mon Jan 04, 2016 9:40 pm
Posts: 3
Hi.

I'm using version 1.32 on windows 10.

I have this code, adding text into a paragraph inside a table:

Code:
  var section = this.document.AddSection();
  var table = section.AddTable();
  var row = CreateRow(table);
  var p = row.Cells[index].AddParagraph();
  p.AddFormattedText(pdfElement.CellLabel, TextFormat.Bold);


When I render the document, the output is not Bold (see attached PDF)
The output .mdddl indicates that the text should be bold (see attached .mdddl)

What am I missing?

Thank you!


Attachments:
pdf+mdddl.zip [52.83 KiB]
Downloaded 367 times


Last edited by gnery on Tue Jan 05, 2016 7:12 pm, edited 3 times in total.
Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 05, 2016 6:52 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 916
Location: CCAA
Hi!

You can attach ZIP files with the PDF and the MDDDL.

Have you tried both GDI build and WPF build?
Have you tried the latest 1.50 beta version?

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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 05, 2016 7:18 pm 
Offline

Joined: Mon Jan 04, 2016 9:40 pm
Posts: 3
I attached the files to the original message.

I didn't try the different builds. I have no idea what build I use because I'm a new employee in the company and no one knows the answer to that.

I prefer not to change the DLLs I use right now since I will have to test all our PDF creation flows and I don't have the time for that. I will do it, though, if it will be the last resort.

Any other ideas? Any other details I should provide?

Thank you!


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 05, 2016 9:20 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 916
Location: CCAA
gnery wrote:
Any other ideas?
Search for "Ariel", replace with "Arial" - and enjoy.

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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 06, 2016 5:20 pm 
Offline

Joined: Mon Jan 04, 2016 9:40 pm
Posts: 3
OK now that's amazing... :D
Are you a psychic?

I changed everything to 'Arial' and it worked.
Thank you so much!!


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 183 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