I have written a fairly simple C# application that produces PDF from XPS documents. I successfully extract text from XPS document, but i can not seem to write original text font styles to PDF document,, especially for bold and italic. I hope I'm missing something simple.
Do you have any suggestion for this? Any help at all would be really appreciated.
This article on XsPDF.com is what are you looking for, check out: How to create PDF in C#.
Answers
I get messed in my project several days ago. It seems that my issue is similar to you. I have looped through all of the fonts installed on my PC and sent the output to a PDF via XsPDF library and only three of them produce all styles. So, any progress on this issue?
Maybe without lFont and CType, it'll work. You may have a try with this code snippet...this might not be work. You need to try on your own.
font = new XFont(...
Thanks for the quick reply. I won't be able to test it out until yesterday. but it is still not work for me. Thanks anyway.
Sorry about the delay. We finally find that that is a bug of our SDK. Now, it is updated. Please refer to the following sample code for more details.