PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 06, 2024 3:19 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Jan 03, 2014 1:08 pm 
Offline

Joined: Fri Jan 03, 2014 12:26 pm
Posts: 3
Hi all : )

I am working on an MVC application, and I use MigraDoc and PDFSharp classes in my controllers to export my tables into pdf.
Unfortunately, I am having trouble with non-English characters.
I've read a post regarding this issue on stack overflow, http://stackoverflow.com/questions/7822 ... 92#7833892 , but this solution changes nothing in the outcome I get.

I have posted my code to pastebin, if you would care to look. It's mostly basic stuff, nothing out of this world.
http://pastebin.com/T20BrnpW //form class
http://pastebin.com/wQGhngUU //controller which instantiates the form class


Any help with this issue would be greatly appreciated.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 03, 2014 2:49 pm 
Offline

Joined: Fri Jan 03, 2014 12:26 pm
Posts: 3
Ok, so after a little bit of tinkering, I figured out that the order in which I instantiate my PDFrenderer class and my document, was wrong. It seems that I need the renderer instance FIRST, and THEN create my document instance and render it. I will post my code on pastebin if anyone ever needs it.
http://pastebin.com/5BSaRzbC


Top
 Profile  
Reply with quote  
PostPosted: Fri Jan 03, 2014 3:20 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 344
GoranMandic wrote:
Ok, so after a little bit of tinkering, I figured out that the order in which I instantiate my PDFrenderer class and my document, was wrong.
I don't think so. Order should not matter.
Maybe you also changed something else.

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


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 06, 2014 8:55 am 
Offline

Joined: Fri Jan 03, 2014 12:26 pm
Posts: 3
@ () => true Well, I posted my entire code, and what you see is what I got. : )

I have made no other changes except the order in which I instantiate objects.


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

All times are UTC


Who is online

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