RadaeePDF.com :: Topic: PDF text rendered partly bold (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Here you should submit your bug reports with logcat.

TOPIC: PDF text rendered partly bold

PDF text rendered partly bold 4 years 11 months ago #203

  • flubba
  • flubba's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 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:
Last Edit: 4 years 11 months ago by .
The administrator has disabled public write access.

Re: PDF text rendered partly bold 4 years 11 months ago #204

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
before page.Render, you should invoke page.RenderPrepare.
for i tested the demo project, and the problem not appears.
The administrator has disabled public write access.

Re: PDF text rendered partly bold 4 years 11 months ago #207

  • flubba
  • flubba's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Thanks, that's it.

I added page.RenderPrepare(dib) and the problem does not occur anymore.
The administrator has disabled public write access.
Powered by Kunena Forum