Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Aug 06, 2015 12:19 pm

Hi there,
I try to convert some HTML (like described here: e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-with-New-Plugin.html) into PDF and then the PDF shall be converted to XPS with
Code: Select all
doc.SaveToFile("xyz.xps", FileFormat.XPS)


That works quite good so far. But somehow all colored text is now black or grey in the resulting XPS. I tried that with other HTML from the web (even with e-iceblue.com/) and the behaviour is always identical.
Is there a reason for this behaviour and can I have colored text somehow?

Best regards
Jim

eternity
 
Posts: 6
Joined: Thu Jul 30, 2015 7:21 am

Fri Aug 07, 2015 1:35 am

Hello,

Thanks for your inquiry.
Could you please offer us the sample html file?
It would be helpful to replicate the issue and work out the solution for you ASAP.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Aug 07, 2015 7:43 am

Hi,
thanks for the fast reply. I did give you some sample. Just use your own website "e-iceblue.com". There are some colored heading (they are blue) and they are converted to black ones as described. ;-)

If it is easier for you, you could use this HTML sample:
Code: Select all
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta charset="utf-8" />
   <style type="text/css">
      

      h1
      {
         font-size: 18px;
         font-weight: bold;
         color: blue;
      }

      
   </style>
</head>
<body>
   <h1>
      This is a blue heading
   </h1>
   <div>Some sample text.</div>
</body>
</html>



Best regards.

eternity
 
Posts: 6
Joined: Thu Jul 30, 2015 7:21 am

Fri Aug 07, 2015 8:37 am

Hello,

Thanks for your information.
I have noticed your issue. And I have posted the issue to our dev team. We will inform you when it is fixed. Sorry for the inconvenience.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Tue Aug 18, 2015 9:27 am

Hello,

Sorry to keep you waiting.
The new version of Spire.Pdf( Spire.PDF Pack Version:3.5 ) solved your issue has been released. Please download it via link below and have a try.
http://www.e-iceblue.com/Download/download-pdf-for-net-now.html

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Thu Aug 20, 2015 9:23 am

Hello,

Have you tried the Spire.PDF Pack Version:3.5?
Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Thu Sep 10, 2015 10:40 am

Hello,
sorry for the delayed answer but I have been on vacation for the last couple of weeks.

I am happy to say the issue is resolved.

Thanks a lot and best regards
Jim

eternity
 
Posts: 6
Joined: Thu Jul 30, 2015 7:21 am

Fri Sep 11, 2015 1:19 am

Hello,

Please feel free to contact us, if you have any questions or needs. We are here for help.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.PDF