PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Aug 17, 2018 1:14 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu May 10, 2012 11:49 am 
Offline

Joined: Thu May 10, 2012 11:22 am
Posts: 1
Hi, I found a bug in the method PdfGraphicsState.RealizeBrush.
If the last realized brush was a XLinearGradientBrush, realizedFillColor is XColor.Empty, so if the Rbg property of the next brush will equals XColor.Empty.Rgb, this brush will not be realized. This issue causes the invisible text in my application.
My fix: line 251 in PdfGraphicsState.cs should be modified:
Code:
if (this.realizedFillColor != Color.Empty || this.realizedFillColor.Rgb != color.Rgb)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group