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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Synchronize Canvas Text with Adobe Text
  FAQ FAQ  Forum Search   Register Register  Login Login

Synchronize Canvas Text with Adobe Text

 Post Reply Post Reply
Author
Message
fargburger View Drop Down
Beginner
Beginner


Joined: 03 Apr 12
Location: Wisconsin
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote fargburger Quote  Post ReplyReply Direct Link To This Post Topic: Synchronize Canvas Text with Adobe Text
    Posted: 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.
Back to Top
fargburger View Drop Down
Beginner
Beginner


Joined: 03 Apr 12
Location: Wisconsin
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote fargburger Quote  Post ReplyReply Direct Link To This Post Posted: 03 Apr 12 at 6:47PM
Aha.  well problem found - don't know how I'm going to fix it though.

  QuickPDF.SetTextScaling(95);
  QuickPDF.SetTextWordSpacing(-1);

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 12 at 4:02AM
You images is not showing up so it is hard to comment.

Andrew.
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
fargburger View Drop Down
Beginner
Beginner


Joined: 03 Apr 12
Location: Wisconsin
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote fargburger Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store