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: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan

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

Add Font Error

Post by isaware » Tue Feb 28, 2012 10:22 pm

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: 13316
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Add Font Error

Post by Tracker Supp-Stefan » Wed Feb 29, 2012 9:16 am

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 » Thu May 03, 2012 6:29 pm

I still get the error with PXC_AddFontW function..
What could possibly cause this error and how can we handle them?

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Add Font Error

Post by John - Tracker Supp » Sat May 05, 2012 12:32 am

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

Post Reply