Print Page | Close Window

Italic is not valid

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=1547
Printed Date: 13 Jul 25 at 11:47PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Italic is not valid
Posted By: mwed
Subject: Italic is not valid
Date Posted: 19 Aug 10 at 2:54AM
I try to use Call pdf_object.SetFontFlags(0, 0, 0, 0, italicFlag, 0, 0, boldFlag)  and italicFlag = 1.
It keeps font regular.
How to get a italic?



Replies:
Posted By: Ingo
Date Posted: 19 Aug 10 at 6:47AM
Hi mwed!

You have to select the font first.
At least save the document.
Perhaps you should post a longer code snippet?
The call is correct and if it doesn't work i'm asking
you what's the resulting value of the function
(0 means that no font was selected)?

Cheers and welcome here,
Ingo



Posted By: mwed
Date Posted: 19 Aug 10 at 7:09AM
Result = pdf_object.SetFontFlags(0, 0, 0, 0, italicFlag, 0, 0, boldFlag), italicFlag = 1 and boldFlag = 1
The Result is 1, and bold is set, just the italic is not available.


Posted By: mwed
Date Posted: 19 Aug 10 at 7:11AM
does it work differently in different version?


Posted By: Ingo
Date Posted: 19 Aug 10 at 10:19AM
"does it work differently in different version?"

Hi!

I hope not ;-)
What about the used Font?
It should be installed on the computer you're developing.
Does the font offer the italic attribute?

Cheers, Ingo



Posted By: mwed
Date Posted: 22 Aug 10 at 12:58PM
Hi,
The font is Arial.
Thanks:)



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