Print Page | Close Window

How To Write Plus Minus Sign In PDF?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3669
Printed Date: 22 Nov 24 at 5:56PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How To Write Plus Minus Sign In PDF?
Posted By: SalmaBegum
Subject: How To Write Plus Minus Sign In PDF?
Date 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..

https://www.w3schools.com/charsets/tryit.asp?deci=177&ent=plusmn" rel="nofollow - 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



Replies:
Posted By: Ingo
Date 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



Posted By: SalmaBegum
Date 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...


Posted By: Ingo
Date Posted: 01 Feb 19 at 10:55AM
it's not MY QPL ;-)
It's a user website here - not a publisher page.



-------------
Cheers,
Ingo



Posted By: SalmaBegum
Date 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 :)


Posted By: Ingo
Date 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



-------------
Cheers,
Ingo



Posted By: tfrost
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk