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!
How To Write Plus Minus Sign In PDF? |
Post Reply |
Author | |
SalmaBegum
Team Player Joined: 30 Sep 17 Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 01 Feb 19 at 4:09AM |
Greetings everyone,
i am trying to write/draw plus minus sign on a pdf document. in html "±" that will show the sign.. HTML Preview Of Plus Minus Sign but if i put that in html text on QPL.. it is not working :( any idea how can i achieve that? thanks in advance best regards Edited by SalmaBegum - 01 Feb 19 at 4:10AM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Salma,
DrawHTMLText supports only a small subset of the HTML-tags. Here you can see what's supported: https://www.debenu.com/docs/pdf_library_reference/AppendixA.php Here's a reference looking a bit different from your three samples: https://graphemica.com/%C2%B1 Where you have an eye on: Your used font is a unicode-font? How can you replace/produce the relevant sign programmatically... You can insert the sign via keyboard with the Alt-key and ascii-code 0177. So perhaps with your development environment you have syntax like chr or char... |
|
Cheers,
Ingo |
|
SalmaBegum
Team Player Joined: 30 Sep 17 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
sir, thanks for your reply but i am not clear though.. as i my question was how i can insert that symbol in my pdf document using your qpl? can you give me a source sample, that use qpl to draw that sign? thanks in advance... |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
it's not MY QPL ;-)
It's a user website here - not a publisher page. |
|
Cheers,
Ingo |
|
SalmaBegum
Team Player Joined: 30 Sep 17 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
LoL! sorry, typo.. due to similar email response :) |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi,
what you simply want is drawing unicode and that's not a problem with the drawing functionalities of QuickPDF. I think you know the online reference with all helping documents... If you won't succeed you can try the search function here on the page (all forums, any date, ...) with unicode , utf8 or utf as a part of the topic: http://www.quickpdf.org/forum/search_form.asp?FID=15 Edited by Ingo - 01 Feb 19 at 11:10AM |
|
Cheers,
Ingo |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
I am able to output the ± character using DrawHTMLText. I cannot include all our code, and I do not have time to create and test a simple example to post here, but in outline our software has the following steps: s := '1234 ± 5678'; id := qp.AddTrueTypeSubsettedFont('Tahoma', 's', 0); qp.SetHTMLNormalFont('Default', id); qp.DrawHTMLText(L + xoffset, T + yoffset, W, s); The above is incomplete, untested and omits all error checking, but may help you get started. If you are not using Delphi then you will of course need to adapt this for your own development environment.
|
|
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