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 - How To Write Plus Minus Sign In PDF?
  FAQ FAQ  Forum Search   Register Register  Login Login

How To Write Plus Minus Sign In PDF?

 Post Reply Post Reply
Author
Message
SalmaBegum View Drop Down
Team Player
Team Player
Avatar

Joined: 30 Sep 17
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote SalmaBegum Quote  Post ReplyReply Direct Link To This Post Topic: How To Write Plus Minus Sign In PDF?
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 19 at 8:32AM
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

Back to Top
SalmaBegum View Drop Down
Team Player
Team Player
Avatar

Joined: 30 Sep 17
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote SalmaBegum Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 19 at 10:06AM
Originally posted by Ingo Ingo wrote:

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...



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...
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 19 at 10:55AM
it's not MY QPL ;-)
It's a user website here - not a publisher page.

Cheers,
Ingo

Back to Top
SalmaBegum View Drop Down
Team Player
Team Player
Avatar

Joined: 30 Sep 17
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote SalmaBegum Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 19 at 11:01AM
Originally posted by Ingo Ingo wrote:

it's not MY QPL ;-)
It's a user website here - not a publisher page.


LoL! sorry, typo.. due to similar email response :)
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 19 at 11:09AM
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

Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 437
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post Posted: 01 Feb 19 at 11:14AM
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.
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