Add Font Error

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

isaware
User
Posts: 39
Joined: Fri Sep 25, 2009 6:21 pm

Add Font Error

Post by isaware »

Hi, we are getting errors on calling "AddFontA" function.
PDFXC_Funcs.PXC_AddFontA(m_iPDF, m_oPageElement.FontWeight, m_oPageElement.FontItalic, m_oPageElement.FontFamily, iFontRef)
The error number is -2113657061.
Do you know what this number is referring to/what kind of error this is?

isaware
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Add Font Error

Post by Tracker Supp-Stefan »

Hello Isaware,

This error means: "Invalid font"
We do provide a small tool called "DS Error Lookup" with our SDKs - so you should be able to use that to get the meaning of any error.

Please also try the PXC_AddFontW function if there are any unicode characters in your font name.

Best,
Stefan
isaware
User
Posts: 39
Joined: Fri Sep 25, 2009 6:21 pm

Re: Add Font Error

Post by isaware »

I still get the error with PXC_AddFontW function..
What could possibly cause this error and how can we handle them?
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom

Re: Add Font Error

Post by John - Tracker Supp »

Please provide an example PDF and the code snippet where the font is added - please zip any files sent.

This will allow us to at least make a start in proving some support on this matter.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com