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.

Tue Jul 28, 2015 5:35 pm

I use Free Spire PDF for .NET to silent-print PDF reports, which consist of html canvas elements and html tables filled with colored text. The canvas colors print just fine, but the colored text items in the html tables turn to gray - specifically, they appear to reflect only the "red" portion of the RGB hex color of the text style. For example, if the text is red ("#FF0000"), the text is completely white (i.e., invisible) in my printout. The same is true if the text has any RGB value that begins with "FF". If the text is darkred, it appears as light gray on my printout, while green and blue text appear as solid black.

After I LoadFromFile() the document, I can SaveToFile() with a new name, then open the new file, and the colors display correctly. But they don't print correctly. I have tried manually setting the ColorSpace to RGB, both when creating the PdfDocument and after loading it, but it doesn't help. Yes, my printer is set to print color, and the canvases print colors just fine. But I can't figure out how to get the text colors to print. It appears that you may have addressed this issue with regular Spire PDF, and perhaps you haven't fixed it yet with the free version. Any ideas?

Code: Select all
using (var doc = new PdfDocument())
{
   try
   {
      doc.LoadFromFile(filename);
      doc.PrintDocument.Print();
   }
   catch (Exception e)
   {
      throw e;
   }
}


Bill Luckett

luckybill34
 
Posts: 2
Joined: Tue Jul 28, 2015 4:26 pm

Wed Jul 29, 2015 3:10 am

Hello,

Thanks for your inquiry.
I have tested your issue with the free version and the commercial version. The color is right in our side. Could you please offer us your sample file? The better to tell us the printer model that you use. It would be helpful to replicate the issue and work out the solution for you ASAP.
Please kindly note that firstly you need to compress it and upload.
Or you can send it to us ( Support@e-iceblue.com ) via email.

Best Regards,
Sweety

E-iceblue support team
User avatar

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

Wed Jul 29, 2015 4:48 pm

Sweety,

Thank you for your reply. I emailed the file to you, so much the better to preserve all of the data in its original form. Hopefully that will help shed some light - or color - on the matter!

Bill

luckybill34
 
Posts: 2
Joined: Tue Jul 28, 2015 4:26 pm

Thu Jul 30, 2015 5:54 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.
In addition, please try to generated your original PDF document using Spire. And print it. Then please tell us how it goes.

Best Regards,
Sweety

E-iceblue support team
User avatar

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

Tue Oct 06, 2015 6:43 am

Problem still exists in last version of spire.pdf 3.5.51.
In my pdf document email address has blue color and parts of the text is in red but when I print the document it all comes in black.

nare@dsb.dk
 
Posts: 3
Joined: Thu May 28, 2015 1:41 pm

Tue Oct 06, 2015 7:09 am

Hello,

Please provide us your pdf document to help us recreate your issue and solve it. If you cannot share it here, please send it to amy.zhao@e-iceblue.com or support@e-iceblue.com.
Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 06, 2015 9:49 am

Hello

Thank you for your reply.
I emailed the file to you,
I hope that will help you to find a solution for the problem.

regards
nare

nare@dsb.dk
 
Posts: 3
Joined: Thu May 28, 2015 1:41 pm

Tue Oct 06, 2015 10:41 am

Hello,

I have received your e-mail. Thanks for providing.
I have recreated your issue. We (E-iceblue Co., Ltd) are on holiday from 01/10/2015 - 07/10/2015 (GMT+8), sorry that I will post it to our dev team on 08/10/2015 once we come back to work.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Sat Oct 10, 2015 6:40 am

Hi nare,

Thanks for waiting.
Your issue has been resolved. Please download and test new version:
http://www.e-iceblue.com/downloads/Temp ... 3.5.84.zip

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Mon Oct 19, 2015 7:41 am

Hi Amy

Thanks.
Yes, problem is resolved and everything looks great.

Best regards
nare

nare@dsb.dk
 
Posts: 3
Joined: Thu May 28, 2015 1:41 pm

Mon Oct 19, 2015 8:12 am

Hi,

Thanks for your reply.
Welcome to write to us again for further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Thu Jun 16, 2016 1:57 pm

I also occurred the same error

Red text will be printed in black

Red Color↓
「ストレス状況はやや高めな状態にある」

Create PDF PC Windows10
Spire.Pdf Version 3.7.0.5040

Code: Select all
//Test Script
        private void button4_Click(object sender, EventArgs e)
        {
            using (var doc = new PdfDocument())
            {
                try
                {
                    doc.LoadFromFile("C:\\Users\\sample.pdf");
                    doc.PrintDocument.Print();
                }
                catch (Exception ee)
                {
                    throw ee;
                }
            }
        }

shimizukt
 
Posts: 3
Joined: Tue May 17, 2016 10:10 am

Fri Jun 17, 2016 2:33 am

I have attached the Sample PDF file

shimizukt
 
Posts: 3
Joined: Tue May 17, 2016 10:10 am

Fri Jun 17, 2016 3:35 am

Hi shimizukt,

Thanks for your posting.
I have replicated your issue and forwarded it to our dev team. We will inform you when it is resolved.
Welcome to feel free to write to us for further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2774
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF