Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1

TOPIC:

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

  • flubba
  • flubba's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 11 years 8 months ago #204

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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 11 years 8 months ago #207

  • flubba
  • flubba's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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