PDF text rendered partly bold - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Here you should submit your bug reports with logcat.
  • Page:
  • 1

TOPIC: PDF text rendered partly bold

PDF text rendered partly bold 6 years 1 month ago #203

  • flubba
  • flubba's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
when rendering PDFs sometimes part of the text seems to be rendered bold. This occurs more often when the PDF is zoomed/scaled.
In the attached screenshot the text on the right should look like the one on the left.





The PDF parts are rendered into images using the following code:
int dib = Global.dibGet(0, (int)patchW, (int)patchH);
float scaleW =  pageW/doc.GetPageWidth(pageNo) ;
Matrix mat = new com.radaee.pdf.Matrix(scaleW, -scaleW,-patchX,pageH-patchY );
page.Render( dib, mat );
int lockBitmap = Global.lockBitmap(bitmap);
Global.drawToBmp(lockBitmap, dib, 0,0);
Global.unlockBitmap(bitmap, lockBitmap);
dib = Global.dibFree(dib);
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by .

Re: PDF text rendered partly bold 6 years 1 month ago #204

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 842
  • Karma: 43
  • Thank you received: 12
before page.Render, you should invoke page.RenderPrepare.
for i tested the demo project, and the problem not appears.

Please Log in or Create an account to join the conversation.

Re: PDF text rendered partly bold 6 years 1 month ago #207

  • flubba
  • flubba's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Thanks, that's it.

I added page.RenderPrepare(dib) and the problem does not occur anymore.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum