Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Synchronize Canvas Text with Adobe Text |
Post Reply
|
| Author | |
fargburger
Beginner
Joined: 03 Apr 12 Location: Wisconsin Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: Synchronize Canvas Text with Adobe TextPosted: 03 Apr 12 at 4:41PM |
|
Can anyone help me figure out why the drawing text on a PDF (Left) looks different than drawing to a canvas using RenderPageToDC (Right).
This is the same information - the page on the right, if saved to a PDF (using SaveToFile) would open in acrobat reader looking like the page on the left. ![]() So, I'll post all the sample code you want, there's just a lot of code behind it and I don't know where to start. |
|
![]() |
|
fargburger
Beginner
Joined: 03 Apr 12 Location: Wisconsin Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 Apr 12 at 6:47PM |
|
Aha. well problem found - don't know how I'm going to fix it though.
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 Apr 12 at 4:02AM |
|
You images is not showing up so it is hard to comment.
Andrew.
|
|
![]() |
|
Wheeley
Senior Member
Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 Apr 12 at 2:56AM |
|
Andrew,
I see the images just fine in the latest version of Firefox. Maybe its your browser's settings. Wheeley |
|
![]() |
|
fargburger
Beginner
Joined: 03 Apr 12 Location: Wisconsin Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 Apr 12 at 7:01PM |
|
So does anyone know if it's a known issue regarding SetTextScaling not looking the same on the Delphi canvas vs. a PDF? That's pretty much the biggest gripe I've got with QuickPDF right now.
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 Apr 12 at 5:24AM |
|
I believe this has been fixed in the 8.15 Betas.
QP.SetTextSize(72); QP.DrawText(100, 100, "Hello World"); QP.SetTextScaling(95); QP.SetTextWordSpacing(-1); QP.DrawText(100, 200, "Hello World"); QP.SaveToFile("out.pdf"); If I call RenderPageToDC then the strings are of a different length which is expected and the output now matches the RenderPageToFile output. Andrew. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store