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!
Support Chinese |
Post Reply |
Author | |
terryhcw
Beginner Joined: 01 Jun 09 Location: Hong Kong Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 01 Jun 09 at 3:22PM |
Hi all,
Can anyone know, whether QuickPDF support to make a Chinese pdf file. I had try the demo version, but can not make it to disaplay chinese character in the PDF file. Does any one know how can I make it? Regards Terry Ho
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Terry!
Please read about function "AddSubsettedFont". This should help ... Here's a sample for writing chinese characters with unicode: 'The following VB example shows how to subset a font and 'draw text using Unicode characters. Dim PDF As TQuickPDF0713 Set PDF = CreateObject("TQuickPDF0713") Call PDF.UnlockKey (" - your license key here - " ) Dim S As String 'Say hello in english and chinese ... S = "Hello: " & ChrW(&H4F60) & ChrW(&H597D) Call PDF.AddSubsettedFont ("Verdana", 7, S) Call PDF.DrawText (100, 500, PDFSq.GetSubsetString (S)) Call PDF.SaveToFile ("c:\unicode.pdf") Set PDF = Nothing Cheers, Ingo Edited by Ingo - 02 Jun 09 at 6:24AM |
|
terryhcw
Beginner Joined: 01 Jun 09 Location: Hong Kong Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi Ingo,
Thanks your hits. How about if I had a report to print out, does it mean I need to draw text on each report line. Regards Terry Ho
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
yes ;-)
|
|
terryhcw
Beginner Joined: 01 Jun 09 Location: Hong Kong Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi Ingo,
I had a Chinese WMF file. Can I use QuickPDF to convert this file to PDF? Before that, I had ask the same question to Leonid Chudakov (Which provide a solution in Clarion to call QuickPDF to make PDF report in Clarion). He told me that your company working on Wmf to pdf conversion. To me, I'm a software developer, I'm using Clarion to develop business application. I use clarion to print some report, but it can not make Chinese PDF report. So I want to under the WMF file and convert such file to one PDF report. I hope I can solve it under the use of QuickPDF. Regards. Terry Ho
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
With the render-functions you can convert it to pdf. Cheers, Ingo |
|
MTchary
Beginner Joined: 26 Apr 06 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Indigo's code works fine with iSEDQuickPDF.DLL v. 5.11 but does not work with QuickPDF.DLL v. 7.15
Do I miss something?
Tnx Edited by MTchary - 07 Aug 09 at 4:18AM |
|
MTchary
Beginner Joined: 26 Apr 06 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
I noticed that QuickPDFAddSubsettedFont() returns nothing. Here is the code:
lcText = CHR(0x4F) + CHR(0x60) + CHR(0x59) + CHR(0x7D)
lnResult = QuickPDFAddSubsettedFont(lnInstanceID, "Verdana", 7, lcText)
When I use follow code with iSEDQuickPDF.DLL v. 5.11:
lcText = CHR(0x4F) + CHR(0x60) + CHR(0x59) + CHR(0x7D)
lnResult = iSEDAddSubsettedFont("Verdana", 7, lcText)
iSEDAddSubsettedFont returns numeric value - Font ID
|
|
MTchary
Beginner Joined: 26 Apr 06 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
I see you the bug has been fixed in v. Quick PDF Library 7.16 Beta 1 Now I am able to print Chinese characters. But when I try to print mixed string - something like:
"Hello: " + CHR(0x60) + CHR(0x4F) + CHR(0x7D) + CHR(0x59) I get a mess. I did try to pass "Hello" as a double byte character string as well: : "H e l l o : " + CHR(0x60) + CHR(0x4F) + CHR(0x7D) + CHR(0x59) No luck
The only way I could do this - is to print char by char in a loop, but this is not acceptable for me. The follow code prints Chinese characters correct: lcText = CHR(0x60) + CHR(0x4F) + CHR(0x7D) + CHR(0x59) lnResult = QuickPDFAddSubsettedFont(lnInstanceID, "Verdana", 7, lcText)
lnResult = QuickPDFDrawText (lnInstanceID , lnLeft, lnTop, QuickPDFGetSubsetString(lnInstanceID , lcText)) Is there any way to print combined string, i.e. English words + Chinese characters? |
|
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